New Here? Claim Your 30% Discount on Your First Blockchain Node Access!

banner image

Last updated on January 1, 1970

1 min read

Method eth_call undefined ()
connect with JSON-RPC protocol

eth_call

info-circle-fill

Executes a message call immediately without creating a transaction onthe block chain.

Parameters

object - object

The transaction call object, the items in it as below: - from - DATA, 20 bytes - Caller address - to - DATA, 20 bytes - Contract address - gas - QUANTITY - Not supported. The value is 0x0 - gasPrice - QUANTITY - Not supported. The value is 0x0 - value - QUANTITY - Not supported. The value is 0x0 - data - DATA - Hash of the method signature and encoded parameters.

QUANTITY|TAG - string

currently, only "latest" is available.

Request

curl --location --request POST 'https://trx.getblock.io/mainnet/jsonrpc' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "eth_call",
"params": [{"from": "0x41F0CC5A2A84CD0F68ED1667070934542D673ACBD8", "to": "0x4170082243784DCDF3042034E7B044D6D342A91360", "gas": "0x01", "gasPrice": "0x8c", "value": "0x01", "data": "0x70a08231000000000000000000000041f0cc5a2a84cd0f68ed1667070934542d673acbd8"}, "latest"],
"id": "getblock.io"}'

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0x"
}
banner icon

Start Building with GetBlock RPCs for Free