Quickstart

Ethereum & Base data for agents in a few lines. Every paid call costs $0.001–0.003 in USDC on Base via x402 – no account, no API key. Try for free first: 3 calls/day with the header X-Free-Trial: 1.

1 · Try it free with curl

curl -H 'X-Free-Trial: 1' 'https://api.zato.org/api/chain/block-number?network=ethereum'
curl -H 'X-Free-Trial: 1' 'https://api.zato.org/api/chain/erc20-balance?address=0xd8da6bf26964af9d7eed9e03e53415d37aa96045&contract=0xdac17f958d2ee523a2206206994597c13d831ec7&network=ethereum'
curl -H 'X-Free-Trial: 1' 'https://api.zato.org/api/chain/wallet-report?address=0xd8da6bf26964af9d7eed9e03e53415d37aa96045&network=ethereum'

Remaining free calls are returned in X-Free-Calls-Remaining. Without the header you get 402 Payment Required with the x402 payment requirements.

2 · TypeScript (@x402/fetch)

npm i @x402/fetch @x402/evm viem

import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`); // wallet with a little USDC on Base
const fetchWithPayment = wrapFetchWithPaymentFromConfig(fetch, {
  schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(account) }],
});

const r = await fetchWithPayment("https://api.zato.org/api/chain/wallet-report?address=0xd8da6bf26964af9d7eed9e03e53415d37aa96045&network=ethereum");
console.log(await r.json()); // { data: { eth_balance, tokens, nonce, recent_transfers }, meta: { cost_usdc: "0.003", ... } }

3 · Python (x402)

pip install "x402[httpx,evm]"

import base64, json, httpx
from x402 import x402ClientSync
from x402.mechanisms.evm.exact import ExactEvmScheme

client = x402ClientSync()
client.register("eip155:*", ExactEvmScheme(signer=my_signer))  # signer for a wallet with USDC on Base

url = "https://api.zato.org/api/chain/total-supply?contract=0xdac17f958d2ee523a2206206994597c13d831ec7&network=ethereum"
r = httpx.get(url)
if r.status_code == 402:
    payment_required = json.loads(base64.b64decode(r.headers["PAYMENT-REQUIRED"]))
    payload = client.create_payment_payload(payment_required)
    # send the payload base64-encoded in the PAYMENT-SIGNATURE header and retry
    # (or use the x402[httpx] client helpers, which do this for you)

4 · Coinbase AgentKit

AgentKit agents can pay x402 endpoints with their wallet. Point the agent at our endpoints (e.g. https://api.zato.org/api/chain/erc20-balance) – see the AgentKit documentation for the x402 setup of your framework. Our OpenAPI spec (/openapi.json) describes every parameter.

5 · MCP (Claude, Cursor, …)

MCP server: https://api.zato.org/mcp (Streamable HTTP, 20 core tools; full set at https://api.zato.org/mcp/full, security checks at https://api.zato.org/mcp/security). Paid tools follow the x402 MCP transport (payment in _meta["x402/payment"]); free tools base64_encode, base64_decode, get_demo work in every client.

// Cursor (.cursor/mcp.json)
{ "mcpServers": { "zato": { "url": "https://api.zato.org/mcp" } } }

// Claude Desktop (claude_desktop_config.json) – via the mcp-remote bridge
{ "mcpServers": { "zato": { "command": "npx", "args": ["-y", "mcp-remote", "https://api.zato.org/mcp"] } } }

To pay for tools from an MCP client automatically, use an x402-capable wallet MCP such as AgentCash (npx agentcash) next to it.

Seller guide

x402 seller pitfalls we hit – CDP minimum amount, Bazaar listing, examples, uptime.

Starter repo

Minimal open-source agent (MIT): /starter/

All endpoints

Overview & prices · API reference · OpenAPI · llms.txt · free demos

api.zato.org · v2.3.0 · Docs · OpenAPI · llms.txt · /.well-known/x402 · Status · Terms · Privacy · Best-effort service, no SLA. Failed requests are never charged.