Skip to content

Commit 5eac34c

Browse files
committed
adding information about auto switching data availability type
1 parent c1d920b commit 5eac34c

File tree

1 file changed

+5
-1
lines changed
  • pages/builders/chain-operators/configuration

1 file changed

+5
-1
lines changed

pages/builders/chain-operators/configuration/batcher.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The batcher policy defines high-level constraints and responsibilities regarding
2727
* **Data Availability Types**:
2828
* **Calldata** is generally simpler but can be more expensive on mainnet Ethereum, depending on gas prices.
2929
* **Blobs** are typically lower cost when your chain has enough transaction volume to fill large chunks of data.
30-
* The `op-batcher` can toggle between these approaches by setting the `--data-availability-type=<blobs|calldata>` flag or with the `OP_BATCHER_DATA_AVAILABILITY_TYPE` env variable.
30+
* The `op-batcher` can toggle between these approaches by setting the `--data-availability-type=<blobs|calldata|auto>` flag or with the `OP_BATCHER_DATA_AVAILABILITY_TYPE` env variable. Setting this flag to `auto` will allow the batcher to automatically switch between `calldata` and `blobs` based on the current L1 gas price.
3131

3232
* **Batch Submission Frequency** (`OP_BATCHER_MAX_CHANNEL_DURATION` and related flags):
3333
* Standard OP Chains frequently target a maximum channel duration between 1–6 hours.
@@ -287,6 +287,10 @@ is `shadow`.
287287

288288
### data-availability-type
289289

290+
<Callout type="info">
291+
Setting this flag to `auto` will allow the batcher to automatically switch between `calldata` and `blobs` based on the current L1 gas price.
292+
</Callout>
293+
290294
The data availability type to use for submitting batches to the L1. Valid
291295
options: `calldata`, `blobs`, and `auto`. The default value is `calldata`.
292296

0 commit comments

Comments
 (0)