Arbitrum One
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
Arbitrum One
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
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.| # | Nom | Type | Obligatoire | Description |
|---|---|---|---|---|
| 1 | address | string (hex) | Oui | The account whose nonce to query. |
| 2 | blockTag | string | Non | Use "pending" to include mempool transactions when chaining multiple sends.Défaut : latest |
| Type | Description |
|---|---|
| string (hex) | Hex-encoded nonce (number of confirmed transactions sent from the address at that block). |
Try it live in the Arbitrum One playground.
| Code | Message | Cause |
|---|---|---|
-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.Paramètres
0x-prefixed 20-byte address
hex block number or "latest"/"earliest"/"pending"/"safe"/"finalized"