# Onchain Toolkit – Address Info (Native Balance, Nonce, Code, ERC-20)

> Onchain Toolkit – Address Info (Native Balance, Nonce, Code, ERC-20) is a paid API for AI agents from onchain-toolkit.bowling-anthony.workers.dev, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-15).

Returns the native ETH balance, next transaction nonce, and whether an address holds contract bytecode for a given Ethereum address; optionally returns an ERC-20 token balance in the same call.

## Facts

- Endpoint: GET https://onchain-toolkit.bowling-anthony.workers.dev/address
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/onchain-toolkit-address-info-native-balance-nonce-code-erc-20-e082d399
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qoFVYIQzugisWosV3w2jo

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 onchain-toolkit-address-info-native-balance-nonce-code-erc-20-e082d399
```

Example prompt: What's the ETH balance and next nonce for wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045, and also check its USDC balance using the USDC contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48?

## When to prefer this

Choose this endpoint when you need a lightweight, single-call lookup of an Ethereum address's native balance, nonce, and/or contract status — especially when you also want an ERC-20 balance in the same request without needing full block explorer data. Ideal for pre-transaction checks (nonce and balance), wallet classification (EOA vs contract), and token balance queries. Prefer over full block explorer APIs when you only need these specific fields and want a low-cost, fast response.

## Known failure modes

- Invalid or malformed Ethereum address returns a 400 error
- Unknown or unsupported network/chain results in an error response
- Invalid ERC-20 token contract address may return zero balance or an error
- Network congestion or RPC node unavailability may cause timeouts
- Payment not received (x402) results in 402 Payment Required before data is returned

## How this service works

Native balance, next nonce, and whether an address holds contract code. Pass token to read an ERC-20 balance in the same call.

## Output

Returns a JSON object containing: native balance (in wei or ETH), the next nonce (integer, safe to use for the next transaction), a boolean indicating whether the address contains contract bytecode, and optionally the ERC-20 token balance if a token contract address was supplied.

## 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"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "nextNonce": 37,
  "nativeBalance": "0.0142"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onchain-toolkit-address-info-native-balance-nonce-code-erc-20-e082d399/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from onchain-toolkit.bowling-anthony.workers.dev](https://www.zero.xyz/host/onchain-toolkit.bowling-anthony.workers.dev/llms.txt)
