Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion services/get-started/endpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ ZKsync Era WebSockets are supported on Mainnet only.

## Gas API

The Gas REST API supports multiple networks.
The [Gas REST API](../reference/gas-api/index.md) supports multiple networks.

Specify the chain ID in your request to interact with the relevant network.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ data for a specific blockchain network.

**Path**:

- `chainId`: `string` - ID of the chain to query
- `chainId`: `string` - ID of the chain to query.
See the [list of supported chain IDs](../../../get-started/endpoints.md#gas-api).

## Returns

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ based on historical data.
**Path**:

- `chainId`: `string` - ID of the chain to query.
See the [list of supported chain IDs](../../../get-started/endpoints.md#gas-api).

## Returns

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ likely due to a high volume of transactions.
**Path**:

- `chainId`: `string` - ID of the chain to query.
See the [list of supported chain IDs](../../../get-started/endpoints.md#gas-api).

## Returns

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ blockchain network. <CreditCost network="gasApi" method="suggestedGasFees" />
**Path**:

- `chainId`: `string` - ID of the chain to query.
See the [list of supported chain IDs](../../../get-started/endpoints.md#gas-api).

## Returns

Expand Down
6 changes: 5 additions & 1 deletion services/reference/gas-api/api-reference/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ import TabItem from "@theme/TabItem";

# Gas API reference

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

- [Get EIP-1559 gas prices.](./gasprices-type2.md)
- [Get the base fee history (in Gwei).](./basefeehistory.md)
- [Get the base fee percentile (in Gwei).](./basefeepercentile.md)
- [Get the busy threshold for a network.](./busythreshold.md)

:::info
See the [list of supported Gas API networks](../../../get-started/endpoints.md#gas-api).
:::

## Supported API request formats

You can call the Gas APIs in two ways:
Expand Down
4 changes: 4 additions & 0 deletions services/reference/gas-api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ import CardList from '@site/src/components/CardList'

The Gas API is a tool that delivers real-time [gas prices](../../concepts/gas.md) for supported networks, enabling users to identify the best times to execute transactions based on current rates and intricacies introduced by [EIP-1559](https://eips.ethereum.org/EIPS/eip-1559).

:::info
See the [list of supported Gas API networks](../../get-started/endpoints.md#gas-api).
:::

<CardList
items={[
{
Expand Down
Loading