16trust / 100

Gas Compare Chains

by Vextorium in Onchain & crypto

x402 APIFailing, checked 3 h ago

Gas price right now on Base, Ethereum, Arbitrum, Optimism and Polygon, with the estimated USD cost of a native transfer, an ERC-20 transfer and a swap on each, and the cheapest chain.

POST https://api.vextorium.com/v1/gas-compare-chains

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
0.0%
Response time
- typical, - slowest 5%
Last check
3 h ago: Amount "0.004" is not in atomic token units
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.vextorium.com/v1/gas-compare-chains" \
  -H "content-type: application/json" \
  -d '{}'
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.vextorium.com%2Fv1%2Fgas-compare-chains
const res = await pay("https://api.vextorium.com/v1/gas-compare-chains", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({}),
});
console.log(await res.json());

Example input

{}

Example output

{
  "cheapest_swap": "optimism",
  "native_prices_usd": {
    "eth": 2707.22696629,
    "pol": null
  },
  "networks": [
    {
      "gas_gwei": 0.006008,
      "native": "ETH",
      "network": "base",
      "swap_usd": 0.00293,
      "token_transfer_usd": 0.00106,
      "transfer_usd": 0.00034
    },
    {
      "gas_gwei": 0.902926,
      "native": "ETH",
      "network": "ethereum",
      "swap_usd": 0.44,
      "token_transfer_usd": 0.15889,
      "transfer_usd": 0.05133
    }
  ],
  "note": "On L2s (Base, Arbitrum, Optimism) a small L1 data fee is added that is not included here."
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoAmount "0.004" is not in atomic token units402230 ms$0.004
7 h agoAmount "0.004" is not in atomic token units40281 ms$0.004
12 h agoAmount "0.004" is not in atomic token units40287 ms$0.004
16 h agoAmount "0.004" is not in atomic token units40284 ms$0.004
20 h agoAmount "0.004" is not in atomic token units40277 ms$0.004
24 h agoAmount "0.004" is not in atomic token units402172 ms$0.004
28 h agoAmount "0.004" is not in atomic token units40281 ms$0.004
32 h agoAmount "0.004" is not in atomic token units402265 ms$0.004
36 h agoAmount "0.004" is not in atomic token units402108 ms$0.004
40 h agoAmount "0.004" is not in atomic token units40288 ms$0.004
44 h agoAmount "0.004" is not in atomic token units402237 ms$0.004
2 days agoAmount "0.004" is not in atomic token units402226 ms$0.004
2 days agoAmount "0.004" is not in atomic token units40277 ms$0.004
2 days agoAmount "0.004" is not in atomic token units40272 ms$0.004
3 days agoAmount "0.004" is not in atomic token units402102 ms$0.004