{"base_url":"https://chain.cyberwarex.com","chains":{"arbitrum":{"chain_id":42161,"native":"ETH"},"base":{"chain_id":8453,"native":"ETH"},"ethereum":{"chain_id":1,"native":"ETH"},"optimism":{"chain_id":10,"native":"ETH"},"polygon":{"chain_id":137,"native":"POL"}},"description":"Pay-per-call EVM chain data for AI agents: wallet balances, token profiles with live DEX market data, spot prices, gas market, decoded transactions, and ENS \u2014 across Base, Ethereum, Arbitrum, Optimism, Polygon. No API keys, no node infra, no subscription: one x402 USDC micropayment per call.","discovery":"/.well-known/x402","endpoints":[{"description":"Wallet snapshot on any major EVM chain: native token balance with USD value, USDC balance, transaction count (nonce), and whether the address is a smart contract or a regular EOA. One call, no RPC keys, node infrastructure or block-explorer scraping needed. Use it to check a counterparty wallet, confirm an address is funded before sending a transaction, or profile an unknown address.","input_example":{"address":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","chain":"base"},"input_schema":{"additionalProperties":false,"properties":{"address":{"description":"Wallet or contract address to inspect.","pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"chain":{"default":"base","description":"EVM chain to query.","enum":["base","ethereum","arbitrum","optimism","polygon"],"type":"string"}},"required":["address"],"type":"object"},"method":"GET","path":"/wallet","price_usdc":0.003},{"description":"ERC-20 token profile on any major EVM chain: on-chain metadata (name, symbol, decimals, total supply) read straight from the contract, joined with live DEX market data (USD price, liquidity, 24h volume, 24h change, and the top trading pair with its DEX). Use it to price a token, check liquidity depth before a swap, or resolve an unknown contract address into a real token.","input_example":{"address":"0x4200000000000000000000000000000000000006","chain":"base"},"input_schema":{"additionalProperties":false,"properties":{"address":{"description":"ERC-20 token contract address.","pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"chain":{"default":"base","description":"EVM chain to query.","enum":["base","ethereum","arbitrum","optimism","polygon"],"type":"string"}},"required":["address"],"type":"object"},"method":"GET","path":"/token","price_usdc":0.004},{"description":"Spot USD price for any crypto asset. Accepts a ticker symbol (eth, btc, sol), a CoinGecko id (ethereum), or an EVM token contract address. Returns the USD price plus 24h change, with market cap for listed assets, or liquidity, 24h volume and the top DEX pair for contract addresses. Cached 60 seconds so repeated calls in one agent workflow stay consistent with each other.","input_example":{"query":"eth"},"input_schema":{"additionalProperties":false,"properties":{"chain":{"default":"base","description":"EVM chain to query.","enum":["base","ethereum","arbitrum","optimism","polygon"],"type":"string"},"query":{"description":"Ticker symbol, CoinGecko id, or 0x token contract address.","type":"string"}},"required":["query"],"type":"object"},"method":"GET","path":"/price","price_usdc":0.002},{"description":"Live gas market on any major EVM chain: current gas price, base fee and priority-fee percentiles (p25/p50/p75) in gwei, plus the estimated cost in native token and USD for a plain transfer (21k gas) and a typical DEX swap (200k gas). Lets an agent decide whether a transaction is worth sending right now or should wait for cheaper gas, and budget the fee before signing.","input_example":{"chain":"base"},"input_schema":{"additionalProperties":false,"properties":{"chain":{"default":"base","description":"EVM chain to query.","enum":["base","ethereum","arbitrum","optimism","polygon"],"type":"string"}},"required":[],"type":"object"},"method":"GET","path":"/gas","price_usdc":0.002},{"description":"Transaction lookup and decode on any major EVM chain. Turns a raw tx hash into agent-readable facts: success or failure status, block number, sender and recipient, native value transferred, gas used, fee in native token and USD, and every ERC-20 transfer decoded with token symbol, decimals and human-readable amount. Returns found=false for an unknown hash instead of erroring.","input_example":{"chain":"base","hash":"0x2f1c8b3d4e5a6f708192a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d6e7f8"},"input_schema":{"additionalProperties":false,"properties":{"chain":{"default":"base","description":"EVM chain to query.","enum":["base","ethereum","arbitrum","optimism","polygon"],"type":"string"},"hash":{"description":"Transaction hash to look up.","pattern":"^0x[a-fA-F0-9]{64}$","type":"string"}},"required":["hash"],"type":"object"},"method":"GET","path":"/tx","price_usdc":0.003},{"description":"ENS name resolution in both directions on Ethereum mainnet. Pass name to resolve an ENS name to its address (forward), or pass address to get that address's primary ENS name (reverse, forward-verified so spoofed reverse records are rejected). Read straight from the ENS registry. Use it to turn vitalik.eth into an address, or to label a raw address with a human-readable name.","input_example":{"name":"vitalik.eth"},"input_schema":{"additionalProperties":false,"anyOf":[{"required":["name"]},{"required":["address"]}],"properties":{"address":{"description":"Address to reverse-resolve to its primary ENS name.","pattern":"^0x[a-fA-F0-9]{40}$","type":"string"},"name":{"description":"ENS name to resolve forward, e.g. vitalik.eth.","type":"string"}},"required":[],"type":"object"},"method":"GET","path":"/ens","price_usdc":0.003}],"free":["/","/.well-known/x402","/health","/openapi.json"],"free_trial":{"calls_per_ip_per_day":1,"how":"send header 'X-Free-Trial: 1' or query '?free_trial=1'","note":"bare unpaid requests still return HTTP 402"},"name":"Onchain Query API","openapi_url":"/openapi.json","payment":{"chain":"base","facilitator":"cdp","payTo":"0x058D0Cc5CC97e61e8A9f38D6d6365bce525921B2","protocol":"x402","token":"USDC"}}
