Deploy a Smart Contract on Cronos zkEVM
Learn how to deploy a smart contract on Cronos zkEVM using GetBlock's RPC endpoint.
Cronos zkEVM is a ZKsync ZK Stack chain, so its EVM is compatible at the application level but contracts must be compiled with the ZKsync Solidity compiler (zksolc) and deployed with the ZKsync toolchain — standard solc/vanilla Foundry bytecode is not deployed directly. Use @matterlabs/hardhat-zksync (or foundry-zksync). Gas is paid in zkCRO. This guide covers adding the network to a wallet and deploying with Hardhat + ZKsync.
Prerequisites
Node.js 18+ and a package manager
An EVM wallet (such as MetaMask) with zkCRO for gas — see Add Network to Your Wallet and Funding Your Deployer
A GetBlock access token — the endpoint is
https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/A funded deployer address with zkCRO
Network Details
Network Name
Cronos zkEVM Mainnet
RPC URL
https://shared.eu-central-1.getblock.io//
Chain ID
388 (0x184)
Currency Symbol
zkCRO
Block Explorer
Add Network to Your Wallet
Cronos zkEVM is not pre-configured in MetaMask by default, so it must be added manually — follow the steps below:
Enter the network details
Enter the values from the Network Details table above.
Funding Your Deployer
Cronos zkEVM gas is paid in zkCRO.
Mainnet — bridge to Cronos zkEVM through the official bridge, or acquire zkCRO from a supported exchange.
Deploy with Hardhat + ZKsync
After Deploying
Read contract state through the
eth_callmethod against your GetBlock endpoint.Watch contract events with
eth_getLogs.Explore your contract and transactions on the Cronos zkEVM explorer.
Last updated
Was this helpful?