1/5
## Anvil ZKSync Update In this lesson, we will learn how to deploy to a ZKSync local node. It's similar to Anvil but for ZKSync. We will cover the latest updates to ZKSync, which allow for deployment using just one command, without the need for extra installations. To take advantage of this simplified process, it's important to have the most up-to-date version of Foundry ZKSync. The reason we want to deploy our contracts to a ZKSync environment is to ensure that our contracts are running smoothly on ZKSync as well, rather than just in an Ethereum environment. Lets review the Foundry ZKSync repository. We need to make sure that we are using the most up-to-date version of Foundry ZKSync. If you have an older version of Foundry ZKSync installed, you may need to reinstall Foundry up ZKSync in order for Anvil-ZKSync to be downloaded. Run this command to install: ```bash curl -L https://raw.githubusercontent.com/matter-labs/foundry-zksync/main/install-foundry.sh | bash ``` To start your locally running ZKSync node, you can run: ```bash anvil-zksync ``` You will then see the same as with Anvil, some rich accounts that you can use, their associated private keys, and other information, such as the L1 and L2 gas prices, and the port in which you are listening on, which will be the RPC URL that you would need to use if you want to broadcast any transactions to your Anvil ZKSync node.
Deploy smart contracts locally on ZKSync using Anvil-ZKSync—no extra setup needed with the latest Foundry ZKSync update.
Previous lesson
Previous
Next lesson
Next
Give us feedback
Course Overview
About the course
Foundryup, Foundry Forge, and Anvil
Blockchain Oracles
How to create local Blockchain testnets
How to verify a smart contract
How to write and run smart contract tests
Security researcher
$49,999 - $120,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)
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
Guest lecturers:
Last updated on March 27, 2025
Solidity Developer
Foundry FundamentalsDuration: 2h 55min
Duration: 2h 56min
Duration: 26min
Duration: 5h 22min
Course Overview
About the course
Foundryup, Foundry Forge, and Anvil
Blockchain Oracles
How to create local Blockchain testnets
How to verify a smart contract
How to write and run smart contract tests
Security researcher
$49,999 - $120,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)
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
Guest lecturers:
Last updated on March 27, 2025
Testimonials
Read what our students have to say about this course.
Chainlink
Chainlink
Gustavo Gonzalez
Solutions Engineer at OpenZeppelin
Francesco Andreoli
Lead Devrel at Metamask
Albert Hu
DeForm Founding Engineer
Radek
Senior Developer Advocate at Ceramic
Boidushya
WalletConnect
Idris
Developer Relations Engineer at Axelar