$0.001
per call · USD Coin on Base
Scans recent block gas details to estimate the minimum, average, and maximum base fee.
Endpoint
POST https://statepulse-api.hahavoid0.workers.dev/blockchain/gas-history5
Calls / 30d
1
Unique payers / 30d
Aug 12
Last called
exact
Payment scheme
Call this service
TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);
const res = await fetchWithPay("https://statepulse-api.hahavoid0.workers.dev/blockchain/gas-history", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"blocks": 20
}),
});
const data = await res.json();cURL
curl -X POST \
"https://statepulse-api.hahavoid0.workers.dev/blockchain/gas-history" \
-H "Content-Type: application/json" \
-d '{"blocks":20}' \
-H "X-PAYMENT: <signed x402 payment>"Example response
{
"confidence": "high",
"result": {
"avg_base_fee_gwei": 0.15,
"max_base_fee_gwei": 0.3,
"min_base_fee_gwei": 0.1
},
"supported": true
}Payment details
Pay to
0x4a82f147c8a4339409c9097adc1eedfd56e85bfeAsset
USD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913NetworksBase, Solana
Schemesexact
Is this your API?
Pin it to the top of Onchain Data and the homepage with a featured placement.
More from StatePulse API & similar services
StatePulse API · Blockchain Balances
statepulse-api.hahavoid0.workers.dev
Scans native balance and ERC-20 token balances for a wallet address on Base or Ethereum.
POSTBaseOnchain Data
$0.001 / call5 calls / 30d
StatePulse API · Water Streamflow
statepulse-api.hahavoid0.workers.dev
Queries live US river level, streamflow gauge height, and flow velocity metrics using the USGS National Water Information System.
POSTBaseDeveloper Tools
$0.03 / call1 calls / 30d
StatePulse API · Network DNS Security
statepulse-api.hahavoid0.workers.dev
Queries DNSSEC (DS) and Certification Authority Authorization (CAA) records for a domain using Cloudflare DoH.
POSTBaseDeveloper Tools
$0.01 / call1 calls / 30d