{"uid":"cap_67ZduSU5JZRZUv9EvlXxv","slug":"account-nonce-lookup-evm-6ecdb8cf","name":"Account Nonce Lookup (EVM)","description":"The transaction count of an account, which is the nonce its next transaction must carry. Ask for block \"pending\" to include transactions already in the mempool, which is what you want before signing; the default \"latest\" counts only mined transactions. Returns the count as a decimal string and as hex. EVM chains: ethereum, base, polygon, arbitrum, optimism.","url":"https://agent402.tools/api/chain/nonce","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["address"],"properties":{"block":{"type":"string","description":"latest (default), pending, earliest, safe, finalized, or a block number. Use \"pending\" for the nonce of a transaction you are about to send."},"address":{"type":"string","description":"0x account address"},"network":{"type":"string","description":"ethereum | base | polygon | arbitrum | optimism (default base)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["address","network","block","nonce","nonceHex"],"properties":{"block":{"type":"string"},"nonce":{"type":"string"},"address":{"type":"string"},"network":{"type":"string"},"nonceHex":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"block":"latest","nonce":"412","address":"0xabf4fabd7c416fb67202e5f9002389fc75e2a9d0","network":"base","nonceHex":"0x19c"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nZ682CyTNfDHlx5Al2iYS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the transaction count (nonce) of an EVM account address as both decimal and hex, optionally scoping to pending mempool state.","exampleAgentPrompt":"What's the pending nonce for 0xabf4fabd7c416fb67202e5f9002389fc75e2a9d0 on Base — I need it to sign my next transaction and want to include any mempool transactions in the count.","exampleUseCases":[{"title":"Pre-signing nonce check on Base","prompt":"Before I sign and broadcast this transaction, get me the pending nonce for 0xabf4fabd7c416fb67202e5f9002389fc75e2a9d0 on Base so I set the right sequence number."},{"title":"Ethereum wallet transaction count audit","prompt":"How many transactions has 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 sent on Ethereum mainnet? Give me the latest mined count."},{"title":"Arbitrum nonce for multisig coordinator","prompt":"Fetch the current nonce for 0x1234567890abcdef1234567890abcdef12345678 on Arbitrum — I need to coordinate the next nonce across multiple signers."}],"resultDescription":"A JSON object containing the queried address, the network, the block tag used, the transaction count as a decimal string (nonce), and the same value as a hex string (nonceHex). Example: {\"address\":\"0xabf4...\",\"network\":\"base\",\"block\":\"latest\",\"nonce\":\"412\",\"nonceHex\":\"0x19c\"}.","failureModes":["Invalid or malformed address returns an error response","Unsupported network name returns an error","Invalid block tag value returns an error","Network RPC node unavailability causes a timeout or 5xx error","Address with zero transactions returns nonce 0 (not an error, but may be unexpected)"],"whenToPreferThis":"Use this endpoint when you need the transaction count / nonce for an EVM account before constructing or signing a transaction, especially with block=pending to capture in-flight mempool transactions. Prefer it over general block explorer APIs when you need both decimal and hex nonce quickly with a simple GET call across multiple EVM chains (Ethereum, Base, Polygon, Arbitrum, Optimism).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:41:25.856Z","isFirstParty":false}