Home
Developer guide
Getting started
  • Getting started
  • About the testnet
    • Connecting Metamask
    • Important links
    • Feature support status
    • Known issues
    • Try it out!
    • Reporting issues
  • ZK Rollup Basics
    • Contract deployment
    • Important: Account abstraction support
    • Block numbers and time
    • 2.0 Overview
    • Handling of ETH and tokens
    • Fee model
    • Transaction types
    • Transaction formats
    • Confirmations and finality
    • Decentralization roadmap
    • L1 / L2 Interoperability
    • Current limitations
    • Web3 API
  • Understanding zkSync 2.0
  • Home
  • /
  • Getting started
  • /
  • ZK Rollup Basics
  • /
  • Transaction types

Transaction types

There are three types of L2 transactions on zkSync: Withdraw, Execute, Deploy.

  • Withdraw is used to withdraw native ERC20 tokens to L1. Please note that this type most likely will be removed after the testnet.
  • Execute is used to call smart contract functions.
  • Deploy is used to deploy smart contracts on zkSync.

There are also two types of transactions, related to bridging native tokens to zkSync:

  • Deposit is used to move funds from an L1 account to an L2 account.
  • AddToken is used to register a native ERC20 token to zkSync.
Last updated: 8/17/2022, 2:45:12 PM
Previous
Fee model
Next
Transaction formats
Edit on GitHub