Skip to content

Commit 5cebdd0

Browse files
committed
Add Gas API.
Signed-off-by: bgravenorst <byron.gravenorst@consensys.net>
1 parent dde8e8e commit 5cebdd0

File tree

7 files changed

+17
-12
lines changed

7 files changed

+17
-12
lines changed

services/reference/gas-api/api-reference/basefeehistory.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
description: Get the base fee history.
33
---
4-
4+
import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js';
55
import Tabs from "@theme/Tabs";
66
import TabItem from "@theme/TabItem";
77

88
# Get the base fee history
99

10-
Returns the base fee history of the specified blockchain network for the previous 500 blocks.
10+
Returns the base fee history of the specified blockchain network for the previous 500 blocks. <CreditCost network="gasApi" method="baseFeeHistory" />
1111

1212
The base fee is a part of the EIP-1559 upgrade to the Ethereum network, and it represents the
1313
minimum price a user must pay for their transaction to be included in a block.

services/reference/gas-api/api-reference/basefeepercentile.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
description: Get the base fee percentile for a chain.
33
---
44

5+
import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js';
56
import Tabs from "@theme/Tabs";
67
import TabItem from "@theme/TabItem";
78

89
# Get the base fee percentile
910

10-
Returns the base fee percentile (50th percentile) of the specified blockchain network.
11+
Returns the base fee percentile (50th percentile) of the specified blockchain network. <CreditCost network="gasApi" method="baseFeePercentile" />
1112

1213
For example, if the API returns a value of `20` Gwei, it means that 50% of the historical base fees
1314
are less than or equal to `20` Gwei.

services/reference/gas-api/api-reference/busythreshold.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
description: Get the busy threshold.
33
---
44

5+
import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js';
56
import Tabs from "@theme/Tabs";
67
import TabItem from "@theme/TabItem";
78

89
# Get the busy threshold
910

10-
Returns the busy threshold for the specified blockchain network.
11+
Returns the busy threshold for the specified blockchain network. <CreditCost network="gasApi" method="busyThreshold" />
1112

1213
For example, a `busyThreshold` value of `30` Gwei indicates that 90% of the historical base fees on
1314
the network have been below `30` Gwei.

services/reference/gas-api/api-reference/gasprices-type2.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
description: Get the estimated gas prices for a chain.
33
---
44

5+
import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js';
56
import Tabs from "@theme/Tabs";
67
import TabItem from "@theme/TabItem";
78

89
# Get EIP-1559 gas prices
910

1011
Returns the estimated [EIP-1559](https://eips.ethereum.org/EIPS/eip-1559) gas fees for the specified
11-
blockchain network.
12+
blockchain network. <CreditCost network="gasApi" method="suggestedGasFees" />
1213

1314
**GET** `https://gas.api.infura.io/networks/${chainId}/suggestedGasFees`
1415

services/reference/linea/json-rpc-methods/linea_estimategas.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ title: linea_estimateGas
33
sidebar_label: linea_estimateGas
44
---
55

6+
import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js';
67
import Tabs from '@theme/Tabs';
78
import TabItem from '@theme/TabItem';
89

910
# `linea_estimateGas`
1011

1112
Generates and returns the estimated amount of gas required to allow the transaction to complete and be
12-
published on Ethereum. The method does not submit the transaction to the blockchain.
13+
published on Ethereum. The method does not submit the transaction to the blockchain. <CreditCost network="linea" method="linea_estimateGas" />
1314

1415
The `priorityFeePerGas` returned by this method includes the cost of submitting the transaction to Ethereum, which
1516
can vary based on the size of the `calldata`.

services/reference/mantle/json-rpc-methods/debug/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ sidebar_label: Debug methods
88
The debug API methods allow you to inspect and debug the network. Infura supports the following debug
99
methods on the Mantle network:
1010

11-
- [`debug_storageRangeAt`](debug_storagerangeat.md)
12-
- [`debug_traceBlock`](debug_traceblock.md)
13-
- [`debug_traceBlockByHash`](debug_traceblockbyhash.md)
14-
- [`debug_traceBlockByNumber`](debug_traceblockbynumber.md)
15-
- [`debug_traceTransaction`](debug_tracetransaction.md)
16-
- [`debug_traceCall`](debug_tracecall.md)
11+
- [`debug_storageRangeAt`](debug_storagerangeat.mdx)
12+
- [`debug_traceBlock`](debug_traceblock.mdx)
13+
- [`debug_traceBlockByHash`](debug_traceblockbyhash.mdx)
14+
- [`debug_traceBlockByNumber`](debug_traceblockbynumber.mdx)
15+
- [`debug_traceTransaction`](debug_tracetransaction.mdx)
16+
- [`debug_traceCall`](debug_tracecall.mdx)
1717

1818
## Debug tracing types
1919

src/lib/data.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ export const API_COSTS = {
213213
},
214214
linea: {
215215
'linea_estimateGas': 100,
216+
'linea_getTransactionExclusionStatusV1': 160,
216217
},
217218
polygon: {
218219
'bor_getAuthor': 80,

0 commit comments

Comments
 (0)