Recommended Bitcoin fee rates in sat/vB
chain-data-api.agentlogic.workers.dev/btc-fees
Recommended Bitcoin fee rates in sat/vB: fastest, half hour, hour, economy and minimum.
GET
https://chain-data-api.agentlogic.workers.dev/btc-feesUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://chain-data-api.agentlogic.workers.dev/btc-fees");
console.log(await res.json());Example input
{}More from Chain Data APIProvider status
- chain-data-api.agentlogic.workers.dev/allowanceERC-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
- chain-data-api.agentlogic.workers.dev/balanceNative token balance of an address: balanceWei and the decimals-applied balance.0.001
- chain-data-api.agentlogic.workers.dev/balancesAn 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
- chain-data-api.agentlogic.workers.dev/blockLatest block: number, hash, timestamp, transaction count, base fee, gas used and limit.0.001
- chain-data-api.agentlogic.workers.dev/block-by-numberAny 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
- chain-data-api.agentlogic.workers.dev/btc-balanceBitcoin address balance: confirmed balance in sats and BTC, unconfirmed (mempool) balance, funded and spent totals, and transaction count.0.002
- chain-data-api.agentlogic.workers.dev/btc-blockBitcoin chain tip: latest block height and hash, plus the latest block's timestamp, transaction count, size and weight.0.001
- chain-data-api.agentlogic.workers.dev/btc-mempoolBitcoin 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
- chain-data-api.agentlogic.workers.dev/btc-txBitcoin 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
- chain-data-api.agentlogic.workers.dev/btc-txsRecent 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
- chain-data-api.agentlogic.workers.dev/btc-utxosA 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
- chain-data-api.agentlogic.workers.dev/cost-basisPremium 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 per0.10
