Skip to content
Fourohtwo

Base gas oracle for agents sending Base txs

kr-x402-mvp.kgy5612.workers.dev/crypto/gas

Base gas oracle for agents sending Base txs: EIP-1559 slow / standard / fast tiers (maxFeePerGas + maxPriorityFeePerGas in gwei and wei hex, from eth_feeHistory 20 blocks p10/p50/p90), base fee, congestion 0-1, recommended_tier, ready-to-sign tx_fields, and est. cost in ETH + USD for your gas_limit (default 21000; use 65000 for an ERC-20 transfer). Cheapest paid call ($0.001).

BaseAnswering
GEThttps://kr-x402-mvp.kgy5612.workers.dev/crypto/gas

Uptime100% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://kr-x402-mvp.kgy5612.workers.dev/crypto/gas?gas_limit=21000");
console.log(await res.json());

Example input

{
  "gas_limit": 21000
}

More from Crypto Microdata for AgentsProvider status