Api Endpoint

Bitcoin Fee History

Fee rates actually paid in the last 12 Bitcoin blocks: per block the 10th to 90th percentile sat/vB, total fees, tx count, fullness and time, plus 12-block averages and the trend (Bitcoin Core getblockstats).

Open interactive test console

Offering

Provider
diamond.btc-intel.workers.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://diamond.btc-intel.workers.dev/api/x402/fee_history
MIME type
application/json
First seen
2026-11-08T18:43:24.413Z
Last seen
Tags
Bitcoin, Fees, history, blocks, on-chain

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.005 USDC
Atomic price: 5000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "5000",
    "payTo": "0x440D635d2e32376d61b4a84872A34205D07D9D7e"
  }
]

Observed health

Status
Healthy
Latest latency
447 ms
Average latency
482 ms
HTTP status
402
Last checked
Reachability
100% over 7 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {},
      "additionalProperties": false
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "json",
  "example": {
    "product": "fee_history",
    "as_of": "2026-11-07T18:00:00Z",
    "blocks": [
      {
        "height": 974956,
        "time": "2026-11-07T18:00:00Z",
        "tx_count": 3400,
        "total_fees_btc": 0.028,
        "fee_rate_sat_vb": {
          "p10": 1,
          "p50": 2.5,
          "p90": 8
        },
        "full_pct": 99.8
      }
    ],
    "average": {
      "median_fee_rate_sat_vb": 2.4,
      "total_fees_btc": 0.03
    },
    "trend": "flat"
  }
}