E

eu-verify · ETH GAS

by eu-verify

GETBase

$0.002

per call · USD Coin on Base

Live Ethereum mainnet gas pricing from PublicNode RPC: next-block base fee, 25/50/75th-percentile priority tips over the last 5 blocks (slow/std/fast), and a ready-to-sign recommendation (max_fee = 2*base + tip). Query: ?speed=slow|std|fast (default std). All values are decimal gwei, no hex parsing needed. 30s cache.

Endpoint

GET https://data.greeneris.io/v1/eth/gas

3

Calls / 30d

3

Unique payers / 30d

Sep 8

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://data.greeneris.io/v1/eth/gas", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://data.greeneris.io/v1/eth/gas?speed=fast" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "base_fee_gwei": 0.0648,
  "blocks_sampled": 5,
  "legacy_gas_price_gwei": 0.0609,
  "priority_fee_gwei": {
    "fast": 0.1337,
    "slow": 0.005,
    "std": 0.0054
  },
  "recommended": {
    "max_fee_gwei": 0.135,
    "max_priority_fee_gwei": 0.0054,
    "speed": "std"
  },
  "source": "Ethereum mainnet via PublicNode RPC (eth_gasPrice + eth_feeHistory, last 5 blocks)"
}

Payment details

Pay to0x6ab8efe305cce67daa48c97bde29c04402822dff
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

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

Get featured →

More from eu-verify & similar services