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
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Amount "0.004" is not in atomic token units | 402 | 230 ms | $0.004 |
| 7 h ago | Amount "0.004" is not in atomic token units | 402 | 81 ms | $0.004 |
| 12 h ago | Amount "0.004" is not in atomic token units | 402 | 87 ms | $0.004 |
| 16 h ago | Amount "0.004" is not in atomic token units | 402 | 84 ms | $0.004 |
| 20 h ago | Amount "0.004" is not in atomic token units | 402 | 77 ms | $0.004 |
| 24 h ago | Amount "0.004" is not in atomic token units | 402 | 172 ms | $0.004 |
| 28 h ago | Amount "0.004" is not in atomic token units | 402 | 81 ms | $0.004 |
| 32 h ago | Amount "0.004" is not in atomic token units | 402 | 265 ms | $0.004 |
| 36 h ago | Amount "0.004" is not in atomic token units | 402 | 108 ms | $0.004 |
| 40 h ago | Amount "0.004" is not in atomic token units | 402 | 88 ms | $0.004 |
| 44 h ago | Amount "0.004" is not in atomic token units | 402 | 237 ms | $0.004 |
| 2 days ago | Amount "0.004" is not in atomic token units | 402 | 226 ms | $0.004 |
| 2 days ago | Amount "0.004" is not in atomic token units | 402 | 77 ms | $0.004 |
| 2 days ago | Amount "0.004" is not in atomic token units | 402 | 72 ms | $0.004 |
| 3 days ago | Amount "0.004" is not in atomic token units | 402 | 102 ms | $0.004 |