Call Contract
Invoke a smart contract.
This method will use 100 Compute Units.
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 estimate field is set to true gas estimation is executed. Currently we support only latest block.
The table below defines the restrictions and support for the endpoint
| Estimate | Operation Type | Mirror Node Version |
|---|---|---|
| false | static contract state reads for non precompile functions | 0.78+ |
| static contract state reads for precompile functions except allowance/isApprovedForAll | 0.78+ | |
| static contract state reads for precompile functions with allowance | 0.79+ | |
| static contract state reads for precompile functions with isApprovedForAll | 0.81+ | |
| non-static contract state reads for non precompile functions | 0.83+ | |
| non-static contract state reads for precompile read only functions | 0.83+ | |
| true | non-static contract state reads and modifications for non precompile functions except lazy account creation | 0.83+ |
| non-static contract state reads and modifications for associate precompile functions | 0.83+ | |
| non-static contract state reads and modifications for non precompile functions with lazy account creation | 0.84+ | |
| non-static contract state reads and modifications for precompile functions except associate | Not supported |
The operations types which are not currently supported should return 501 error status.
Hexadecimal block number or the string "latest", "pending", "earliest". Defaults to "latest".
latestPattern: ^((0x)?[0-9a-fA-F]+|(earliest|pending|latest))$Hexadecimal method signature and encoded parameters.
0x0198489200000000000000000000000000000000000000000000000000000000000003eePattern: ^(0x)?[0-9a-fA-F]+$Whether gas estimation is called. Defaults to false.
trueThe 20-byte hexadecimal EVM address the transaction is sent from.
00000000000000000000000000000000000004e2Pattern: ^(0x)?[A-Fa-f0-9]{40}$Gas provided for the transaction execution. Defaults to 120000000.
120000000Gas price used for each paid gas.
100000000The 20-byte hexadecimal EVM address the transaction is directed to.
0x00000000000000000000000000000000000003f4Pattern: ^(0x)?[A-Fa-f0-9]{40}$Value sent with this transaction. Defaults to 0.
0OK
Validation error
Not found error
Unsupported media type error
Too many requests
Generic error
Not implemented error
Last updated
Was this helpful?