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.
Flashblocks: Query https://mainnet.base.org with "pending" to get the nonce inclusive of all pre-confirmed transactions, updated every ~200ms. This is critical for agents submitting high-frequency transactions to avoid nonce gaps.

Parameters

string
required
The 20-byte address to query.
string
required
Block number in hex, or "latest", "pending", "safe", "finalized", "earliest". Use "pending" to include all pre-confirmed transactions in the nonce count.

Returns

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

Example