{
  "x402Version": 2,
  "id": 72115,
  "slug": "saylorinnovations-api-gas-history",
  "resource": "https://saylorinnovations.com/api/gas/history",
  "description": "EVM gas fee history - base fee, priority tip percentiles, trend and congestion for a chain over the last N blocks with the USD cost of a transfer",
  "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": "95877",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "chain": {
        "type": "string",
        "description": "Blockchain the data is for"
      },
      "next_block_base_fee_gwei": {
        "type": "number",
        "description": "Next block base fee, in gwei"
      },
      "base_fee_gwei": {
        "type": "object",
        "description": "Base fee per gas in gwei"
      },
      "priority_tip_gwei": {
        "type": "object",
        "description": "Priority tip, in gwei"
      },
      "trend": {
        "type": "string",
        "description": "Direction of recent change"
      },
      "congestion": {
        "type": "string"
      },
      "native_transfer_cost": {
        "type": "object",
        "description": "Native transfer cost"
      },
      "series_base_fee_gwei": {
        "type": "array",
        "items": {
          "type": "number"
        },
        "description": "Series base fee, in gwei"
      },
      "blocks_sampled": {
        "type": [
          "number",
          "null"
        ],
        "description": "Blocks sampled"
      },
      "avg_block_utilization_pct": {
        "type": [
          "number",
          "null"
        ],
        "description": "Avg block utilization, as a percentage"
      },
      "base_fee_trend_pct": {
        "type": [
          "number",
          "null"
        ],
        "description": "Base fee trend, as a percentage"
      },
      "checked_at": {
        "type": [
          "string",
          "null"
        ],
        "description": "Time the check was run (UTC)"
      }
    },
    "required": [
      "chain",
      "base_fee_gwei"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "blocks": "20",
            "chain": "ethereum"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "chain": "ethereum",
            "blocks_sampled": 20,
            "next_block_base_fee_gwei": 0.11063,
            "base_fee_gwei": {
              "min": 0.10264,
              "avg": 0.11212,
              "max": 0.11911
            },
            "priority_tip_gwei": {
              "p10": 0.00033015,
              "p50": 0.082421,
              "p90": 1.6526
            },
            "avg_block_utilization_pct": 48.8,
            "base_fee_trend_pct": 0.6,
            "trend": "flat",
            "congestion": "low",
            "native_transfer_cost": {
              "gas_units": 21000,
              "native": 0.0000040541,
              "usd": 0.0102
            },
            "series_base_fee_gwei": [
              0.11911,
              0.11304,
              0.112,
              0.11229,
              0.10264,
              0.1138,
              0.11151,
              0.10984,
              0.11145,
              0.11219,
              0.10919,
              0.10763,
              0.10905,
              0.1087,
              0.11742,
              0.11608,
              0.11448,
              0.1151,
              0.1141,
              0.1129
            ]
          }
        }
      },
      "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": {
                  "blocks": {
                    "type": "string",
                    "description": "optional 2-100 recent blocks, default 20"
                  },
                  "chain": {
                    "type": "string",
                    "description": "ethereum, base, arbitrum, optimism, polygon, bsc, avalanche or linea"
                  }
                },
                "required": [
                  "chain"
                ]
              }
            },
            "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"
                  },
                  "next_block_base_fee_gwei": {
                    "type": "number",
                    "description": "Next block base fee, in gwei"
                  },
                  "base_fee_gwei": {
                    "type": "object",
                    "description": "Base fee per gas in gwei"
                  },
                  "priority_tip_gwei": {
                    "type": "object",
                    "description": "Priority tip, in gwei"
                  },
                  "trend": {
                    "type": "string",
                    "description": "Direction of recent change"
                  },
                  "congestion": {
                    "type": "string"
                  },
                  "native_transfer_cost": {
                    "type": "object",
                    "description": "Native transfer cost"
                  },
                  "series_base_fee_gwei": {
                    "type": "array",
                    "items": {
                      "type": "number"
                    },
                    "description": "Series base fee, in gwei"
                  },
                  "blocks_sampled": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Blocks sampled"
                  },
                  "avg_block_utilization_pct": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Avg block utilization, as a percentage"
                  },
                  "base_fee_trend_pct": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Base fee trend, as a percentage"
                  },
                  "checked_at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Time the check was run (UTC)"
                  }
                },
                "required": [
                  "chain",
                  "base_fee_gwei"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "gas history",
    "base fee",
    "priority fee",
    "congestion",
    "eth_feeHistory"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-26T22:14:01.854Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "type": "object",
      "properties": {
        "blocks": {
          "type": "string",
          "description": "optional 2-100 recent blocks, default 20"
        },
        "chain": {
          "type": "string",
          "description": "ethereum, base, arbitrum, optimism, polygon, bsc, avalanche or linea"
        }
      },
      "required": [
        "chain"
      ]
    },
    "exampleResponse": {
      "chain": "ethereum",
      "blocks_sampled": 20,
      "next_block_base_fee_gwei": 0.11063,
      "base_fee_gwei": {
        "min": 0.10264,
        "avg": 0.11212,
        "max": 0.11911
      },
      "priority_tip_gwei": {
        "p10": 0.00033015,
        "p50": 0.082421,
        "p90": 1.6526
      },
      "avg_block_utilization_pct": 48.8,
      "base_fee_trend_pct": 0.6,
      "trend": "flat",
      "congestion": "low",
      "native_transfer_cost": {
        "gas_units": 21000,
        "native": 0.0000040541,
        "usd": 0.0102
      },
      "series_base_fee_gwei": [
        0.11911,
        0.11304,
        0.112,
        0.11229,
        0.10264,
        0.1138,
        0.11151,
        0.10984,
        0.11145,
        0.11219,
        0.10919,
        0.10763,
        0.10905,
        0.1087,
        0.11742,
        0.11608,
        0.11448,
        0.1151,
        0.1141,
        0.1129
      ]
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "blocks": "20",
              "chain": "ethereum"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "chain": "ethereum",
              "blocks_sampled": 20,
              "next_block_base_fee_gwei": 0.11063,
              "base_fee_gwei": {
                "min": 0.10264,
                "avg": 0.11212,
                "max": 0.11911
              },
              "priority_tip_gwei": {
                "p10": 0.00033015,
                "p50": 0.082421,
                "p90": 1.6526
              },
              "avg_block_utilization_pct": 48.8,
              "base_fee_trend_pct": 0.6,
              "trend": "flat",
              "congestion": "low",
              "native_transfer_cost": {
                "gas_units": 21000,
                "native": 0.0000040541,
                "usd": 0.0102
              },
              "series_base_fee_gwei": [
                0.11911,
                0.11304,
                0.112,
                0.11229,
                0.10264,
                0.1138,
                0.11151,
                0.10984,
                0.11145,
                0.11219,
                0.10919,
                0.10763,
                0.10905,
                0.1087,
                0.11742,
                0.11608,
                0.11448,
                0.1151,
                0.1141,
                0.1129
              ]
            }
          }
        },
        "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": {
                    "blocks": {
                      "type": "string",
                      "description": "optional 2-100 recent blocks, default 20"
                    },
                    "chain": {
                      "type": "string",
                      "description": "ethereum, base, arbitrum, optimism, polygon, bsc, avalanche or linea"
                    }
                  },
                  "required": [
                    "chain"
                  ]
                }
              },
              "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"
                    },
                    "next_block_base_fee_gwei": {
                      "type": "number",
                      "description": "Next block base fee, in gwei"
                    },
                    "base_fee_gwei": {
                      "type": "object",
                      "description": "Base fee per gas in gwei"
                    },
                    "priority_tip_gwei": {
                      "type": "object",
                      "description": "Priority tip, in gwei"
                    },
                    "trend": {
                      "type": "string",
                      "description": "Direction of recent change"
                    },
                    "congestion": {
                      "type": "string"
                    },
                    "native_transfer_cost": {
                      "type": "object",
                      "description": "Native transfer cost"
                    },
                    "series_base_fee_gwei": {
                      "type": "array",
                      "items": {
                        "type": "number"
                      },
                      "description": "Series base fee, in gwei"
                    },
                    "blocks_sampled": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Blocks sampled"
                    },
                    "avg_block_utilization_pct": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Avg block utilization, as a percentage"
                    },
                    "base_fee_trend_pct": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Base fee trend, as a percentage"
                    },
                    "checked_at": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Time the check was run (UTC)"
                    }
                  },
                  "required": [
                    "chain",
                    "base_fee_gwei"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/gas/history?chain=ethereum&blocks=20",
        "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",
    "next_block_base_fee_gwei": 0,
    "base_fee_gwei": {},
    "priority_tip_gwei": {},
    "trend": "string",
    "congestion": "string",
    "native_transfer_cost": {},
    "series_base_fee_gwei": [
      0
    ],
    "blocks_sampled": 0,
    "avg_block_utilization_pct": 0,
    "base_fee_trend_pct": 0,
    "checked_at": "string"
  }
}