# Kairo Agent x402 API — Onchain Address Lookup

> Kairo Agent x402 API — Onchain Address Lookup is a paid API for AI agents from kairo-x402.onrender.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Looks up ETH and USDC balances, transaction count, contract status, and activity status for any EVM address on-chain, paid per-call via x402.

## Facts

- Endpoint: GET https://kairo-x402.onrender.com/api/onchain
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kairo-agent-x402-api-onchain-address-lookup-bb9b2200
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XPw-dpQNJCsK_g_zP31JG

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 kairo-agent-x402-api-onchain-address-lookup-bb9b2200
```

Example prompt: Can you check the onchain stats for 0x742d35Cc6634C0532925a3b844Bc454e4438f44e — I want to know its ETH and USDC balances, how many transactions it's had, and whether it's a contract or a regular wallet?

## When to prefer this

Choose this endpoint when you need quick, no-account-required onchain data for any EVM address — especially ETH/USDC balances and activity status — and you want to pay micro-amounts per call via x402 without API keys or KYC. Ideal for agent workflows on Base that need to verify wallet state before executing transactions.

## Known failure modes

- Invalid or malformed 0x address returns an error
- Address not found on network may return zero balances with is_active=false
- Payment failure via x402 protocol will block the response
- Network congestion or RPC downtime may cause slow or failed responses
- Non-EVM address formats (e.g. Solana pubkeys) will be rejected

## How this service works

Crypto-native ($0.02 USDC on Base, x402) utility endpoints for agents. No accounts, no KYC — pay-per-call.

## Output

Returns a JSON object with the queried address, the network name, current ETH balance, current USDC balance, total transaction count, a boolean indicating if the address is a smart contract, a boolean for whether it is active, and a boolean for whether it is funded.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "address"
 ],
 "properties": {
  "address": {
   "type": "string",
   "description": "0x EVM address"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "network",
  "address",
  "eth_balance",
  "usdc_balance",
  "tx_count",
  "is_contract",
  "is_active"
 ],
 "properties": {
  "address": {
   "type": "string"
  },
  "network": {
   "type": "string"
  },
  "tx_count": {
   "type": "integer"
  },
  "is_active": {
   "type": "boolean"
  },
  "is_funded": {
   "type": "boolean"
  },
  "eth_balance": {
   "type": "number"
  },
  "is_contract": {
   "type": "boolean"
  },
  "usdc_balance": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kairo-agent-x402-api-onchain-address-lookup-bb9b2200/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kairo-x402.onrender.com](https://www.zero.xyz/host/kairo-x402.onrender.com/llms.txt)
