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:
Previous
Current limitations