# Ethereum Transaction Nonce Lookup

> Ethereum Transaction Nonce Lookup is a paid API for AI agents from api.axiomworks.co.uk, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-12).

Returns the current confirmed nonce and pending nonce for any EVM address, indicating how many transactions it has sent and whether one is stuck in the mempool.

## Facts

- Endpoint: GET https://api.axiomworks.co.uk/chain/nonce?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ethereum-transaction-nonce-lookup-0842de28
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rjRFl2JVh5XwOsH0AIK0-

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability ethereum-transaction-nonce-lookup-0842de28
```

Example prompt: What's the current confirmed nonce and pending nonce for 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Base — and does it have any stuck transactions in the mempool right now?

## When to prefer this

Use this endpoint when you need to determine the correct nonce for constructing or replacing an EVM transaction, or when diagnosing whether a wallet has a stuck/pending transaction in the mempool across Base, Ethereum, Arbitrum, Optimism, or Polygon. Prefer this over querying an RPC node directly when you want a simple REST API without managing RPC connections, and when you need both the confirmed and pending nonce in a single call.

## Known failure modes

- Invalid address format (not a 0x-prefixed 40-hex-char address) returns a validation error
- Unsupported chain name returns an error (only base, ethereum, arbitrum, optimism, polygon are accepted)
- RPC node downtime or chain congestion may cause timeouts or stale results
- Payment failure (insufficient USDC balance for x402 micropayment) blocks the request

## How this service works

Next transaction nonce for any address (latest and pending) via eth_getTransactionCount — how many txs it has sent, and whether one is stuck in the mempool. Example: {address:"0xd8dA…6045", chain:"base"}. $0.001.

## Output

Returns a JSON object with the wallet address, chain name, chain ID, confirmed nonce (txs_sent), pending nonce, a boolean has_pending flag, and the data source (eth_getTransactionCount). Example: {chain:'base', nonce:70, has_pending:false, pending_nonce:70, txs_sent:70, address:'0x...', chain_id:8453}.

## Request schema (JSON Schema)

```json
{
 "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": {
      "chain": {
       "enum": [
        "base",
        "ethereum",
        "arbitrum",
        "optimism",
        "polygon"
       ],
       "type": "string",
       "description": "EVM chain (default base)"
      },
      "wallet": {
       "type": "string",
       "description": "Alias for address (owner wallet)"
      },
      "address": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "Address"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "nonce": {
       "type": "number"
      },
      "has_pending": {
       "type": "boolean"
      },
      "pending_nonce": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "nonce": 70,
  "source": "eth_getTransactionCount",
  "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  "chain_id": 8453,
  "txs_sent": 70,
  "has_pending": false,
  "pending_nonce": 70
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ethereum-transaction-nonce-lookup-0842de28/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.axiomworks.co.uk](https://www.zero.xyz/host/api.axiomworks.co.uk/llms.txt)
