The ZKsync provider for the L2 network.
The address of the custom L1 bridge.
The address of the custom L2 bridge.
The address of the token to be bridged.
The deposit amount.
The recipient address on the L2 network.
Additional bridge data.
The sender address on the L1 network.
Optional
gasPerPubdataByte: NumbersThe current gas per byte of pubdata.
Optional
l2Value: NumbersThe msg.value
of L2 transaction.
Returns an estimation of the L2 gas required for token bridging via the custom ERC20 bridge.