82trust / 100

Gas Oracle

by Ethereum Gas Price Oracle in Onchain & crypto

x402 APIPassing, checked 2 h ago

Ethereum gas price oracle. Returns the current Ethereum gas price as an EIP-1559 base fee plus priority-fee estimates across five confidence tiers, all in gwei, so an agent can price a transaction before it signs one. Ethereum mainnet only. Keyless, via Blocknative.

GET https://api.kadec0.xyz/v1/gas-oracle

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
186 ms typical, 186 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.kadec0.xyz/v1/gas-oracle"
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%2Fapi.kadec0.xyz%2Fv1%2Fgas-oracle
const res = await pay("https://api.kadec0.xyz/v1/gas-oracle");
console.log(await res.json());

Example output

{
  "count": 1,
  "items": [
    {
      "baseFeePerGas": 0.111,
      "chain": "ethereum",
      "estimates": [
        {
          "confidence": 99,
          "maxFeePerGas": 0.32,
          "maxPriorityFeePerGas": 0.098,
          "price": 0.21
        }
      ],
      "type": "gas_oracle",
      "unit": "gwei"
    }
  ]
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402225 ms$0.01
7 h agoPassed402186 ms$0.01