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
  • /
  • Web3 API

Web3 API

zkSync fully supports the standard Ethereum JSON-RPC API, but it also has some additional L2-specific functionality.

As long as the code does not involve deploying new smart contracts (they can only be deployed using EIP712 transactions, more on that below), no changes for the codebase are needed.

You may continue using the SDKs that you use now. Users will continue paying fees in ETH and the UX will be identical to the one on Ethereum.

For deploying smart contracts or enabling the unique zkSync features for users (e.g. paying fees in the same token which is being swapped), using the EIP712 transaction type is required.

A more detailed description of the zkSync JSON-RPC API can be found here.

Last updated: 8/23/2022, 9:04:05 AM
Previous
Current limitations
Next
Understanding zkSync 2.0
Edit on GitHub