Ethereum-Compatible Interface
eth_callTry API
POST
eth_call
(eth_call)
Parameters
from: DATA, 20 bytes - sendtransactionsourceaddress, optional
to: DATA, 20 bytes - transactiontargetaddress
gas: QUANTITY - transactionavailablegasamount, optional.eth_callnotconsumegas, butsomeexecutestepneedthisparameter
gasPrice: QUANTITY - gasprice, optional
value: QUANTITY - transactionsendEtheramount, optional
data: DATA - methodsignatureandencodedparameterhash, optional
parameterformat:See above (eth_estimateGas)
if from valid, needrefer to
parameterformat:See above (eth_sendRawTransaction)
Return Values
Result:
Example Code
{
"jsonrpc": "2.0",
"method": "eth_call",
"params": [
"See above (eth_estimateGas) or See above (eth_sendRawTransaction)"
],
"id": "1"
}{
"jsonrpc": "2.0",
"id": "1",
"result": "0x11" //transactionexecutereturn value hexencoded
}