tx_type_has_poster_costs

Function tx_type_has_poster_costs 

Source
pub fn tx_type_has_poster_costs(tx_type: u8) -> bool
Expand description

Whether a transaction type incurs L1 poster costs and standard fee distribution.

In Nitro, the GasChargingHook sets SkipL1Charging=false for ALL on-chain txs, meaning poster gas is computed for every tx that enters the EVM. Only types that end early in StartTxHook (deposit, internal, submit-retryable) never reach the gas charging phase. RetryTx has its own special gas/fee handling.

UnsignedTx (0x65) and ContractTx (0x66) are L1→L2 messages that execute through the normal EVM path and MUST have poster costs and fee distribution, matching standard user txs.