Gas Price | Blackwood State
Use when you need the current gas price, an ethereum gas fee estimate before a transaction, or to compare gas fees across chains. Do not use for gas units of a given transaction, gas history or chains beyond Ethereum, Base and Solana. Returns JSON with the gas price and gas fees on Ethereum and Base (base fee, slow, standard and fast EIP-1559 fees in gwei, transfer cost) plus Solana priority fees
- Price per call
- $0.002
- Chain
- Base
- Method
- POST
- Paid calls · 30 days
- 8
Call it from code
This API is run by its own provider and paid directly through x402. We list it so you can find it; we don't route or hold the payment.
import { x402Client, wrapFetchWithPayment } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
const client = new x402Client();
registerExactEvmScheme(client, { signer: agentAccount });
const pay = wrapFetchWithPayment(fetch, client);
const res = await pay("https://x402-gateway.blackwoodstate8.workers.dev/v1/gas-fees", { method: "POST" });
console.log(await res.json());https://x402-gateway.blackwoodstate8.workers.dev/v1/gas-fees