eth_call - Etherlink RPC Method
Execute smart contract calls without creating transactions on Etherlink. Essential for reading contract state for historical blockchain data.
Executes a new message call immediately without creating a transaction on Etherlink. Used for reading smart contract state.
When to Use This Method
Read getPriceUnsafe(bytes32) on the Pyth proxy at block 4,162,675. This historical example skips freshness checks and is not a current trading price.
Best Practices
Keep the recorded block height and address together when reproducing a historical example. Preserve RPC errors instead of replacing them with empty results.
Response Body
ResponseCode Examples
curl -X POST "https://api-etherlink-mainnet.n.dwellir.com/YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"jsonrpc":"2.0","id":8,"method":"eth_call","params":[{"to":"0x2880ab155794e7179c9ee2e38200202908c17b43","data":"0x96834ad3e62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43"},"0x3f8473"]}'eth_getTransactionReceipt
Get transaction receipt with status and logs on Etherlink. Essential for verifying transaction execution for historical blockchain data.
eth_getLogs
Query event logs on Etherlink. Essential for indexing historical blockchain data on Etherlink mainnet infrastructure and RPC surface.