Blockchain Market Data APIs for AI Agents

Query token prices, DEX pools, DeFi protocol TVL, wallet balances, and on-chain transactions across multiple networks — pay per call, no API keys needed.

1API
105endpoints
$0.01per call
2mo agoupdated
Pay per callNo API keysUSDC · Base
Get started with AgentCash →
npx agentcash try https://stablecrypto.dev
StableCrypto
stablecrypto.dev

How It Works

Send a POST request to any of 105 endpoints covering CoinGecko on-chain data, DefiLlama protocol analytics, Alchemy token and transfer lookups, and Etherscan contract and transaction queries. Each call costs $0.01 and is paid automatically via x402 micropayments from your AgentCash wallet.

No signup, no rate-limit tiers, no monthly commitments. You pay only for the requests you make, and every response is returned as structured JSON ready for downstream processing.

On-Chain Pool and DEX Data

Retrieve trending pools, newly created pools, OHLCV chart data, and pool metadata across all supported networks via CoinGecko on-chain endpoints. Query DEXes on a specific network or get the top pools ranked by volume.

Combine pool-level data with DefiLlama DEX volume overviews and per-DEX summaries to build a complete picture of decentralized exchange activity.

DeFi Protocol Analytics

List all tracked DeFi protocols with their current TVL, or drill into a single protocol for detailed historical data. Access yield pool APY charts, borrow and lending rates, perpetual futures funding rates, and options volume overviews.

Pull fundraising rounds, treasury holdings, token emissions schedules, stablecoin market cap charts, bridge volumes, ETF flows, and DeFi hack history — all from one consistent interface.

Wallet and Contract Queries

Look up token balances, token allowances, and asset transfer histories for any Ethereum address via Alchemy endpoints. Use the generic JSON-RPC passthrough for standard methods like eth_blockNumber and eth_getBalance.

Query Etherscan for normal and internal transactions, multi-address ETH balances, verified contract source code, block rewards, and event logs filtered by address and topic.

Use cases

Automated DeFi portfolio tracker

Query token balances and prices by contract address for a wallet, then combine with protocol TVL data to calculate a user's total DeFi exposure across lending, liquidity, and staking positions.

AI trading agent with real-time signals

Feed trending pool data, OHLCV charts, and perpetual funding rates into an AI agent that identifies arbitrage or momentum opportunities and executes trades programmatically.

DeFi risk monitoring dashboard

Combine hack history, protocol TVL changes, stablecoin market cap shifts, and token emissions data to score and visualize risk levels for protocols your users interact with.

On-chain fundraising and ETF tracker

Aggregate fundraising round data and ETF historical flows to surface institutional capital movements and present them in a newsletter or analytics dashboard.

Smart contract audit lookup tool

Retrieve verified contract source code from Etherscan and cross-reference with event logs and internal transaction patterns to flag anomalous behavior before deployment.

Yield optimization engine

Poll borrow and lending pool rates alongside yield pool APY charts to automatically route capital to the highest-yielding opportunities within defined risk parameters.

Endpoints

POST
/api/coingecko/onchain/trending
Get trending pools across all networks
$0.01 USD
POST
/api/defillama/hacks
Get data on DeFi hacks and exploits
$0.01 USD
POST
/api/coingecko/onchain/new-pools
Get new pools across all networks
$0.01 USD
POST
/api/defillama/raises
Get crypto fundraising rounds data
$0.01 USD
POST
/api/coingecko/onchain/categories
Get on-chain categories
$0.01 USD
POST
/api/defillama/etfs/overview
Get crypto ETF overview data
$0.01 USD
POST
/api/coingecko/onchain/pool
Get pool data (price, transactions, volume)
$0.01 USD
POST
/api/defillama/etfs/history
Get crypto ETF historical flow data
$0.01 USD
POST
/api/coingecko/onchain/pool/info
Get pool metadata
$0.01 USD
POST
/api/coingecko/onchain/pool/ohlcv
Get pool OHLCV chart data
$0.01 USD
POST
/api/defillama/bridge
Get detailed data for a specific bridge
$0.01 USD
POST
/api/coingecko/onchain/network/dexes
Get DEXes on a network
$0.01 USD
POST
/api/coingecko/onchain/network/trending
Get trending pools on a specific network
$0.01 USD
POST
/api/defillama/treasuries
Get institutional treasury data
$0.01 USD
POST
/api/coingecko/onchain/network/pools
Get top pools on a specific network
$0.01 USD

Frequently asked questions

What authentication method does this API use?

All requests are authenticated via x402 micropayments. No API key signup or OAuth flow is required. You pay per request directly from your AgentCash wallet, and the payment header is verified before the request is processed.

How much does each request cost?

Every endpoint is priced at $0.01 USD per call. There are no monthly minimums, no tiered plans, and no overage fees. You pay only for the calls you make.

What response format do the endpoints return?

All endpoints return structured JSON. The schema varies by endpoint — pool endpoints return price, volume, and transaction arrays; protocol endpoints return TVL time series; Etherscan endpoints mirror the original response format with consistent wrapper fields.

Which blockchains and networks are supported?

CoinGecko on-chain endpoints cover all networks tracked by CoinGecko, including Ethereum, BSC, Polygon, Arbitrum, and others. Alchemy and Etherscan endpoints target Ethereum mainnet. DefiLlama endpoints are chain-agnostic and cover protocols across all major chains.

How do I integrate this into an AI agent?

Each endpoint accepts a simple POST request with a JSON body. Point your agent's HTTP client at the endpoint URL, include the x402 payment header from your AgentCash wallet, and parse the JSON response. No SDK is required — any language with HTTP support works.

Are there rate limits?

Rate limits are managed per-payment rather than per-key. As long as each request includes a valid micropayment, it will be processed. This makes the API well-suited for bursty workloads common in autonomous agents.

This page is compiled from live OpenAPI specs published by each API provider. Content last reviewed Apr 7, 2026 by the AgentCash team. How we build these pages.