Skip to main content
Returns the number of transactions sent from an address. This value is the account’s current nonce — the value to use as nonce when constructing the next transaction.
Since Denim, Base produces a canonical block every 200ms and Flashblocks are retired. The "pending" tag is still accepted, but it no longer returns Flashblocks preconfirmation state. Use "latest" for the count of transactions in canonical blocks. If you submit transactions at high frequency, track the next nonce in your application and reconcile it with "latest", rather than relying on a single RPC read to avoid nonce gaps or reuse. See Migrate From Flashblocks.

Parameters

string
required
The 20-byte address to query.
string
required
Block number in hex, or "latest", "pending", "safe", "finalized", "earliest".

Returns

string
The transaction count (nonce) as a hexadecimal string.

Example