Batch fee-budget analysis for one to 25 transaction sizes
diamond.btc-intel.workers.dev/api/x402/feeplan
Batch fee-budget analysis for one to 25 transaction sizes. plan=budget_sats:vbytes[,vbytes...]. The budget is a per-transaction cap in sats. Returns rounded-up fee estimates and the fastest observed estimate fitting each cap. Uses fresh independent-node observations; no confirmation guarantee.
GET
https://diamond.btc-intel.workers.dev/api/x402/feeplanUptime100% 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://diamond.btc-intel.workers.dev/api/x402/feeplan?plan=1000%3A140%2C220%2C350");
console.log(await res.json());Example input
{
"plan": "1000:140,220,350"
}