Chain Data API
chain-data-api.agentlogic.workers.dev
A Bitcoin address's current UTXO set: each unspent output with its value and confirmation state, plus set totals (capped at 100 entries with truncation stated; totals always cover the full set).
- Category
- Service
- Networks
- Base
- Starting price
- $0.001
- Paid calls, 30 days
- 28
- Payers, 30 days
- 2
How to pay
Call an endpoint, read the price in the 402 answer, and pay from your own wallet with any x402 client on Base. The payment goes straight to the provider: Autonomo lists this API but isn't part of the payment. See The x402 directory.
Paid endpoints
25 endpoints, sorted by usage. Prices are per request.
| Endpoint | Price | Network | Facilitator | Calls / 30d |
|---|---|---|---|---|
GET/gas Current gas price (wei and gwei), base fee, priority fee suggestion and suggested max fee. | $0.001 | Base | Coinbase CDP | 4 |
GET/allowance ERC-20 allowance an owner has granted a spender: raw value and the decimals-applied amount, plus an unlimited flag when the allowance is at or near max uint256. The approval check an agent runs before transacting. | $0.001 | Base | Coinbase CDP | 1 |
GET/balance Native token balance of an address: balanceWei and the decimals-applied balance. | $0.001 | Base | Coinbase CDP | 1 |
GET/balances An address's native token balance on all five supported chains in one call. Per-chain fault tolerance: a chain whose RPC is down reports an error entry instead of failing the other four. | $0.003 | Base | Coinbase CDP | 1 |
GET/block Latest block: number, hash, timestamp, transaction count, base fee, gas used and limit. | $0.001 | Base | Coinbase CDP | 1 |
GET/block-by-number Any block by its number: hash, timestamp, transaction count, base fee, gas used and limit. A number beyond the chain tip answers found: false. | $0.001 | Base | Coinbase CDP | 1 |
GET/btc-balance Bitcoin address balance: confirmed balance in sats and BTC, unconfirmed (mempool) balance, funded and spent totals, and transaction count. | $0.002 | Base | Coinbase CDP | 1 |
GET/btc-block Bitcoin chain tip: latest block height and hash, plus the latest block's timestamp, transaction count, size and weight. | $0.001 | Base | Coinbase CDP | 1 |
GET/btc-fees Recommended Bitcoin fee rates in sat/vB: fastest, half hour, hour, economy and minimum. | $0.001 | Base | Coinbase CDP | 1 |
GET/btc-mempool Bitcoin mempool summary: transaction count, total vsize, total fees, and a compact fee-rate histogram summary (bucket count plus min and max rate) without the raw histogram. | $0.001 | Base | Coinbase CDP | 1 |
GET/btc-tx Bitcoin transaction summary: confirmation status, block height, fee and fee rate, size, input and output counts, and total output value. Unknown txids answer found: false. | $0.002 | Base | Coinbase CDP | 1 |
GET/btc-txs Recent transactions for a Bitcoin address, newest first (limit defaults to 10, max 25): txid, confirmation, block height and time when confirmed, fee, and value in, value out and net relative to the address when derivable (null for a coinbase input). | $0.002 | Base | Coinbase CDP | 1 |
GET/btc-utxos A Bitcoin address's current UTXO set: each unspent output with its value and confirmation state, plus set totals (capped at 100 entries with truncation stated; totals always cover the full set). | $0.002 | Base | Coinbase CDP | 1 |
GET/cost-basis Premium UTXO cost basis and unrealized P&L report for a Bitcoin address: current UTXOs with per-UTXO basis traced through lineage (single-input carry-forward, pro-rata fan-in blending) against Bitstamp daily BTC prices, current value at the live price, unrealized P&L, age and long/short holding flag, plus address totals. Provenance breaks (CoinJoin-like funding, untraceable inputs) are flagged per UTXO with a receipt-price fallback. Estimates from on-chain receipt values, not tax advice. | $0.10 | Base | Coinbase CDP | 1 |
GET/ens ENS forward resolution on Ethereum mainnet; pass an address instead of a name for the reverse (primary name) lookup. | $0.003 | Base | Coinbase CDP | 1 |
GET/ln-decode Decode a BOLT11 invoice locally (no external service): payment hash, destination public key (payee field or recovered from the signature), amount in sats when present, timestamp, expiry, and description or description hash. Malformed invoices answer 400. | $0.002 | Base | Coinbase CDP | 1 |
GET/ln-node Lightning node lookup: alias, capacity, channel counts, first seen and last updated, and city and country when the node announces them. Unknown pubkeys answer found: false. | $0.002 | Base | Coinbase CDP | 1 |
GET/ln-stats Lightning Network totals: channel count, node count, total capacity (sats and BTC), average and median channel capacity, and node network breakdown. | $0.002 | Base | Coinbase CDP | 1 |
GET/sol-balance Solana address balance: lamports and the decimals-applied SOL balance, with the slot the read was taken at. | $0.002 | Base | Coinbase CDP | 1 |
GET/sol-tx Solana transaction lookup by signature: slot, block time, fee, success or failed status with the error when failed, and a compact summary. Unknown signatures answer found: false. | $0.002 | Base | Coinbase CDP | 1 |
GET/token-balance ERC-20 balance of an address for one token: raw value and the decimals-applied balance. | $0.002 | Base | Coinbase CDP | 1 |
GET/token-info ERC-20 metadata: name, symbol, decimals and total supply (raw and formatted). | $0.002 | Base | Coinbase CDP | 1 |
GET/token-price A token's spot price in USD computed on-chain from Uniswap V2/V3 liquidity against the chain's wrapped native token and major stablecoins (no external price API): the price, the pair or pool used, its reserves as a depth signal, and an honest spot-price note. No usable pool answers found: false, never a fabricated price. | $0.003 | Base | Coinbase CDP | 1 |
GET/tx Transaction summary plus receipt status (success, failed, pending) and gas used. Unknown hashes answer found: false. | $0.002 | Base | Coinbase CDP | 1 |
GET/wallet-profile Agent trust read on a wallet: native balance, outgoing transaction count (nonce), code-presence flag (eth_getCode), non-zero balances of well-known tokens (plus any tokens named in the tokens parameter), and a wallet-age estimate derived from the first outgoing transaction block, honestly null with the reason stated when it cannot be derived. Know your counterparty before your agent pays. | $0.005 | Base | Coinbase CDP | 1 |
Is this your project? Suggest an edit.