EthersJS
L1<->L2 Transactions
Methods to facilitate transactions between L1 and L2 networks using zksync-ethers.
Learn how to send transactions between L1 and L2 networks using the zksync-ethers
library.
If you need background information on how L1<->L2 interactions work on ZKsync, check out the Developer Reference.
Deposit
Wallet
and L1Signer
objects allow you to deposit funds from L1 to L2.
- More Information: See the method specification
Deposit
. - Example: Deposit ETH and ERC20 token
Request execute
Wallet
and L1Signer
objects let you request the execution of an L2 transaction from L1.
- More Information: See the method specification
requestExecute
.
Base cost
Wallet
and L1Signer
objects can calculate the base cost for an L2 transaction.
- More Information: See the method specification
getBaseCost
.
Claim failed deposit
Wallet
and L1Signer
objects provide a way to claim a failed deposit.
- More Information: See the method specification
claimFailedDeposit
.
Finalize withdraw
Wallet
and L1Signer
objects allow you to finalize a withdrawal from L2 to L1.
- More Information: See the method specification
finalizeWithdrawal
.
Withdrawal
Wallet
and Signer
objects enable you to withdraw funds from L2 to L1.
- More Information: See the method specification
Withdraw
. - Example: Withdraw ETH and ERC20 token