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"