Withdrawals

For L2 to L1 withdrawals, the process begins when a user interacts with the L2BaseToken.sol system contract on the Via chain to burn their assets. During this transaction, the user specifies the L1 recipient address, and the contract logs the withdrawal request within the L1 batch by emitting a Withdrawal event.

Once the L1 batch reaches finality, the Verifier Network extracts all withdrawal requests from the logged batch data and initiates a withdrawal session

Withdrawal Process and Fees

Users do not need to manually claim their BTC on the Bitcoin chain. When a withdrawal is processed, the verifier network automatically sends the BTC to the wallet specified by the user during the withdrawal transaction on Via Network.

To prevent network spam, the verifier network charges a withdrawal fee. This fee is calculated based on the current network gas price and the number of withdrawals processed in a batch the more withdrawals included in a batch, the lower the individual withdrawal fee.

Withdrawal Processing Condition

A withdrawal can only be processed if the amount being withdrawn is sufficient to cover the transaction cost. If the requested withdrawal is smaller than the calculated fee, the verifier network will not process it until the amount is sufficient or combined with other withdrawals in a batch to cover costs.

Last updated