81trust / 100

Gas

by Horizon Pulse in Onchain & crypto

x402 APIPassing, checked 2 h ago

Blockchain gas fees. Use before sending a transaction on Base or Ethereum to choose fees and timing. Call GET with no parameters. Returns JSON per network: baseFeeGwei, priorityFeeGwei (p50, with p10/p90), suggestedMaxFeeGwei (2x base + priority), timingHint (cheap/normal/expensive vs the last 20 blocks) and simpleTransfer cost in ETH and USD, plus ethUsd. From eth_feeHistory with eth_gasPrice fallback. Descriptive, not a forecast. Errors are not charged.

GET https://horizonpulse.dev/api/gas

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
244 ms typical, 259 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://horizonpulse.dev/api/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%2Fhorizonpulse.dev%2Fapi%2Fgas
const res = await pay("https://horizonpulse.dev/api/gas");
console.log(await res.json());

Example input

{}

Example output

{
  "asOf": "2026-10-01T14:36:44.639Z",
  "ethUsd": 2699.12,
  "networks": [
    {
      "baseFeeGwei": "0.005",
      "chainId": 8453,
      "network": "base",
      "ok": true,
      "priorityFeeGwei": "0.001",
      "priorityFeePercentilesGwei": {
        "p10": "0.000000079",
        "p50": "0.001",
        "p90": "0.01"
      },
      "simpleTransfer": {
        "costEth": "0.000000231",
        "costUsd": 0.000623,
        "costWei": "231000000000",
        "gasLimit": 21000
      },
      "suggestedMaxFeeGwei": "0.011",
      "timingHint": "normal"
    },
    {
      "baseFeeGwei": "0.47866594",
      "chainId": 1,
      "network": "ethereum",
      "ok": true,
      "priorityFeeGwei": "0.244726498",
      "priorityFeePercentilesGwei": {
        "p10": "0.001003273",
        "p50": "0.244726498",
        "p90": "2"
      },
      "simpleTransfer": {
        "costEth": "0.000025243225938",
        "costUsd": 0.068134,
        "costWei": "25243225938000",
        "gasLimit": 21000
      },
      "suggestedMaxFeeGwei": "1.202058378",
      "timingHint": "expensive"
    }
  ],
  "ok": true
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402267 ms$0.01
5 h agoPassed402244 ms$0.01
8 h agoPassed402259 ms$0.01
14 h agoPassed402152 ms$0.01