chain_nonce
Retrieve an address or ENS name's confirmed and pending transaction nonce before signing, preventing nonce collisions.
Instructions
[Trading Data API] Transaction count (nonce) for an address or ENS name: confirmed nonce plus pending nonce, so an agent can sign the next transaction without a collision.
Example: /v1/chain-nonce?address=0xB71C06dAC44c91bc997FB84C247DeEF676F4A9f6&chain=base
Use when you need an address's confirmed and pending transaction count before building a transaction. Not for balances.
Behavior: read-only. Priced via x402 (USDC on Base) or free with WICKEDAPI_API_KEY; with neither, you get HTTP 402 with the decoded price in payment_required (a price quote, not a failure).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Optional. ethereum, base, arbitrum, optimism, polygon (default base). | |
| address | Yes | Required. A 0x address or an ENS name. |