Native balance, next nonce, and whether an address holds contract code
Native balance, next nonce, and whether an address holds contract code. Pass token to read an ERC-20 balance in the same call.
2000 (raw units)
price
2
calls / 30d
1
unique payers
2026-08-31
updated
Provider
onchain-toolkit.bowling-anthony.workers.dev · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x1831f336585a6C67B6A954d28f3E07F44C4EEBbd",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "2000",
"maxTimeoutSeconds": 120
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"queryParams": {
"address": "0x-prefixed address.",
"chain": "Chain name, defaults to base.",
"token": "Optional ERC-20 contract address."
},
"type": "http"
},
"output": {
"example": {
"nativeBalance": "0.0142",
"nextNonce": 37
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://onchain-toolkit.bowling-anthony.workers.dev/address" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://onchain-toolkit.bowling-anthony.workers.dev/address");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://onchain-toolkit.bowling-anthony.workers.dev/address")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/8163.json, and this resource appears in /discovery/resources and /discovery/search.