Overview
| Parameter | Default | Recommended | Type |
|---|---|---|---|
operatorFeeScalar | 0 | Chain-specific | uint32 scalar (scaled by 1e6) |
operatorFeeConstant | 0 | Chain-specific | uint64 scalar (wei) |
It allows OP Stack chain operators to charge an additional fee on transactions, on top of the execution gas fee (base fee + priority fee) and the L1 data fee. This mechanism gives operators two levers:
- a gas-proportional component (
operatorFeeScalar) that scales with gas used - a flat component (
operatorFeeConstant)
The operator fee is only applied on chains that have enabled the Isthmus upgrade.
Deposit transactions do not get charged operator fees.
For all deposit transactions, regardless of the operator fee configuration, the operator fee is always zero.
For all deposit transactions, regardless of the operator fee configuration, the operator fee is always zero.
Operator Fee Formula
The operator fee is calculated using the following formula, depending on the active fork. After Isthmus:How to Update the Operator Fee
To update the operator fee parameters, call the following method on theSystemConfig contract from the SystemConfigOwner:
setOperatorFeeScalars(uint32 _operatorFeeScalar, uint64 _operatorFeeConstant) external onlyOwner;
Example using cast:
cast
function operatorFeeScalar() view returns (uint32);function operatorFeeConstant() view returns (uint64);
Example using cast:
cast