42trust / 100

Gas Preflight

by Saylor Innovations Data Desk in Onchain & crypto

x402 APIFailing, checked 7 h ago

Gas conditions for 7 EVM chains: base fee, trend, congestion, priority tips, suggested max fee and USD cost of a transfer, approval, swap and mint.

GET
https://saylorinnovations.com/api/gas/preflight
Price
$0.01
per call in USDC
Uptime
74.5%
last 30 days
Response time
213 ms
664 ms slowest 5%
Last check
Failed
7 h ago, next in 16 h

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Latest check failed 7 h ago: Expected HTTP 402, got 404

Status and outage history · Atom feed · Watch with other listings

How to call it

GET https://saylorinnovations.com/api/gas/preflight

Each call costs $0.01 in USDC on Polygon, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

GET https://saylorinnovations.com/api/gas/preflight?chain=base

Parameters

ParameterTypeRequiredDescription
chainstringNooptional: ethereum, base (default), arbitrum, optimism, polygon, bsc or avalanche

Example response

The provider's example. We can't check it without paying.

Example response, 92 lines
{
  "base_fee_gwei": 0.005,
  "base_fee_trend": "stable",
  "block_age_seconds": 1,
  "block_number": 52860783,
  "chain": "base",
  "congestion": "low",
  "cost_estimates": {
    "contract_deploy_small": {
      "fast": {
        "native": 0.00002268,
        "usd": 0.0553
      },
      "gas_units": 900000,
      "standard": {
        "native": 0.0000054,
        "usd": 0.0132
      }
    },
    "dex_swap": {
      "fast": {
        "native": 0.00000378,
        "usd": 0.009211
      },
      "gas_units": 150000,
      "standard": {
        "native": 9e-7,
        "usd": 0.002193
      }
    },
    "erc20_approve": {
      "fast": {
        "native": 0.000001159,
        "usd": 0.002825
      },
      "gas_units": 46000,
      "standard": {
        "native": 2.76e-7,
        "usd": 0.000673
      }
    },
    "erc20_transfer": {
      "fast": {
        "native": 0.000001638,
        "usd": 0.003991
      },
      "gas_units": 65000,
      "standard": {
        "native": 3.9e-7,
        "usd": 0.00095
      }
    },
    "native_transfer": {
      "fast": {
        "native": 5.29e-7,
        "usd": 0.001289
      },
      "gas_units": 21000,
      "standard": {
        "native": 1.26e-7,
        "usd": 0.000307
      }
    },
    "nft_mint": {
      "fast": {
        "native": 0.000003024,
        "usd": 0.007368
      },
      "gas_units": 120000,
      "standard": {
        "native": 7.2e-7,
        "usd": 0.001754
      }
    }
  },
  "gas_used_ratio_avg": 0.143,
  "l2_note": "This is the L2 execution fee only. OP-stack chains also charge an L1 data fee per transaction (usually the larger share on Base and Optimism) that is not included here.",
  "native_price_usd": 2436.66,
  "native_symbol": "ETH",
  "note": "Computed from the last 10 blocks (eth_feeHistory) of a public RPC node. suggested_max_fee = 2 x next base fee + tip, a common safe cap that you are refunded down to the real base fee. Gas units per action are typical, not exact: simulate the real transaction for exact gas.",
  "priority_fee_gwei": {
    "fast": 0.0202,
    "slow": 0,
    "standard": 0.001
  },
  "source": "Public JSON-RPC (chain data); USD from DexScreener spot price of the wrapped native token",
  "suggested_max_fee_gwei": {
    "fast": 0.0302,
    "slow": 0.01,
    "standard": 0.011
  }
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.01.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://saylorinnovations.com/api/gas/preflight?chain=base'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://saylorinnovations.com/api/gas/preflight?chain=base' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.01 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.01" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.01 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fsaylorinnovations.com%2Fapi%2Fgas%2Fpreflight
const res = await pay("https://saylorinnovations.com/api/gas/preflight?chain=base");
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.01 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.01"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.get("https://saylorinnovations.com/api/gas/preflight?chain=base")
    print(res.status_code, res.text)

Security scan

No findings

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

Recent checks

WhenResultHTTPTimePrice
7 h agoExpected HTTP 402, got 404404168 ms-
23 h agoExpected HTTP 402, got 404404163 ms-
3 days agoTimed out---
4 days agoPassed402390 ms$0.01
5 days agoPassed402356 ms$0.01
Show 10 older checks
6 days agoPassed402188 ms$0.01
6 days agoPassed402209 ms$0.01
7 days agoPassed402394 ms$0.01
7 days agoPassed402217 ms$0.01
8 days agoPassed402458 ms$0.01
8 days agoPassed402429 ms$0.01
9 days agoPassed402210 ms$0.01
9 days agoPassed4022.3 s$0.01
10 days agoPassed402208 ms$0.01
10 days agoPassed402212 ms$0.01

History

2 Nov 2026Price on Solana changed from 102536 units of So11111111111111111111111111111111111111112 to 102742 units of So11111111111111111111111111111111111111112
2 Nov 2026Price on Solana changed from 102147 units of So11111111111111111111111111111111111111112 to 102536 units of So11111111111111111111111111111111111111112
2 Nov 2026Price on Solana changed from 103015 units of So11111111111111111111111111111111111111112 to 102147 units of So11111111111111111111111111111111111111112
1 Nov 2026Price on Solana changed from 102482 units of So11111111111111111111111111111111111111112 to 103015 units of So11111111111111111111111111111111111111112
1 Nov 2026Price on Solana changed from 101740 units of So11111111111111111111111111111111111111112 to 102482 units of So11111111111111111111111111111111111111112
1 Nov 2026Price on Solana changed from 101559 units of So11111111111111111111111111111111111111112 to 101740 units of So11111111111111111111111111111111111111112
29 Oct 2026Price on Solana changed from 97087 units of So11111111111111111111111111111111111111112 to 96941 units of So11111111111111111111111111111111111111112
29 Oct 2026Price on Solana changed from 95736 units of So11111111111111111111111111111111111111112 to 97087 units of So11111111111111111111111111111111111111112
28 Oct 2026Price on Solana changed from 94164 units of So11111111111111111111111111111111111111112 to 95736 units of So11111111111111111111111111111111111111112
28 Oct 2026Price on Solana changed from 95472 units of So11111111111111111111111111111111111111112 to 94164 units of So11111111111111111111111111111111111111112
28 Oct 2026Price on Solana changed from 96048 units of So11111111111111111111111111111111111111112 to 95472 units of So11111111111111111111111111111111111111112
27 Oct 2026Price on Solana changed from 96249 units of So11111111111111111111111111111111111111112 to 96048 units of So11111111111111111111111111111111111111112
26 Oct 2026Price on Solana changed from 95773 units of So11111111111111111111111111111111111111112 to 96249 units of So11111111111111111111111111111111111111112
26 Oct 2026Price on Solana changed from 95265 units of So11111111111111111111111111111111111111112 to 95773 units of So11111111111111111111111111111111111111112
25 Oct 2026Price on Solana changed from 96334 units of So11111111111111111111111111111111111111112 to 95265 units of So11111111111111111111111111111111111111112