81trust / 100

Btc Fees

by Bitcoin recommended fees in Onchain & crypto

x402 APIPassing, checked 3 h ago

Live recommended Bitcoin transaction fee rates (in sat/vB) for next-block, ~30-minute, ~1-hour, economy and minimum confirmation targets, straight from the mempool. Also estimates the total fee (in sats and BTC) for a transaction of the given virtual size, so an agent can pick a fee tier and know the cost before broadcasting.

POST https://chain.openverbs.com/v1/btc-fees

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
167 ms typical, 167 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://chain.openverbs.com/v1/btc-fees" \
  -H "content-type: application/json" \
  -d '{"txvBytes":140}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fchain.openverbs.com%2Fv1%2Fbtc-fees
const res = await pay("https://chain.openverbs.com/v1/btc-fees", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"txvBytes":140}),
});
console.log(await res.json());

Example input

{
  "txvBytes": 140
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402578 ms$0.006
8 h agoPassed402167 ms$0.006