chain_nonce
[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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"address": "<address>"
},
"name": "chain_nonce"
}
}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. |