This guide covers the operational aspects of managing fee vaults on your OP Stack chain. For a conceptual overview of how fee vaults work, see Fee vaults.Documentation Index
Fetch the complete documentation index at: https://docs.optimism.exchange/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Access to the ProxyAdminOwner account (required for configuration changes)
- An RPC endpoint for your L2 chain
castCLI tool installed (Foundry)
Fee vault addresses
| Vault | Address |
|---|---|
SequencerFeeVault | 0x4200000000000000000000000000000000000011 |
BaseFeeVault | 0x4200000000000000000000000000000000000019 |
L1FeeVault | 0x420000000000000000000000000000000000001A |
OperatorFeeVault | 0x420000000000000000000000000000000000001B |
Checking vault state
View current balance
View configuration
Updating configuration
Set recipient
Set minimum withdrawal amount
Set withdrawal network
Withdrawing fees
Withdrawals are permissionless — anyone can trigger them once the vault balance meets the minimum threshold.Trigger a withdrawal
Withdrawal behavior by network
-
L2 withdrawal (
withdrawalNetwork = 1): Funds are transferred immediately to the recipient on L2. The transaction completes in a single step. -
L1 withdrawal (
withdrawalNetwork = 0): An L2-to-L1 withdrawal is initiated via theL2ToL1MessagePasser. After callingwithdraw(), you must still:- Wait for the withdrawal to be included in an L2 output root
- Prove the withdrawal on L1
- Wait for the finalization period
- Finalize the withdrawal on L1
Initial configuration during deployment
Fee vault recipients, minimum withdrawal amounts, and withdrawal networks are configured during chain deployment withop-deployer. For details on setting these parameters, see the op-deployer setup guide.
Monitoring
It’s good practice to monitor your fee vaults regularly:- Vault balances: Track balances to know when withdrawals can be triggered.
totalProcessed: Monitor cumulative withdrawals over time to understand revenue trends.
Next steps
- Read the fee vaults explainer to understand how vaults work at the protocol level.
- See Transaction Fees 101 to learn how to tune fee parameters.
- Review fee components and formulas for detailed fee calculations.