Arbitrum One
Arbitrum One
Arbitrum One
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
eth_getTransactionCount returns the nonce of an account on Arbitrum One — the count of transactions that address has sent, which is also the value you must set on the next transaction. Arbitrum One (chain ID 42161) is an Optimistic Rollup paying gas in ETH, and the sequencer's sub-second soft confirmations mean a pending nonce updates quickly. Call it at https://arbitrum.therpc.io/YOUR_API_KEY with an address and a block tag and it returns the number of transactions sent from that address (the account nonce) at the specified block, hex-encoded.
latest nonce against the pending nonce — a gap means something is queued but unconfirmed.| # | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 1 | address | string (hex) | 是 | The account whose nonce to query. |
| 2 | blockTag | string | 否 | Use "pending" to include mempool transactions when chaining multiple sends.默认值: latest |
| 类型 | 描述 |
|---|---|
| string (hex) | Hex-encoded nonce (number of confirmed transactions sent from the address at that block). |
Try it live in the Arbitrum One playground.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-32602 | Invalid params | Address is malformed or block tag is unrecognised. |
-32000 | Missing trie node | Historical block pruned on a non-archive node. |
pending tag; latest returns the same nonce for all of them until the sequencer confirms one, causing collisions.CREATE/CREATE2, not on ordinary calls, so it is not a count of inbound interactions.参数
0x-prefixed 20-byte address
hex block number or "latest"/"earliest"/"pending"/"safe"/"finalized"