Estimating StarkGate fees

Last edit

Contributors

StarkGate enforces a minimum fee for all transactions to account for the L1 → L2 message costs. For more information, see L1 → L2 message fees.

You can estimate the fee using the following L1 functions:

estimateDepositFeeWei

Estimates the fee for a deposit transaction.

estimateEnrollmentFeeWei

Estimates the fee for an enrollment transaction.