4/5
## Deploying to ZKSync In this lesson, we'll deploy our smart contract to the ZKSync network. We'll cover the following: - Deploying to ZKSync Testnet - Verifying Our Smart Contract - Sharing Your Achievement - Cleaning Up ### Deploying to ZKSync Testnet We can deploy to ZKSync using this command: ```bash mox run deploy --network sepolia-zksync ``` We'll be prompted to confirm that we want to continue. Type "y" and hit enter. We'll then be asked to enter our password. Now we'll see our transactions being broadcasted and we can see our contract address has been printed in the terminal. ### Verifying Our Smart Contract Let's verify our smart contract by copying the contract address from our terminal and going to the ZKSync explorer. We can find the ZKSync explorer by searching "zksync sepolia testnet explorer" on Google. Once we've pasted the contract address in the explorer search, we'll be able to see our contract information, including the source code and deployed bytecode. ### Sharing Your Achievement If we successfully deployed our contract to ZKSync, we can go to the Github repo associated with this course and click on the "Tweet Me (add your contract in)!" link. We recommend sending a tweet at ZKSync letting them know we just deployed a smart contract using Mocassin. Sharing our success with the community is an important part of our developer journey. ### Cleaning Up If we have an "install.sh" file in our project directory, we can delete it. We may also have a "era_test_node.log" file. We can delete this file as well.
In this lesson, we'll deploy our smart contract to the ZKSync network. We'll cover the following:
Deploying to ZKSync Testnet
Verifying Our Smart Contract
Sharing Your Achievement
Cleaning Up
We can deploy to ZKSync using this command:
We'll be prompted to confirm that we want to continue. Type "y" and hit enter.
We'll then be asked to enter our password.
Now we'll see our transactions being broadcasted and we can see our contract address has been printed in the terminal.
Let's verify our smart contract by copying the contract address from our terminal and going to the ZKSync explorer.
We can find the ZKSync explorer by searching "zksync sepolia testnet explorer" on Google.
Once we've pasted the contract address in the explorer search, we'll be able to see our contract information, including the source code and deployed bytecode.
If we successfully deployed our contract to ZKSync, we can go to the Github repo associated with this course and click on the "Tweet Me (add your contract in)!" link.
We recommend sending a tweet at ZKSync letting them know we just deployed a smart contract using Mocassin.
Sharing our success with the community is an important part of our developer journey.
If we have an "install.sh" file in our project directory, we can delete it.
We may also have a "era_test_node.log" file. We can delete this file as well.
A practical guide to deploying a Vyper smart contract to ZkSync using Moccasin - Learn how to deploy your smart contract to the Sepolia ZkSync testnet, verify your contract, and celebrate your success by sharing it with the ZkSync community.
Previous lesson
Previous
Next lesson
Next
Give us feedback
era_test_node has been renamed to anvil-zksync
Last updated on December 9, 2024
Course Overview
About the course
Python basics
Introduction to Web3.py
Introduction to Titanoboa
Introduction to Moccasin
How to create an ERC-20
How to test Python code and Vyper smart contract
How to deploy Vyper smart contracts on ZKsync using Moccasin
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
On-chain Data Analyst
$59,000 - $139,000 (avg. salary)
DeFi Developer
$75,000 - $200,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Last updated on June 10, 2025
Duration: 2h 20min
Duration: 1h 51min
Duration: 58min
Duration: 2h 23min
Duration: 53min
Duration: 2h 24min
Duration: 28min
Duration: 1h 54min
Duration: 11min
Course Overview
About the course
Python basics
Introduction to Web3.py
Introduction to Titanoboa
Introduction to Moccasin
How to create an ERC-20
How to test Python code and Vyper smart contract
How to deploy Vyper smart contracts on ZKsync using Moccasin
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
On-chain Data Analyst
$59,000 - $139,000 (avg. salary)
DeFi Developer
$75,000 - $200,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Last updated on June 10, 2025