Arbitrum One
准备好在生产环境中调用了吗?
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
Arbitrum One
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
eth_call executes a read-only message call against the EVM on Arbitrum One without broadcasting a transaction or spending any ETH gas. The Nitro node runs the call locally against the chosen block's state and hands back the raw return data, making it the workhorse for reading state from contracts like GMX, Uniswap, and Aave that live on the rollup. Send it to https://arbitrum.therpc.io/YOUR_API_KEY (chain ID 42161) to query any deployed contract for free.
balanceOf, decimals, symbol, or totalSupply for any token bridged to or native on Arbitrum One.| # | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 1 | transaction | object | 是 | Transaction object. Required fields: `to` (target contract). Optional: `from` (msg.sender), `gas` (hex), `gasPrice` (hex), `value` (hex wei), `data` (ABI-encoded calldata). |
| 2 | blockTag | string | object | 是 | Block at which to execute the call. Use hex block number or a named tag.默认值: latest |
| 3 | stateOverrides | object | 否 | Optional map of address → { balance, nonce, code, state, stateDiff } overrides applied only for this call. Not supported by all providers. |
| 类型 | 描述 |
|---|---|
| string | Hex-encoded return data from the executed function. Decode with the contract ABI. If the call reverts, an error with code -32000 or 3 is returned instead. |
Try it live in the Arbitrum One playground.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
3 | execution reverted | The EVM reverted the call. Error data contains the revert reason. |
-32602 | invalid argument | Malformed transaction object or missing required `to` field. |
-32000 | execution reverted | Node-level revert without revert data (e.g. out-of-gas within the call, or require with no message). |
latest reflects the sequencer's current view and can shift before your transaction is actually included — never treat an eth_call result as a settlement guarantee.3 or -32000), not as a special result field — always handle the error path so a reverting GMX or Aave call is not mistaken for empty return data.参数
Transaction object. Required fields: `to` (target contract). Optional: `from` (msg.sender), `gas` (hex), `gasPrice` (hex), `value` (hex wei), `data` (ABI-encoded calldata).
"latest" | "safe" | "finalized" | "earliest" | "pending" | hex block number
Optional map of address → { balance, nonce, code, state, stateDiff } overrides applied only for this call. Not supported by all providers.