E

EVM gas price · EVM GAS

by EVM gas price

GETBaseArbitrumPolygon

$0.005

per call · USD Coin on Base

Current gas price and base fee for any supported chain, in wei and gwei, plus the cost estimate of a plain transfer. For agents planning a transaction. Via eth_gasPrice.

Endpoint

GET https://flat-rate-llm.kikoribera03.workers.dev/v1/evm/gas

3

Calls / 30d

1

Unique payers / 30d

Sep 10

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://flat-rate-llm.kikoribera03.workers.dev/v1/evm/gas", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://flat-rate-llm.kikoribera03.workers.dev/v1/evm/gas?chain=base" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "gasPriceGwei": 0.012,
  "gasPriceWei": "12000000",
  "transferCostEther": 2.52e-7
}

Payment details

Pay to0xc210ea7d5692a6401adf25bbcb7acde9cdb7e9ff
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Arbitrum, Polygon
Schemesexact

Is this your API?

Pin it to the top of Onchain Data and the homepage with a featured placement.

Get featured →

More from EVM gas price & similar services