"method" : "POST" , "content_type" : "application/json" ,
"price_usd" : 0.002 , // 2000 atomic USDC (6 decimals)
"network" : "eip155:8453" , // Base mainnet
"asset" : "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" , // USDC
"payTo" : "0xc22f9CAEBAc37fE72D5142f35f21f6696Ea9Ef69" ,
"you_provide" : { // JSON body fields
"chain" :
optional
string
★
Value for `chain`.
Optional · string
one of "base", "ethereum" · default "base"
<CHAIN>
base ethereum
use example values clear
},
"request_body" : // live, from your inputs
{
"token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}
"you_get" : { // HTTP 200 application/json after payment
"output_schema" :
{
"type": "object",
"properties": {
"ok": {
"type": "boolean"
},
"skill": {
"type": "string"
},
"service": {
"type": "string"
},
"version": {
"type": "string"
},
"summary": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"token": {
"type": "string"
},
"chain_id": {
"type": "integer"
},
"name": {
"type": "string"
},
"symbol": {
"type": "string"
},
"decimals": {
"type": "integer"
},
"total_supply": {
"type": "string"
},
"total_supply_fmt": {
"type": "string"
},
"holder_balance": {
"type": "null"
},
"holder_balance_fmt": {
"type": "null"
},
"is_contract": {
"type": "boolean"
},
"block": {
"type": "integer"
}
}
},
"confidence": {
"type": "number"
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string"
},
"fetched_at": {
"type": "string"
},
"block": {
"type": "integer"
}
}
}
},
"generated_at": {
"type": "string"
},
"data_as_of": {
"type": "string"
},
"charged": {
"type": "boolean"
},
"warnings": {
"type": "array"
},
"next": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"ok",
"skill"
]
}
"example" :
{
"ok": true,
"skill": "erc20_meta",
"service": "erc20_meta",
"version": "1.0.0",
"summary": "USDC decimals=6 supply=…",
"data": {
"token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"chain_id": 8453,
"name": "USD Coin",
"symbol": "USDC",
"decimals": 6,
"total_supply": "1000000000000000",
"total_supply_fmt": "1000000000",
"holder_balance": null,
"holder_balance_fmt": null,
"is_contract": true,
"block": 22000000
},
"confidence": 0.95,
"sources": [
{
"name": "base eth_call/multicall3",
"url": "https://basescan.org/address/0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"fetched_at": "2026-10-24T14:00:00Z",
"block": 22000000
}
],
"generated_at": "2026-10-24T14:00:00Z",
"data_as_of": "2026-10-24T14:00:00Z",
"charged": true,
"warnings": [],
"next": [
"token_price",
"token_risk"
]
}
},
"flow" : [
POST https://grokzilla.shop/api/skills/erc20-meta with the JSON body, no payment header
← 402 Payment Required + PAYMENT-REQUIRED header: base64 JSON {x402Version: 2, accepts: [{scheme: "exact", network: "eip155:8453", asset: USDC, amount: "2000", payTo}]} (same JSON in the body)
your x402 client checks amount ≤ $0.002 and signs a USDC transfer authorization to payTo with your wallet
retry the same POST with PAYMENT-SIGNATURE: <base64> (x402 v2) or X-PAYMENT (v1 clients)
← 200 OK with the result JSON + PAYMENT-RESPONSE header (base64 settlement receipt, tx hash on Base)
],
"copy" : { // fills in from your inputs as you type
"curl" // unpaid: shows the 402 copy
"agentcash" // pays from your AgentCash wallet copy
},
"try" : // POSTs unpaid to /api/skills/erc20-meta on this host and decodes the 402. Never pays.
Send unpaid request
}