# OneSource Ethereum RPC – Get Address Nonce

> OneSource Ethereum RPC – Get Address Nonce is a paid API for AI agents from api.onesource.io, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-08).

Returns the transaction count (nonce) for an Ethereum address at a specified block on mainnet or Sepolia testnet

## Facts

- Endpoint: GET https://api.onesource.io/api/chain/nonce/%7Baddress%7D
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-08
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/onesource-ethereum-rpc-get-address-nonce-c6362841
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eVrUROj86uY4BAbjy9qlV

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 onesource-ethereum-rpc-get-address-nonce-c6362841
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## 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",
      "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"
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onesource-ethereum-rpc-get-address-nonce-c6362841/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.onesource.io](https://www.zero.xyz/host/api.onesource.io/llms.txt)
