Skip to content
Ethereum-Compatible Interface

eth_callTry API

POST eth_call (eth_call)
Parameters

from: DATA, 20 Bytes - Source address of the transaction (optional)

to: DATA, 20 Bytes - Destination address of the transaction

value: QUANTITY - Amount of ether sent with the transaction (optional)

data: DATA - Hash of the method signature and encoded parameters (optional)

Return Values

Result:

Example Code
Request
{
"jsonrpc": "2.0",
"method": "eth_call",
"params": [
  {
    "from": "0xSenderAddress",
    "to": "0xContractAddress",
    "value": "0x0",
    "data": "0xFunctionSelector+ABIParams"
  },
  "latest"
],
"id": 1
}
Response
{
 "jsonrpc":  "2.0",
 "id":  1,
 "result":  "0x..."
}

On this page