Arbitrum One
Arbitrum One
Arbitrum One
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
eth_blockNumber returns the height of the most recently sequenced L2 block on Arbitrum One, the Optimistic Rollup that settles to Ethereum and pays gas in ETH. Because the Nitro sequencer gives sub-second soft confirmations, this height climbs quickly — far faster than the underlying L1 batch cadence. Point it at https://arbitrum.therpc.io/YOUR_API_KEY (chain ID 42161) to read the current tip of the chain.
eth_getLogs ranges from a GMX or Uniswap deployment.此方法不需要任何参数,传入空数组 [] 即可。
| 类型 | 描述 |
|---|---|
| string (hex) | Hex-encoded integer block number. Parse with parseInt(value, 16) or BigInt(value). |
Try it live in the Arbitrum One playground.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-32603 | Internal error | Node is not reachable or has not yet produced any block. |
"0xb71b00"), not a number — run it through parseInt(value, 16) or BigInt(value) before any arithmetic.