Crypto and on-chain data APIs
12.7K endpoints. Token prices, DEX pools, wallets, swaps and chain analytics that agents can pay for in stablecoins.
See the 10 most reliableAll networks
Base 112.6K
Solana 62.1K
Polygon 53K
Arbitrum 6,453
Arc 4,741
Optimism 2,700
World Chain 2,631
Avalanche 2,358
Sei 1,994
Ethereum 1,718
- Escape hatch for power usersRead-only JSON-RPC passthrough0.002agent402.tools/api/eth-call
Solana
BaseAnswering
- agent402.tools/api/l2-gas-comparisonL2 gas comparison0.002Current gas snapshot across Ethereum + supported L2s (Base, Polygon, Arbitrum, Optimism), sorted cheapest-first. Returns gas price in gwei, latest block number, chain id, and an isL2 flag per chain. Use to route a transaction to the cheapest viable L2 or to track L1→L2 gas spread.
Solana
BaseAnswering
- agent402.tools/api/mev-block-paymentMEV block payment lookup0.002Look up the MEV-Boost payment for a specific slot or block number from a major MEV-Boost relay's public data API. Returns the builder, proposer, value paid in ETH, gas usage, and tx count.
Solana
BaseAnswering
- agent402.tools/api/mev-builder-shareMEV builder share0.002Builder market share aggregated over the last N MEV-Boost blocks from a major MEV-Boost relay's public data API. Returns per-builder block count, share percent, total ETH paid to proposers, and average per block. Use to track block-builder concentration or detect a new builder gaining share.
Solana
BaseAnswering
- agent402.tools/api/mev-recent-blocksMEV recent blocks0.002Last N MEV-Boost-built blocks from a major MEV-Boost relay's public data API. For each block: slot, block number/hash, builder pubkey, proposer pubkey, gas used/limit, ETH paid to the proposer, and tx count. Use to monitor block-builder market share, proposer revenue, or to correlate an arbitrage opportunity with the block it landed in.
Solana
BaseAnswering
- agent402.tools/api/nft-collectionNFT collection metadata0.002Fetch NFT collection (ERC-721 / ERC-1155) metadata by contract address on Ethereum, Base, Polygon, Arbitrum, or Optimism: name, symbol, token type, total supply, deployer, OpenSea slug + image, floor (ETH), Twitter/Discord, and verification (safelist) status. Use to label a contract address with its collection identity before pulling tokens or sales.
Solana
BaseAnswering
- agent402.tools/api/nft-floorNFT floor price0.002Get the current floor price for an NFT collection across OpenSea + LooksRare (Ethereum). Returns per-marketplace floor (ETH), collection URL, retrieval timestamp, and the cheapest cross-marketplace floor with the marketplace tag.
Solana
BaseAnswering
- Return the NFTs owned by a wallet address on a given networkNFT holdings for an address0.002agent402.tools/api/nft-holdings
Solana
BaseAnswering
- The table + column schema for the onchain-sql toolOnchain SQL schema0.002agent402.tools/api/onchain-sql-schema
Base
Polygon
+8Answering
- Basis for one perpetualPerp premium and predicted0.002agent402.tools/api/perp-basis
Solana
BaseAnswering
- Risk limits and status of ONE builder-deployed perp dex (HIP-3)Perp dex limits and status0.002agent402.tools/api/perp-dex-limits
Solana
BaseAnswering
- Every builder-deployed perpetuals dex on Hyperliquid (HIP-3)Perp dexs (HIP-30.002agent402.tools/api/perp-dexs
Solana
BaseAnswering
- agent402.tools/api/perp-fundingPerp funding rate and history0.002Current and historical funding rate for one perpetual futures market, from a live derivatives venue: hourly rate, the 8-hour and annualized equivalents, the mark-vs-oracle premium, and a window of past prints with average, minimum, maximum and the share that were positive. Use it when an agent needs to know what holding a leveraged position costs right now, or wants to detect a funding regime flip
Solana
BaseAnswering
- agent402.tools/api/perp-funding-screenerPerp funding screener0.002Every listed perpetual ranked by current funding rate, the most positive and most negative N with open interest and 24h volume beside each, from a live venue feed. Use it when an agent is screening for carry, basis or crowded positioning across the whole perp market in one call instead of polling each contract.
Solana
BaseAnswering
- The live level-2 order book for one perpetualPerp order book0.002agent402.tools/api/perp-orderbook
Solana
BaseAnswering
- agent402.tools/api/selector-lookupFunction selector / event topic0.002Resolve a 4-byte function selector or a 32-byte event topic hash to its known human-readable Solidity signatures, via the openchain.xyz signature database with 4byte.directory as fallback. Unknown selectors return {found:false} with an empty list, not an error.
Solana
BaseAnswering
- agent402.tools/api/token-allowanceERC-20 allowance (owner to0.002How much of an ERC-20 token a spender contract is approved to move from an owner wallet - the approval check an agent runs before a swap, a bridge, or an x402 transferWithAuthorization flow. Returns the allowance as an exact decimal string scaled by the token's decimals, the raw uint256, and an `unlimited` flag for max-uint style approvals.
Solana
BaseAnswering
- agent402.tools/api/token-balancesToken balances (named contracts)0.002ERC-20 balances of one wallet for a NAMED list of token contracts (1-20) - the targeted complement to the full-portfolio wallet-balance tool. One balance read for the whole list plus symbol/decimals per contract (cached an hour server-side), so 'how much USDC and WETH does this wallet hold on.
Solana
BaseAnswering
- agent402.tools/api/wallet-balanceWallet balance (native + ERC-20)0.002Look up the native coin balance (ETH/MATIC) plus every ERC-20 holding for a wallet address on Ethereum, Base, Polygon, Arbitrum, or Optimism. Returns clean decimal balances (already scaled by token decimals) plus symbol and contract - ready to display in a UI or feed into a portfolio tool.
Solana
BaseAnswering
- agent402.tools/api/wallet-balancesWallet token balances (indexed)0.002All token balances for any address in one call, from an indexed chain-data API - ERC-20 + native on EVM, SPL on Solana; no per-token contract calls, no RPC wrangling. Networks: base, ethereum, base-sepolia, solana, solana-devnet. Symbols/decimals populated for whitelisted tokens (USDC always included).
Base
Polygon
+8Answering
- agent402.tools/api/wallet-transactionsWallet transaction history0.002Return the most recent asset transfers (incoming + outgoing) for a wallet address - native coin, ERC-20, ERC-721, ERC-1155 - already merged and sorted newest first. Each row carries the block, tx hash, counterparty, asset, and decimal value. Cap is 100 per direction; widen the window via `fromBlock` if you need deeper history.
Solana
BaseAnswering
- agent402.tools/api/asset-transfersWallet token transfers0.003Token and native transfer history for any EVM address across major chains: direction, counterparty, asset, exact decimal value, block and transaction hash, filterable by category and block range with a cursor for paging.
Solana
BaseAnswering
- agent402.tools/api/calldata-decodeCalldata decoder (ABI or0.003Decode EVM smart-contract transaction calldata into the function name and typed parameters. Supply an ABI (from /api/contract-abi) or a signature like transfer(address,uint256) for a fully offline decode; with neither, the 4-byte selector is resolved via the openchain.xyz signature database.
Solana
BaseAnswering
- agent402.tools/api/contract-abiVerified contract ABI0.003Fetch the verified ABI for a contract address from an open verified-contract repository, plus a ready-to-use list of human-readable function signatures with their 4-byte selectors. Covers 8 EVM mainnets. Unverified contracts return a structured {verified:false} miss. Pair with /api/calldata-decode to decode transactions against this ABI.
Solana
BaseAnswering
- agent402.tools/api/event-logsContract event logs0.003Fetch contract event logs (eth_getLogs) on Ethereum, Base, Polygon, Arbitrum, or Optimism - bounded so it always answers: block range capped at 2000 blocks (default: the last 100, auto-narrowed for busy contracts), at most 200 logs returned (truncated flag set if more matched).
Solana
BaseAnswering
- Snapshot of every market on ONE builder-deployed perp dex (HIP-3)Perp dex markets snapshot0.003agent402.tools/api/perp-dex-markets
Solana
BaseAnswering
- Every listed perpetual futures market in one callPerp markets snapshot0.003agent402.tools/api/perp-markets
Solana
BaseAnswering
- agent402.tools/api/rwa-issuersTokenized asset issuers0.003The issuers behind tokenized real-world assets (Coinbase, Backpack Securities, Ondo, xStocks and the rest): id and name, for rwa-issuer. Cached in-process for 5 minutes. Data provided by CoinGecko.
Base
Polygon
+8Answering
- agent402.tools/api/sol-token-pairsSolana token trading pairs0.003Every DEX pair trading a Solana token mint (Raydium, Orca, Meteora, Pump.fun AMM and the rest), sorted by liquidity: pair address, DEX, price in USD and in the quote token, liquidity, FDV and market cap, 5m/1h/6h/24h volume and price change, buy/sell transaction counts, pair age in hours, plus.
Solana
BaseAnswering
- What Solana tokens are being pushed right nowTrending and newly profiled0.003agent402.tools/api/sol-trending
Solana
BaseAnswering
Indexed from Coinbase, PayAI, Circle. Prices are in the provider's stablecoin, usually USDC. Agents pay these providers directly, outside Fourohtwo.
