2/5
## Installing Anvil In this lesson, we'll learn how to install Anvil, a tool that we'll use to create and deploy blockchain projects locally. **Why We Need Anvil** Anvil is a powerful smart contract development framework that allows us to test and deploy our projects without worrying about network fees or the limitations of using a public testnet. **Getting Started** To install Anvil, we'll use the command: ```bash curl -L https://foundry.paradigm.xyz | bash ``` This will install Anvil, Forge, Cast, and Chisel. **Testing Anvil** Once Anvil is installed, we can check that everything is working correctly by running: ```bash anvil --version ``` If Anvil is installed correctly, we should see the version number printed to our terminal. **Troubleshooting Anvil** If we can't run Anvil, there might be an issue with our bash or zsh profiles. To fix this, we can add the following lines to our profiles: For bash: ```bash echo "source $HOME/.bashrc >> $HOME/.bash_profile" ``` For zsh: ```bash echo "source $HOME/.zshrc >> $HOME/.zprofile" ``` These lines will help our terminal find Anvil more easily. **Conclusion** By installing Anvil, we've taken the first step towards building our own blockchain development environment. In the next lesson, we'll explore how to use Anvil to create and deploy our first smart contract!
A practical guide to installing Anvil for your local blockchain. This lesson teaches you how to set up Anvil, a powerful tool for Ethereum application development, and how to use its features.
Previous lesson
Previous
Next lesson
Next
Give us feedback
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 April 21, 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 April 21, 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