{"openapi":"3.1.0","info":{"title":"Zenzen Onchain Reader x402 API","version":"1.0.0","description":"Pay-per-call read-only onchain utilities for AI agents: DEX token snapshot across chains, Base and Solana wallet balances, Base gas. USDC on Base via x402.","x-guidance":"GET endpoints. /v1/token/dex?address=<token> gives top DEX pairs with price, liquidity, volume (any chain). /v1/base/balance?address=0x.. gives ETH and USDC on Base. /v1/solana/balance?address=.. gives SOL and USDC. /v1/base/gas gives gas price and base fee. Pay per call with x402 (USDC on Base).","contact":{"name":"Zenzen Onchain Reader x402 API","url":"https://api.zenzen.fun"}},"servers":[{"url":"https://api.zenzen.fun"}],"paths":{"/v1/token/dex":{"get":{"operationId":"v1_token_dex","summary":"Market snapshot for any token address on any chain DexScreener covers (EVM or Solana): top 5 DEX pairs by liquidity with USD price, liquidity, 24h volume, price change (5m/1h/6h/24h), 24h transactions, FDV, market cap and pair age","description":"Market snapshot for any token address on any chain DexScreener covers (EVM or Solana): top 5 DEX pairs by liquidity with USD price, liquidity, 24h volume, price change (5m/1h/6h/24h), 24h transactions, FDV, market cap and pair age.","parameters":[{"name":"address","in":"query","required":true,"description":"Token contract / mint address","schema":{"type":"string"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.005000"}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"address":"So111...","pairCount":120,"pairs":[{"chain":"solana","dex":"raydium","priceUsd":140.1,"liquidityUsd":5000000,"volume24hUsd":9000000,"change":{"h24":2.1}}]}}}},"402":{"description":"Payment Required: x402 v2 terms in the PAYMENT-REQUIRED header (USDC on Base)"}}}},"/v1/base/balance":{"get":{"operationId":"v1_base_balance","summary":"ETH and USDC balances of an address on Base mainnet, read from a public RPC node","description":"ETH and USDC balances of an address on Base mainnet, read from a public RPC node. Returns raw and human units plus the latest block number.","parameters":[{"name":"address","in":"query","required":true,"description":"EVM address (0x + 40 hex)","schema":{"type":"string"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002000"}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"address":"0x8335...","block":25000000,"eth":0.0123,"usdc":150.25,"ethWei":"12300000000000000","usdcRaw":"150250000"}}}},"402":{"description":"Payment Required: x402 v2 terms in the PAYMENT-REQUIRED header (USDC on Base)"}}}},"/v1/solana/balance":{"get":{"operationId":"v1_solana_balance","summary":"SOL and USDC balances of a Solana wallet address, read from public Solana RPC nodes","description":"SOL and USDC balances of a Solana wallet address, read from public Solana RPC nodes. Returns lamports, SOL, and total USDC across the wallet's token accounts.","parameters":[{"name":"address","in":"query","required":true,"description":"Solana base58 address","schema":{"type":"string"}}],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.002000"}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"address":"Vote1111...","sol":1.5,"lamports":1500000000,"usdc":25.5,"slot":400000000}}}},"402":{"description":"Payment Required: x402 v2 terms in the PAYMENT-REQUIRED header (USDC on Base)"}}}},"/v1/base/gas":{"get":{"operationId":"v1_base_gas","summary":"Current gas conditions on Base mainnet: gas price and EIP-1559 base fee in gwei, plus latest block number and timestamp (raw gwei, no USD conversion)","description":"Current gas conditions on Base mainnet: gas price and EIP-1559 base fee in gwei, plus latest block number and timestamp (raw gwei, no USD conversion).","parameters":[],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001000"}},"responses":{"200":{"description":"Success","content":{"application/json":{"example":{"block":25000000,"timestamp":"2026-11-27T00:00:00.000Z","gasPriceGwei":0.006,"baseFeeGwei":0.005}}}},"402":{"description":"Payment Required: x402 v2 terms in the PAYMENT-REQUIRED header (USDC on Base)"}}}},"/":{"get":{"summary":"Free info endpoint","security":[],"responses":{"200":{"description":"OK"}}}},"/health":{"get":{"summary":"Free info endpoint","security":[],"responses":{"200":{"description":"OK"}}}},"/llms.txt":{"get":{"summary":"Free info endpoint","security":[],"responses":{"200":{"description":"OK"}}}},"/.well-known/x402":{"get":{"summary":"Free info endpoint","security":[],"responses":{"200":{"description":"OK"}}}}}}