Invoke a smart contract
Returns a result from EVM execution such as cost-free execution of read-only smart contract queries, gas estimation, and transient simulation of read-write operations. If the estimate field is set to true gas estimation is executed. This API can process calls against the latest block or specific historical blocks when a hexadecimal or decimal block number is provided in the block field.
Documentation Index
Fetch the complete documentation index at: https://hedera-0c6e0218-mintlify-c868785f.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Body
The 20-byte hexadecimal EVM address the transaction is directed to.
40 - 42^(0x)?[A-Fa-f0-9]{40}$Hexadecimal block number or the string "latest", "pending", "earliest". Defaults to "latest".
^((0x)?[0-9a-fA-F]+|(earliest|pending|latest))$"latest"
Hexadecimal method signature and encoded parameters. Up to 131072 bytes as at most 262146 hexadecimal digits including optional leading 0x.
262146^(0x)?[0-9a-fA-F]+$Whether gas estimation is called. Defaults to false.
true
The 20-byte hexadecimal EVM address the transaction is sent from.
40 - 42^(0x)?[A-Fa-f0-9]{40}$Gas provided for the transaction execution. Defaults to 15000000.
x >= 015000000
Gas price used for each paid gas.
x >= 0100000000
Value sent with this transaction. Defaults to 0.
x >= 00
Response
OK
Result in hexadecimal from executed contract call.
^0x[0-9a-fA-F]+$