{
  "x402Version": 2,
  "id": 72577,
  "slug": "saylorinnovations-api-gas-preflight",
  "resource": "https://saylorinnovations.com/api/gas/preflight",
  "description": "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.",
  "type": "http",
  "serviceName": "Saylor Innovations Data Desk",
  "mimeType": "application/json",
  "resourceType": "API",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "So11111111111111111111111111111111111111112",
      "amount": "95830",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "chain": {
        "type": "string",
        "description": "Blockchain the data is for"
      },
      "native_symbol": {
        "type": "string",
        "description": "Native symbol"
      },
      "block_number": {
        "type": "number",
        "description": "Block number"
      },
      "block_age_seconds": {
        "type": "number",
        "description": "Seconds since the latest block"
      },
      "base_fee_gwei": {
        "type": "number",
        "description": "Base fee per gas in gwei"
      },
      "base_fee_trend": {
        "type": "string",
        "description": "Base fee trend"
      },
      "gas_used_ratio_avg": {
        "type": [
          "number",
          "null"
        ],
        "description": "Gas used ratio avg"
      },
      "congestion": {
        "type": "string"
      },
      "priority_fee_gwei": {
        "type": "object",
        "description": "Priority fee, in gwei"
      },
      "suggested_max_fee_gwei": {
        "type": "object",
        "description": "Suggested max fee, in gwei"
      },
      "native_price_usd": {
        "type": [
          "number",
          "null"
        ],
        "description": "Native price, in US dollars"
      },
      "cost_estimates": {
        "type": "object",
        "description": "Cost estimates"
      },
      "l2_note": {
        "type": [
          "string",
          "null"
        ],
        "description": "L2 note"
      },
      "note": {
        "type": "string",
        "description": "Caveat or context for reading the result"
      },
      "source": {
        "type": "string",
        "description": "Data source the values come from"
      }
    },
    "required": [
      "chain",
      "native_symbol",
      "block_number",
      "base_fee_gwei",
      "congestion",
      "priority_fee_gwei",
      "suggested_max_fee_gwei",
      "cost_estimates",
      "note",
      "source"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "chain": "base"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "chain": "base",
            "native_symbol": "ETH",
            "block_number": 52860783,
            "block_age_seconds": 1,
            "base_fee_gwei": 0.005,
            "base_fee_trend": "stable",
            "gas_used_ratio_avg": 0.143,
            "congestion": "low",
            "priority_fee_gwei": {
              "slow": 0,
              "standard": 0.001,
              "fast": 0.0202
            },
            "suggested_max_fee_gwei": {
              "slow": 0.01,
              "standard": 0.011,
              "fast": 0.0302
            },
            "native_price_usd": 2436.66,
            "cost_estimates": {
              "native_transfer": {
                "gas_units": 21000,
                "standard": {
                  "native": 1.26e-7,
                  "usd": 0.000307
                },
                "fast": {
                  "native": 5.29e-7,
                  "usd": 0.001289
                }
              },
              "erc20_transfer": {
                "gas_units": 65000,
                "standard": {
                  "native": 3.9e-7,
                  "usd": 0.00095
                },
                "fast": {
                  "native": 0.000001638,
                  "usd": 0.003991
                }
              },
              "erc20_approve": {
                "gas_units": 46000,
                "standard": {
                  "native": 2.76e-7,
                  "usd": 0.000673
                },
                "fast": {
                  "native": 0.000001159,
                  "usd": 0.002825
                }
              },
              "dex_swap": {
                "gas_units": 150000,
                "standard": {
                  "native": 9e-7,
                  "usd": 0.002193
                },
                "fast": {
                  "native": 0.00000378,
                  "usd": 0.009211
                }
              },
              "nft_mint": {
                "gas_units": 120000,
                "standard": {
                  "native": 7.2e-7,
                  "usd": 0.001754
                },
                "fast": {
                  "native": 0.000003024,
                  "usd": 0.007368
                }
              },
              "contract_deploy_small": {
                "gas_units": 900000,
                "standard": {
                  "native": 0.0000054,
                  "usd": 0.0132
                },
                "fast": {
                  "native": 0.00002268,
                  "usd": 0.0553
                }
              }
            },
            "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.",
            "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.",
            "source": "Public JSON-RPC (chain data); USD from DexScreener spot price of the wrapped native token"
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "GET"
                ]
              },
              "queryParams": {
                "type": "object",
                "properties": {
                  "chain": {
                    "type": "string",
                    "description": "optional: ethereum, base (default), arbitrum, optimism, polygon, bsc or avalanche"
                  }
                }
              }
            },
            "required": [
              "type",
              "method"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "chain": {
                    "type": "string",
                    "description": "Blockchain the data is for"
                  },
                  "native_symbol": {
                    "type": "string",
                    "description": "Native symbol"
                  },
                  "block_number": {
                    "type": "number",
                    "description": "Block number"
                  },
                  "block_age_seconds": {
                    "type": "number",
                    "description": "Seconds since the latest block"
                  },
                  "base_fee_gwei": {
                    "type": "number",
                    "description": "Base fee per gas in gwei"
                  },
                  "base_fee_trend": {
                    "type": "string",
                    "description": "Base fee trend"
                  },
                  "gas_used_ratio_avg": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Gas used ratio avg"
                  },
                  "congestion": {
                    "type": "string"
                  },
                  "priority_fee_gwei": {
                    "type": "object",
                    "description": "Priority fee, in gwei"
                  },
                  "suggested_max_fee_gwei": {
                    "type": "object",
                    "description": "Suggested max fee, in gwei"
                  },
                  "native_price_usd": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Native price, in US dollars"
                  },
                  "cost_estimates": {
                    "type": "object",
                    "description": "Cost estimates"
                  },
                  "l2_note": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "L2 note"
                  },
                  "note": {
                    "type": "string",
                    "description": "Caveat or context for reading the result"
                  },
                  "source": {
                    "type": "string",
                    "description": "Data source the values come from"
                  }
                },
                "required": [
                  "chain",
                  "native_symbol",
                  "block_number",
                  "base_fee_gwei",
                  "congestion",
                  "priority_fee_gwei",
                  "suggested_max_fee_gwei",
                  "cost_estimates",
                  "note",
                  "source"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "gas price now",
    "base gas fee estimate",
    "ethereum gas tracker",
    "transaction cost estimate",
    "gas preflight check"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-26T22:14:01.963Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "type": "object",
      "properties": {
        "chain": {
          "type": "string",
          "description": "optional: ethereum, base (default), arbitrum, optimism, polygon, bsc or avalanche"
        }
      },
      "required": []
    },
    "exampleResponse": {
      "chain": "base",
      "native_symbol": "ETH",
      "block_number": 52860783,
      "block_age_seconds": 1,
      "base_fee_gwei": 0.005,
      "base_fee_trend": "stable",
      "gas_used_ratio_avg": 0.143,
      "congestion": "low",
      "priority_fee_gwei": {
        "slow": 0,
        "standard": 0.001,
        "fast": 0.0202
      },
      "suggested_max_fee_gwei": {
        "slow": 0.01,
        "standard": 0.011,
        "fast": 0.0302
      },
      "native_price_usd": 2436.66,
      "cost_estimates": {
        "native_transfer": {
          "gas_units": 21000,
          "standard": {
            "native": 1.26e-7,
            "usd": 0.000307
          },
          "fast": {
            "native": 5.29e-7,
            "usd": 0.001289
          }
        },
        "erc20_transfer": {
          "gas_units": 65000,
          "standard": {
            "native": 3.9e-7,
            "usd": 0.00095
          },
          "fast": {
            "native": 0.000001638,
            "usd": 0.003991
          }
        },
        "erc20_approve": {
          "gas_units": 46000,
          "standard": {
            "native": 2.76e-7,
            "usd": 0.000673
          },
          "fast": {
            "native": 0.000001159,
            "usd": 0.002825
          }
        },
        "dex_swap": {
          "gas_units": 150000,
          "standard": {
            "native": 9e-7,
            "usd": 0.002193
          },
          "fast": {
            "native": 0.00000378,
            "usd": 0.009211
          }
        },
        "nft_mint": {
          "gas_units": 120000,
          "standard": {
            "native": 7.2e-7,
            "usd": 0.001754
          },
          "fast": {
            "native": 0.000003024,
            "usd": 0.007368
          }
        },
        "contract_deploy_small": {
          "gas_units": 900000,
          "standard": {
            "native": 0.0000054,
            "usd": 0.0132
          },
          "fast": {
            "native": 0.00002268,
            "usd": 0.0553
          }
        }
      },
      "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.",
      "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.",
      "source": "Public JSON-RPC (chain data); USD from DexScreener spot price of the wrapped native token"
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "chain": "base"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "chain": "base",
              "native_symbol": "ETH",
              "block_number": 52860783,
              "block_age_seconds": 1,
              "base_fee_gwei": 0.005,
              "base_fee_trend": "stable",
              "gas_used_ratio_avg": 0.143,
              "congestion": "low",
              "priority_fee_gwei": {
                "slow": 0,
                "standard": 0.001,
                "fast": 0.0202
              },
              "suggested_max_fee_gwei": {
                "slow": 0.01,
                "standard": 0.011,
                "fast": 0.0302
              },
              "native_price_usd": 2436.66,
              "cost_estimates": {
                "native_transfer": {
                  "gas_units": 21000,
                  "standard": {
                    "native": 1.26e-7,
                    "usd": 0.000307
                  },
                  "fast": {
                    "native": 5.29e-7,
                    "usd": 0.001289
                  }
                },
                "erc20_transfer": {
                  "gas_units": 65000,
                  "standard": {
                    "native": 3.9e-7,
                    "usd": 0.00095
                  },
                  "fast": {
                    "native": 0.000001638,
                    "usd": 0.003991
                  }
                },
                "erc20_approve": {
                  "gas_units": 46000,
                  "standard": {
                    "native": 2.76e-7,
                    "usd": 0.000673
                  },
                  "fast": {
                    "native": 0.000001159,
                    "usd": 0.002825
                  }
                },
                "dex_swap": {
                  "gas_units": 150000,
                  "standard": {
                    "native": 9e-7,
                    "usd": 0.002193
                  },
                  "fast": {
                    "native": 0.00000378,
                    "usd": 0.009211
                  }
                },
                "nft_mint": {
                  "gas_units": 120000,
                  "standard": {
                    "native": 7.2e-7,
                    "usd": 0.001754
                  },
                  "fast": {
                    "native": 0.000003024,
                    "usd": 0.007368
                  }
                },
                "contract_deploy_small": {
                  "gas_units": 900000,
                  "standard": {
                    "native": 0.0000054,
                    "usd": 0.0132
                  },
                  "fast": {
                    "native": 0.00002268,
                    "usd": 0.0553
                  }
                }
              },
              "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.",
              "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.",
              "source": "Public JSON-RPC (chain data); USD from DexScreener spot price of the wrapped native token"
            }
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "input": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "http"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET"
                  ]
                },
                "queryParams": {
                  "type": "object",
                  "properties": {
                    "chain": {
                      "type": "string",
                      "description": "optional: ethereum, base (default), arbitrum, optimism, polygon, bsc or avalanche"
                    }
                  }
                }
              },
              "required": [
                "type",
                "method"
              ],
              "additionalProperties": false
            },
            "output": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "json"
                },
                "example": {
                  "type": "object",
                  "properties": {
                    "chain": {
                      "type": "string",
                      "description": "Blockchain the data is for"
                    },
                    "native_symbol": {
                      "type": "string",
                      "description": "Native symbol"
                    },
                    "block_number": {
                      "type": "number",
                      "description": "Block number"
                    },
                    "block_age_seconds": {
                      "type": "number",
                      "description": "Seconds since the latest block"
                    },
                    "base_fee_gwei": {
                      "type": "number",
                      "description": "Base fee per gas in gwei"
                    },
                    "base_fee_trend": {
                      "type": "string",
                      "description": "Base fee trend"
                    },
                    "gas_used_ratio_avg": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Gas used ratio avg"
                    },
                    "congestion": {
                      "type": "string"
                    },
                    "priority_fee_gwei": {
                      "type": "object",
                      "description": "Priority fee, in gwei"
                    },
                    "suggested_max_fee_gwei": {
                      "type": "object",
                      "description": "Suggested max fee, in gwei"
                    },
                    "native_price_usd": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Native price, in US dollars"
                    },
                    "cost_estimates": {
                      "type": "object",
                      "description": "Cost estimates"
                    },
                    "l2_note": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "L2 note"
                    },
                    "note": {
                      "type": "string",
                      "description": "Caveat or context for reading the result"
                    },
                    "source": {
                      "type": "string",
                      "description": "Data source the values come from"
                    }
                  },
                  "required": [
                    "chain",
                    "native_symbol",
                    "block_number",
                    "base_fee_gwei",
                    "congestion",
                    "priority_fee_gwei",
                    "suggested_max_fee_gwei",
                    "cost_estimates",
                    "note",
                    "source"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/gas/preflight?chain=base",
        "expectedStatus": 402
      }
    ],
    "cacheTtlSeconds": 0,
    "capabilities": [],
    "noAccountRequired": true,
    "noApiKeyRequired": true,
    "sideEffects": "Paid calls settle the advertised payment; see the provider contract for execution behavior.",
    "payment": {
      "protocol": "x402",
      "settlement": "direct-to-provider"
    },
    "provider": {
      "name": "Saylor Innovations",
      "host": "saylorinnovations.com",
      "manifestUrl": "https://saylorinnovations.com/.well-known/x402.json"
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "saylorinnovations.com",
    "manifest_name": "Saylor Innovations Knowledge Base",
    "source": "submitted",
    "source_manifest_url": "https://saylorinnovations.com/.well-known/x402.json",
    "submitted_at": "2026-10-26T05:52:02.113Z"
  },
  "exampleResponse": {
    "chain": "string",
    "native_symbol": "string",
    "block_number": 0,
    "block_age_seconds": 0,
    "base_fee_gwei": 0,
    "base_fee_trend": "string",
    "gas_used_ratio_avg": 0,
    "congestion": "string",
    "priority_fee_gwei": {},
    "suggested_max_fee_gwei": {},
    "native_price_usd": 0,
    "cost_estimates": {},
    "l2_note": "string",
    "note": "string",
    "source": "string"
  }
}