For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Property
Value

Network Name

Cronos zkEVM Mainnet

RPC URL

https://shared.eu-central-1.getblock.io//

Chain ID

388 (0x184)

Currency Symbol

zkCRO

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:

1

Open your wallet

Open MetaMask (or your EVM wallet of choice).

2

Add a custom network

Open the network selector and choose Add a custom network.

3

Enter the network details

Enter the values from the Network Details table above.

4

Confirm the chain ID

Confirm the Chain ID resolves to 388.

5

Save and switch networks

Save and switch to the newly added Cronos zkEVM network.

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

1

Create the project and install the ZKsync toolchain

2

Configure zksolc and the network

3

Write the contract

4

Compile with zksolc

5

Deploy

6

Verify on the block explorer

After Deploying

  • Read contract state through the eth_call method 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?