# Saylor Innovations Gas Cost Comparator

> Saylor Innovations Gas Cost Comparator is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-16).

Returns the USD cost of common blockchain actions (transfer, token transfer, swap, NFT mint) across 8 major EVM chains and identifies the cheapest option

## Facts

- Endpoint: GET https://saylorinnovations.com/api/gas/compare?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-gas-cost-comparator-6a69980b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mzwMrLgUTgPjwdngrCHRK

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability saylor-innovations-gas-cost-comparator-6a69980b
```

Example prompt: Which chain has the cheapest gas for doing an ERC20 token transfer right now — compare across Ethereum, Base, Arbitrum, Optimism, Polygon, BSC, Avalanche, and Linea and tell me the USD cost on each.

## When to prefer this

Use this endpoint when you need a real-time, cross-chain USD cost comparison for a specific action type (transfer, ERC20 transfer, NFT mint, NFT transfer, or swap) across all major EVM chains in a single call. It is ideal for agents routing transactions to the cheapest chain, DeFi dashboards, NFT minting tools, or any workflow where minimizing gas cost is a priority. Prefer it over per-chain gas APIs when you need a multi-chain summary and cheapest-chain recommendation in one round trip.

## Known failure modes

- One or more chains may be non-responsive at query time, reducing 'chains_responding' below 'chains_checked'
- RPC congestion or latency spikes may cause stale or missing data for individual chains
- Invalid 'action' query parameter value results in default 'transfer' behavior rather than an error
- If all chain RPCs are down the response may return empty or null chain data

## How this service works

Cheapest chain for a transaction - USD cost of a transfer, token transfer, swap or NFT mint across Ethereum, Base, Arbitrum, Optimism, Polygon, BSC, Avalanche and Linea

## Output

A JSON object listing each of the 8 covered chains with its current gas price in gwei, base fee, priority tip, L1 data fee (for rollups), native token price in USD, cost in USD, and cost in the native token for the requested action type. Also includes a 'cheapest' and 'most_expensive' summary object, the ratio between them, total gas units used, number of chains checked and responding, and a timestamp of when the check was run.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "POST",
      "PUT",
      "PATCH",
      "DELETE",
      "HEAD"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "action": {
       "type": "string",
       "description": "optional transfer, erc20-transfer, nft-transfer, nft-mint, swap, or a gas-unit number; default transfer"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "action",
      "chains"
     ],
     "properties": {
      "note": {
       "type": [
        "string",
        "null"
       ],
       "description": "Caveat or context for reading the result"
      },
      "action": {
       "type": "string",
       "description": "Action the figures are for"
      },
      "chains": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "chain": {
          "type": "string",
          "description": "Blockchain the data is for"
         },
         "cost_usd": {
          "type": "number",
          "description": "Cost, in US dollars"
         },
         "cost_native": {
          "type": "number",
          "description": "Cost native"
         },
         "native_token": {
          "type": "string",
          "description": "Native token"
         },
         "base_fee_gwei": {
          "description": "Base fee per gas in gwei"
         },
         "gas_price_gwei": {
          "type": "number",
          "description": "Gas price in gwei"
         },
         "native_price_usd": {
          "description": "Native price, in US dollars"
         },
         "priority_tip_gwei": {
          "description": "Priority tip, in gwei"
         },
         "l1_data_fee_native": {
          "description": "L1 data fee native"
         }
        }
       },
       "description": "Chains covered"
      },
      "cheapest": {
       "type": "object",
       "description": "Cheapest option"
      },
      "gas_units": {
       "type"
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-gas-cost-comparator-6a69980b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
