{"uid":"cap_eVrUROj86uY4BAbjy9qlV","slug":"onesource-ethereum-rpc-get-address-nonce-c6362841","name":"OneSource Ethereum RPC – Get Address Nonce","description":"Two data families for AI agents: live Ethereum mainnet, Sepolia testnet, and Robinhood Chain RPC reads, plus Deepstate on-chain market data (order books, trades, candles, and analytics). Pay per call or use batch/session mode: USDC on Base via x402, or pathUSD/USDC.e on Tempo via MPP. No API key required to start; a flat-rate monthly subscription is also available.","url":"https://api.onesource.io/api/chain/nonce/%7Baddress%7D","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","HEAD","DELETE"],"type":"string"},"pathParams":{"type":"object","required":["address"],"properties":{"address":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"}}},"queryParams":{"type":"object","properties":{"block":{"oneOf":[{"type":"integer","minimum":0},{"enum":["latest","pending","earliest","safe","finalized"],"type":"string"},{"type":"string","pattern":"^0[xX][a-fA-F0-9]+$"}]},"network":{"enum":["ethereum","sepolia","robinhood"],"type":"string","default":"ethereum"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","properties":{"nonce":{"type":"string"}},"description":"Endpoint-specific response payload"},"meta":{"type":"object","required":["endpoint","request_id"],"properties":{"endpoint":{"type":"string"},"cost_usdc":{"type":"string"},"request_id":{"type":"string"},"payment_chain":{"type":"string"},"payment_token":{"type":"string"}}},"error":{"type":["object","null"],"properties":{"code":{"type":"integer"},"message":{"type":"string"}}}}}}}}},"responseSchema":{"type":"json","example":{"data":{"nonce":"0x4d2"},"meta":{"endpoint":"/api/chain/nonce/{address}","cost_usdc":"0.001","request_id":"00000000abcdef01","payment_chain":"base","payment_token":"USDC"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wBYuVaq2dHjEMUYInAZ2k","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","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) for an Ethereum address at a specified block on mainnet or Sepolia testnet","exampleAgentPrompt":"What's the current nonce for Ethereum address 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on mainnet — use the pending block so I get the right value for my next transaction.","exampleUseCases":[{"title":"Detect replay attacks across chains","prompt":"Check the nonce for my wallet address 0x742d35Cc6634C0532925a3b844Bc9e7595f42456 on Ethereum mainnet and Sepolia — I need to verify if someone could reuse my transaction signature on the testnet."},{"title":"Audit transaction history for compliance","prompt":"Get the total transaction count for the contract deployer address 0x1234567890abcdef1234567890abcdef12345678 at block 18,000,000 on mainnet — our audit team needs to document all submitted transactions up to that point."},{"title":"Validate pending transactions before signing","prompt":"What's the nonce at the latest block for my address 0x9876543210fedcba9876543210fedcba98765432? I want to make sure I'm not submitting duplicate transactions while waiting for confirmations."}],"resultDescription":"A JSON object containing the address, the requested block tag or number, and the nonce as a hex-encoded integer (e.g. '0x4d2'), representing the total number of transactions sent from that address up to the specified block.","failureModes":["Invalid address format (not 0x-prefixed 40-char hex) returns an error","Invalid block reference returns an error","Address with no transactions returns nonce 0x0","Network parameter typo returns a validation error","Payment failure or insufficient USDC balance blocks the request","Node unavailability or rate limits may cause transient 5xx errors"],"whenToPreferThis":"Use this endpoint when an AI agent needs to construct, sign, or validate an Ethereum transaction and must know the correct nonce for a sender address. Also useful for auditing how many transactions an address has sent, detecting replay attack risks, or checking pending vs confirmed transaction counts. Prefer over generic JSON-RPC providers when no API key is available and micropayment-per-call billing via x402/USDC is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-08T06:48:57.695Z","isFirstParty":false}