Guides

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.

Request execute

Wallet and L1Signer objects let you request the execution of an L2 transaction from L1.

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.

Finalize withdraw

Wallet and L1Signer objects allow you to finalize a withdrawal from L2 to L1.

Withdrawal

Wallet and Signer objects enable you to withdraw funds from L2 to L1.


Made with ❤️ by the ZKsync Community