eth_call

Performs a message call instantly without recording it as a transaction on the blockchain

Request
Examples
curl https://rpc.xone.org \
--request POST \
--header "Content-Type: application/json" \
--data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_call",
  "params": [
    "0x10F558C",
    {
      "from": "0x4B275BDea1cA622256ebb8B15B51861b52703d16",
      "to": "0xa62894D5196bC44e4C3978400Ad07E7b30352372",
      "gas": "0x13880",
      "gasPrice": "0x4B3ECF6D4",
      "data": "0xa9059cbb0000000000000000000000007422172afc6ea4da9c011e87b7cb002d55b754430000000000000000000000000000000000000000000000000c7d713b0e3f3600"
    },
    {"0x4B275BDea1cA622256ebb8B15B51861b52703d16":{
      "balance": "0x277BFC44534B0000"
    }}
  ]
}
'
Response
200 OK
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0xb1770efb14906e509893b6190359658208ae64d0c56e22f748a1b0869885559e"
}

Request params

NameTypeDescription
idintegerRequest identifier
jsonrpcstringJSON-RPC version
methodstringAPI method name
Parametersarray of objects 
blockNumberstring(optional) Block number as an integer, or string
transactionobjectThe transaction call object which contains the following fields.
State OverrideobjectTenables temporary modifications to a contract’s state for a specific call without altering the actual contract. Each address maps to an object containing:

Response

200
The result of the call.
NameTypeDescription
Parametersobject 
idinteger
jsonrpcstring
resultstring