81trust / 100

Base Gas

by AgentFeed in Onchain & crypto

x402 APIPassing, checked 45 min ago

Base gas price (chain 8453) in BOTH gwei and wei, with base fee, priority fee and block number when the node supplies them. Use when you need to answer: What is gas on Base? Both units are returned because a caller asking in wei and a caller asking in gwei are asking the same question. Served from keyless public RPC with three-node fallback, so there is no API key to rotate or expire.

GET https://x402.ochinimus.app/api/base-gas

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
62 ms typical, 62 ms slowest 5%
Last check
45 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402.ochinimus.app/api/base-gas"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402.ochinimus.app%2Fapi%2Fbase-gas
const res = await pay("https://x402.ochinimus.app/api/base-gas");
console.log(await res.json());

Example input

{}

Example output

{
  "data": {
    "base_fee_gwei": 0.005,
    "base_fee_wei": 5000000,
    "block": 51782920,
    "chain": "Base",
    "chain_id": 8453,
    "gas_price_gwei": 0.006,
    "gas_price_wei": 6000000,
    "priority_fee_gwei": 0.001,
    "priority_fee_wei": 1000000,
    "source": "base-rpc:mainnet.base.org"
  },
  "paid": true,
  "tool": "get_base_gas"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
45 min agoPassed40262 ms$0.005
6 h agoPassed40268 ms$0.005