Use when an agent needs what a Base address holds in one call instead of one RPC call p…
Use when an agent needs what a Base address holds in one call instead of one RPC call per token. Input: address; optional tokens (up to 20 ERC-20 addresses, comma-separated; default USDC, EURC, USDbC, WETH, cbBTC, cbETH, wstETH). Output: JSON block+time, ETH…
by 1gateway.dev · discovered, not yet claimed by its owner · updated 2026-10-12
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
Use when an agent needs what a Base address holds in one call instead of one RPC call per token. Input: address; optional tokens (up to 20 ERC-20 addresses, comma-separated; default USDC, EURC, USDbC, WETH, cbBTC, cbETH, wstETH). Output: JSON block+time, ETH balance, per-token symbol, decimals, raw and decimal balance, nonce, isContract. Chain state only, no prices. Bad input: 400, not charged. Example: ?address=0x6246eee0355Dd7A93C888fE59e1151388A0cC5a1
Tags: base · wallet-balance · erc20 · onchain · portfolio · bazaar
Call contract
- Method
- GET
- Input
- query parameters
- Output
- json
- Last paid call
- 2026-10-12
{
"address": "0x6246eee0355Dd7A93C888fE59e1151388A0cC5a1",
"tokens": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913,0x4200000000000000000000000000000000000006"
}{
"address": "0x6246eee0355Dd7A93C888fE59e1151388A0cC5a1",
"block": {
"number": 52515381,
"timestamp": "2026-10-12T15:48:29.000Z"
},
"chain": "base",
"chainId": 8453,
"codeSize": 0,
"eth": {
"balance": 0.016974638846759017,
"wei": "16974638846759016"
},
"isContract": false,
"nonZeroTokens": 1,
"note": "Balances are raw chain state at the stated block. No prices, no USD values. The default token set is a short curated list; pass tokens= to check others.",
"rpc": {
"kind": "public",
"source": "base-rpc.publicnode.com"
},
"tokenSet": "default",
"tokens": [
{
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"balance": 0.5179,
"decimals": 6,
"issuer": "Circle",
"raw": "517900",
"status": "ok",
"symbol": "USDC"
}
],
"transactionCount": 7
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/34841.jsonfor the price and payment options. - Pay. Call
GET https://1gateway.dev/v1/onchain/base/balances. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.002 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base
- Demand
- 2 calls · 2 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.002 | 0x6246eee0355Dd7A93C888fE59e1151388A0cC5a1 | 300s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x6246eee0355Dd7A93C888fE59e1151388A0cC5a1",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "2000",
"amountUsd": 0.002,
"maxTimeoutSeconds": 300
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"properties": {
"address": {
"type": "string"
},
"block": {
"properties": {
"number": {
"type": "integer"
},
"timestamp": {
"type": "string"
}
},
"type": "object"
},
"chain": {
"type": "string"
},
"chainId": {
"type": "integer"
},
"codeSize": {
"type": "integer"
},
"eth": {
"properties": {
"balance": {
"type": "number"
},
"wei": {
"type": "string"
}
},
"type": "object"
},
"isContract": {
"type": "boolean"
},
"nonZeroTokens": {
"type": "integer"
},
"note": {
"type": "string"
},
"rpc": {
"properties": {
"kind": {
"type": "string"
},
"source": {
"type": "string"
}
},
"type": "object"
},
"tokenSet": {
"type": "string"
},
"tokens": {
"items": {
"properties": {
"address": {
"type": "string"
},
"balance": {
"type": [
"number",
"null"
]
},
"decimals": {
"type": [
"integer",
"null"
]
},
"issuer": {
"type": [
"string",
"null"
]
},
"raw": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"symbol": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"type": "array"
},
"transactionCount": {
"type": "integer"
}
},
"required": [
"chain",
"chainId",
"address",
"block",
"isContract",
"codeSize",
"transactionCount",
"eth",
"tokenSet",
"tokens",
"nonZeroTokens",
"rpc",
"note"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"address": "string",
"block": {
"number": 0,
"timestamp": "string"
},
"chain": "string",
"chainId": 0,
"codeSize": 0,
"eth": {
"balance": 0,
"wei": "string"
},
"isContract": true,
"nonZeroTokens": 0,
"note": "string",
"rpc": {
"kind": "string",
"source": "string"
},
"tokenSet": "string",
"tokens": [
{
"address": "string",
"balance": 0,
"decimals": 0,
"issuer": "string",
"raw": "string",
"status": "string",
"symbol": "string"
}
],
"transactionCount": 0
},
"type": "string"
}Examples
curl "https://1gateway.dev/v1/onchain/base/balances"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paidconst res = await fetch("https://1gateway.dev/v1/onchain/base/balances");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}import httpx
res = httpx.get("https://1gateway.dev/v1/onchain/base/balances")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- 1gateway.dev
- Endpoint
- https://1gateway.dev/v1/onchain/base/balances
- Machine-readable
/resources/34841.json