# Kit Rx EVM Gas, Token Scan & Tx Decode > Onchain tools for AI agents: multi-chain gas prices, token risk scan and DEX price, calldata and EIP-712 signature safety checks, transaction decoding, ABIs, wallet balances and ENS, paid per call over x402. Gas oracle across Base, Ethereum, Arbitrum, Optimism, Polygon and Avalanche with USD costs; token risk scan (owner, mint/pause/blacklist functions, proxy, liquidity) and on-chain DEX price; pre-signing safety for calldata and EIP-712 typed data (Permit, Permit2, EIP-3009); human-readable transaction decoding; verified ABIs via Sourcify; wallet balances with USDC by chain; ENS and Basename resolution. Each call is one x402 v2 payment in USDC on Base, Polygon, Arbitrum, Avalanche or Sei; no signup or API key. Requests that fail or match nothing are not charged. ## Payment - Protocol: x402 v2, scheme exact, USDC on Base (eip155:8453); also accepted: eip155:137,eip155:42161,eip155:43114,eip155:1329 (Polygon, Arbitrum, Avalanche, Sei). payTo 0xAf8E0A8a8A0A8f65831b2dD0FFe0c1B804698D70 - An unpaid request returns HTTP 402 with the payment requirements in the PAYMENT-REQUIRED header. - Only 2xx responses are settled. 400 (invalid input), 404 (no match) and 5xx (upstream down) are free. - A request with no query parameters runs the documented example query and says so in notes (defaulted_to_example: true). - Machine-readable: https://chain.kit-rx.com/openapi.json, https://chain.kit-rx.com/.well-known/x402, https://chain.kit-rx.com/catalog.json - MCP: remote Streamable HTTP server at https://chain.kit-rx.com/mcp (MCP Registry name com.kit-rx.api/kitrx). Each route is a tool; paid tools use the x402 MCP transport (_meta["x402/payment"]); kitrx_catalog is free. - Human docs: https://chain.kit-rx.com/docs (one page per endpoint). Agent skill: https://chain.kit-rx.com/.well-known/agent-skills/index.json ## Endpoints - GET https://chain.kit-rx.com/v1/chain/gas ($0.002) params: chains?, speed?. Live gas fees and estimated USD transaction costs on Base, Ethereum, Arbitrum, OP Mainnet, Polygon and Avalanche: base fee and next-block estimate, priority fee p25/p50/p75 over 10 blocks, gas price, 10-block base-fee trend, suggested max fee, and USD cost of a native transfer, ERC-20 transfer and swap (upper-bound rollup L1 fees included), plus the cheapest chain per action. Sources: JSON-RPC via PublicNode (public RPC fallback); prices from on-chain Uniswap v3 pools. - GET https://chain.kit-rx.com/v1/chain/calldata-decode ($0.002) params: data, to?, chain?. Decodes EVM calldata before signing: function signature, selector, named arguments, candidate signatures for ambiguous selectors, one level of bundled calls (multicall, Multicall3, ERC-4337 execute, Safe execTransaction, multiSend), token symbol and decimals, and risk flags with reasons for unlimited approvals, setApprovalForAll, permits, transferFrom, admin calls and delegatecall. Sources: Sourcify ABIs and 4byte signatures, JSON-RPC via PublicNode. - GET https://chain.kit-rx.com/v1/chain/sign-inspect ($0.002) params: typed, expected_chain?, expected_spender?. Inspects EIP-712 typed data before signing: kind (EIP-2612 or DAI permit, Permit2 allowance or transfer, EIP-3009 transfer authorization as used by x402, Seaport order, Safe transaction, generic), digest, chain id with mismatch check, verifying contract with token symbol and decimals, spender or recipient, raw and formatted amount, unlimited flag, deadline window in ISO time, risk level, flags with reasons, one-line summary. Sources: JSON-RPC via PublicNode, Sourcify. - GET https://chain.kit-rx.com/v1/chain/contract-abi ($0.002) params: chain, address, format?. ABI and metadata for an EVM contract on Base, Ethereum, Arbitrum, OP Mainnet, Polygon or Avalanche: Sourcify verification match, contract name, compiler, proxy type and implementations (implementation ABI merged), function, event and error signatures with selectors and topics, and read vs write function lists. Unverified contracts get a best-effort function list from bytecode selectors named via the Sourcify 4byte database. Sources: Sourcify, chain JSON-RPC via PublicNode. - GET https://chain.kit-rx.com/v1/chain/tx-decode ($0.005) params: chain, hash. Decoded EVM transaction on Base, Ethereum, Arbitrum, OP Mainnet, Polygon or Avalanche: status, block time, sender, target, value and fee in native coin and USD (current price), method and arguments, decoded events, ERC-20/721 token transfers, net token flows per address and a one-line summary. ABIs from Sourcify verified contracts or the Sourcify 4byte database. Ethereum receipts cover about the last 2 days. Sources: PublicNode and official chain JSON-RPC, Uniswap v3 pools. - GET https://chain.kit-rx.com/v1/chain/token-scan ($0.01) params: chain, address. Heuristic risk screen of an ERC-20 token on Base, Ethereum, Arbitrum, OP Mainnet, Polygon or Avalanche: name, symbol, supply; owner and renounce status; proxy and upgradeability; Sourcify verification; privileged functions in bytecode or verified ABI (mint, pause, blacklist, fee, limit, trading switch); Uniswap v2/v3 and Aerodrome pools with USD depth; risk score 0-100 with a reason per flag. Sources: on-chain reads via PublicNode JSON-RPC, Sourcify. - GET https://chain.kit-rx.com/v1/chain/token-price ($0.002) params: chain, address. Spot USD and native-coin price of an ERC-20 token on Base, Ethereum, Arbitrum, OP Mainnet, Polygon or Avalanche from its deepest Uniswap v2/v3 pool (plus Aerodrome on Base) paired with the wrapped native coin or USDC, with each pool's fee and USD liquidity, the best pool, a confidence level and the block read. Sources: on-chain reads via PublicNode JSON-RPC (official RPC fallback); native USD from Uniswap v3 pools. - GET https://chain.kit-rx.com/v1/chain/wallet-balances ($0.003) params: address, chains?. Balances of an EVM wallet (0x address, ENS name or Basename) on Base, Ethereum, Arbitrum, OP Mainnet, Polygon and Avalanche: native coin plus a curated list of 9-13 major tokens per chain (USDC, USDT, DAI, WETH, WBTC/cbBTC, AERO, ARB, OP and more), USD values, per-chain and total USD, chains holding funds, and native USDC per chain for x402 payments. Sources: each chain's JSON-RPC via PublicNode; prices from on-chain Uniswap v3 and Velodrome pools. - GET https://chain.kit-rx.com/v1/chain/ens ($0.002) params: name?, address?. ENS and Basenames lookup: name to address, or address to primary name with forward verification. Returns the ETH address, resolver contract, text records (url, avatar, description, Twitter, GitHub, Telegram, and email when set on-chain) and decoded contenthash (IPFS, IPNS, Swarm, Arweave). Sources: ENS Universal Resolver on Ethereum and the Basenames registry on Base, read via PublicNode JSON-RPC; offchain (CCIP-read) names are reported, not followed. ## Data sources US FDA (openFDA), NLM RxNav/RxNorm, CMS NADAC (data.medicaid.gov), Wikidata, GLEIF, SEC EDGAR, US Census Geocoder, USGS EPQS, NOAA NWS, RDAP registries, Cloudflare DNS-over-HTTPS, and the checked websites themselves. Reports are informational summaries; verify critical decisions against the primary source.