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.
Request body
Example request
{
"block": "latest",
"data": "0x47f1aae7",
"estimate": true,
"from": "00000000000000000000000000000000000004e2",
"gas": 15000000,
"gasPrice": 100000000,
"to": "0xd9d0c5c0ff85758bdf05a7636f8036d4d065f5b6"
}Response
OK
Example response
{
"result": "0x0000000000006d8d"
}Changes
Changed in 2 of the 53 revisions of this API.197
- ▲
the request property
blockbecame not nullablerequest-property-became-not-nullable
- ▲
the request property
databecame not nullablerequest-property-became-not-nullable
- ▲
the request property
estimatebecame not nullablerequest-property-became-not-nullable
- ▲
the request property
frombecame not nullablerequest-property-became-not-nullable
- ▲
the request property
gasbecame not nullablerequest-property-became-not-nullable
- ▲
the request property
gasPricebecame not nullablerequest-property-became-not-nullable
- ▲
the request property
valuebecame not nullablerequest-property-became-not-nullable
- ▲
- ▲
the response property
_status/messages/items/databecame nullable for the status400response-property-became-nullable
- ▲
the response property
_status/messages/items/databecame nullable for the status404response-property-became-nullable
- ▲
the response property
_status/messages/items/databecame nullable for the status415response-property-became-nullable
- ▲
the response property
_status/messages/items/databecame nullable for the status429response-property-became-nullable
- ▲
the response property
_status/messages/items/databecame nullable for the status500response-property-became-nullable
- ▲
the response property
_status/messages/items/databecame nullable for the status501response-property-became-nullable
- ▲
the response property
_status/messages/items/detailbecame nullable for the status400response-property-became-nullable
- ▲
the response property
_status/messages/items/detailbecame nullable for the status404response-property-became-nullable
- ▲
the response property
_status/messages/items/detailbecame nullable for the status415response-property-became-nullable
- ▲
the response property
_status/messages/items/detailbecame nullable for the status429response-property-became-nullable
- ▲
the response property
_status/messages/items/detailbecame nullable for the status500response-property-became-nullable
- ▲
the response property
_status/messages/items/detailbecame nullable for the status501response-property-became-nullable
- ○
the request property
blockbecame nullablerequest-property-became-nullable
- ○
the request property
databecame nullablerequest-property-became-nullable
- ○
the request property
estimatebecame nullablerequest-property-became-nullable
- ○
the request property
frombecame nullablerequest-property-became-nullable
- ○
the request property
gasbecame nullablerequest-property-became-nullable
- ○
the request property
gasPricebecame nullablerequest-property-became-nullable
- ○
the request property
valuebecame nullablerequest-property-became-nullable
This revision also has 22 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲