Welcome/Deploying Contracts (EVM)

Deploying Contracts (EVM)

ZKcandy Documentation

Deploying to ZKcandy EVM


This document will cover the simplest method of deploying contracts to both the ZKcandy Mainnet and the ZKcandy Sepolia Testnet. We strongly encourage testing your contracts on the ZKcandy Sepolia Testnet before deploying to our mainnet.
There are multiple ways to deploy contracts to ZKcandy. As such, the methods covered in this document is not an exhaustive list.
We will be using the Remix IDE, maintained by the Ethereum foundation, for the purposes of this document. We will use the web-based version of this IDE as it is compatible with most browser-based injected Ethereum wallets like Metamask.
Previously, deploying to ZKcandy via Remix required the use of the Remix ZKsync Plugin. This is no longer required as ZKcandy now has EVM Equivalence as of June 2025, with the ZKsync V27 update.
Previously, deploying to ZKcandy via Remix required the use of the Remix ZKsync Plugin. This is no longer required as ZKcandy now has EVM Equivalence as of June 2025, with the ZKsync V27 update.

Prerequisites

  • An Ethereum wallet that is either:
    • A browser extension with web3 injection e.g. Metamask
    • A WalletConnect-compatible desktop or mobile wallet
Some hardware wallets that can work through a browser extension or WalletConnect (e.g. Ledger Live via WalletConnect, Trezor via Metamask etc.) should also be usable for this method of contract deployment.
When testing, you are advised against using a wallet with mainnet funds on any blockchain, not just ZKcandy or ZKsync Era.
When testing, you are advised against using a wallet with mainnet funds on any blockchain, not just ZKcandy or ZKsync Era.
You will have to add the ZKcandy Mainnet to your wallet. Refer to
Connect to ZKcandy
.

Configuring Remix

Opening the IDE

We will start by navigating to the Remix IDE website at remix.ethereum.org. Double check the URL in your browser to ensure that you are accessing this and only this version of Remix.
As the Remix IDE is constantly evolving, you should refer to the official Remix IDE documentation.

Select Deployment Method