Ethereum API Docs by GetBlock
  1. eth namespace
Ethereum API Docs by GetBlock
  • eth namespace
    • eth_call
      POST
    • eth_getBlockByNumber
      POST
    • eth_chainId
      POST
    • eth_syncing
      POST
    • eth_getBlockNumber
      POST
    • eth_getBalance
      POST
    • eth_getBlockByHash
      POST
    • eth_getTransactionCount
      POST
    • eth_estimateGas
      POST
    • eth_gasPrice
      POST
    • eth_getTransactionByHash
      POST
    • eth_getTransactionByBlockNumberAndIndex
      POST
    • eth_getTransactionReceipt
      POST
    • eth_feeHistory
      POST
    • eth_estimateGas
      POST
    • eth_getCode
      POST
    • eth_getLogs
      POST
    • eth_getCode
      POST
    • eth_sendRawTransaction
      POST
  • net namespace
    • net_listening
      POST
    • net_peerCount
      POST
    • net_version
      POST
  • web3 namespace
    • web3_clientVersion
      POST
    • web3_sha3
      POST
  1. eth namespace

eth_call

POST
{{GETBLOCK_URL}}
Invoke smart contract functions locally using eth_call for read-only queries without altering blockchain state. Essential for dApps to fetch data like balances or contract states via JSON-RPC.
The eth_call method is essential in the Ethereum JSON-RPC interface, enabling read-only interaction with smart contracts on the Ethereum blockchain. It allows for querying data, such as balances and contract states, without modifying the blockchain, unlike state-changing methods like eth_sendTransaction. As part of the Core API, eth_call is critical for building Web3 dApps.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "eth_call",
    "params": [
        {
            "from": "0x0000000000000000000000000000000000000000",
            "data": "0x70a082310000000000000000000000000000000000000000000000000000000000000000",
            "to": "0xdac17f958d2ee523a2206206994597c13d831ec7"
        },
        "latest"
    ]
}'
Response Response Example
{}

Request

Body Params application/json
array of:
jsonrpc
string 
optional
method
string 
optional
id
string 
optional
params
array [oneOf] 
optional
object 
optional
string 
optional
Examples

Responses

🟢200Success
application/json
Body
object {0}
Modified at 2025-06-04 20:27:56
Next
eth_getBlockByNumber
Built with