Skip to content

Commit

Permalink
Add gas cap option to docs (#1504)
Browse files Browse the repository at this point in the history
* add gas cap  option

Signed-off-by: Joan Edwards <[email protected]>

* add suggestion

Signed-off-by: Joan E <[email protected]>

* add call method

Signed-off-by: Joan E <[email protected]>

* update language

Signed-off-by: Joan E <[email protected]>

* add back ticks

Co-authored-by: Alexandra Tran Carrillo <[email protected]>
Signed-off-by: Joan E <[email protected]>

---------

Signed-off-by: Joan Edwards <[email protected]>
Signed-off-by: Joan E <[email protected]>
Co-authored-by: Alexandra Tran Carrillo <[email protected]>
  • Loading branch information
joaniefromtheblock and alexandratran authored Feb 6, 2024
1 parent 0026dab commit 4994186
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions docs/public-networks/reference/cli/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -3074,6 +3074,46 @@ Enabling revert reason may use a significant amount of memory. We don't recommen

:::

### `rpc-gas-cap`

<Tabs>

<TabItem value="Syntax" label="Syntax" default>

```bash
--rpc-gas-cap=<INTEGER>
```

</TabItem>

<TabItem value="Example" label="Example">

```bash
--rpc-gas-cap=50000000
```

</TabItem>

<TabItem value="Environment variable" label="Environment variable">

```bash
BESU_RPC_GAS_CAP=50000000
```

</TabItem>

<TabItem value="Configuration file" label="Configuration file">

```bash
rpc-gas-cap=50000000
```

</TabItem>

</Tabs>

Sets a limit on the amount of gas for transaction simulation RPC methods. Its value must be greater than or equal to `0`. The default is `0`, which indicates there is no limit. This cap prevents [`eth_call`](../api/index.md#eth_call) requests from using excessive resources.

### `rpc-http-api`

<Tabs>
Expand Down

0 comments on commit 4994186

Please sign in to comment.