eth_call

Executes a new message call immediately without creating a transaction on the blockchain.

Returns value of the executed contract

Parameters

Body

Param
Type
Description
Required

method

string

Name of method in this case: eth_call

Required

params

array

An empty array with no specific params

Required

id

string

id for request determined by client for JSON RPC requests

Required

jsonrpc

string

JSON RPC version in this case 2.0.0

Required

Request

Request Type: POST

{
  "method": "eth_call",
  "params": [
    {
      "to": "0x7f6d8f107fe8551160bd5351d5f1514a6ad5d40e",
      "data": "0x8cb84e180000000000000000000000000266c5192ff26cda6697e0f86bd42c002ee68c8e0000000000000000000000000000000000000000000000000000000000000000"
    },
    "latest"
  ],
  "id": 44,
  "jsonrpc": "2.0"
}

Response

{
  "jsonrpc": "2.0",
  "id": 44,
  "result": "0x0000000000000000000000001ecc38166bcb30ebf86d548d83dce0c14c1a33db"
}

Last updated