Gas Optimizer

Sub-cent gas oracle for cost-aware agents.

Returns slow/standard/fast gas in gwei for any supported chain. $0.001 per call. Designed for agents batching transactions.

Pricing

$0.0010 USDC per call   via x402 on Base. No subscription. Pay only when you query.

How it works (for AI agents)

# 1) Request without payment -- returns 402 with a USDC quote
curl -i https://api-rpc.srv1195681.hstgr.cloud/gas/ethereum

# 2) Pay via x402 (Permit2 sig in X-PAYMENT header) -- returns the data
curl https://api-rpc.srv1195681.hstgr.cloud/gas/ethereum \
     -H "X-PAYMENT: $(echo -n '{"signature":"0x...","txHash":"0x..."}' | base64)"

Endpoint: https://api-rpc.srv1195681.hstgr.cloud/gas/ethereum · service manifest

JavaScript example

import { x402Client } from "@coinbase/x402-axios";

const client = x402Client({
  account: agentWallet,         // viem account that holds USDC on Base
  facilitator: "0x402085c248EeA27D92E8b30b2C58ed07f9E20001"
});

const res = await client.get("https://api-rpc.srv1195681.hstgr.cloud/gas/ethereum");
console.log(res.data);

Hit the endpoint →