Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.28 KB

File metadata and controls

42 lines (30 loc) · 1.28 KB
description
Reference content for the Gas API.

import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem";

API reference

This section provides reference information for the various Gas REST APIs. Use the APIs to:

Supported API request formats

You can call the Gas APIs in two ways:

  • Using the API key only - Add your API key as a path option.
  • Using the API key and API key secret - Use basic authentication and specify the API key and API key secret.
curl -X "GET" "https://gas.api.infura.io/v3/<YOUR-API-KEY>/networks/1/suggestedGasFees"
curl -X "GET" -u <YOUR-API-KEY>:<YOUR-API-KEY-SECRET> "https://gas.api.infura.io/networks/1/suggestedGasFees"