1/5
We're going to learn how to deploy smart contracts with metamask, let's get started. Here's a simple smart contract that we're going to deploy: ```python pragma solidity ^0.8.4; contract Person { string name; uint256 favorite_number; } ``` Let's go ahead and deploy this contract. First, we're going to need to create a new metamask wallet, and then we're going to need to select the network. We're going to select the Sepolia test network. Now, let's go through the steps of deploying the smart contract: - Click on the Remix **Deploy & Run Transactions** tab. - Click on the **Deploy** button. - Next we can hit the **My Favorite Number** - Let's put Patrick. - Let's put 7. - Then we can hit the **Call** button. - Now let's go ahead and deploy this contract. - Select our **fake chain**. - Click the **Deploy** button. We will see a message "Contract ... **compiled by Vyper**". Next, we will see a **green tick** above the **Contract** area. - Click on the **green tick** to reveal the **deployed contract** details. - We're going to hit the **index** - We're going to click the **index** to reveal the **index** tab, - We're going to hit the **call** button. - Then, **MetaMask popped up** - Now, we're going to go ahead and hit **Confirm**. - We're going to click on **Confirm**. - It says "Here I'm to help you!" That's how you deploy smart contracts with metamask.
A comprehensive guide to deploying a Vyper smart contract to a Tenderly Virtual Testnet, covering the setup of a virtual testnet, connecting to your Metamask wallet, and deploying your contract.
Previous lesson
Previous
Next lesson
Next
Give us feedback
Course Overview
About the course
The basics of blockchain transactions, how to send and receive money on a blockchain network.
How to write Python based smart contracts using Vyper.
How to read and understand Vyper smart contracts.
Vyper data structures, arrays, structs, hash maps.
How to build a smart contract application and deploy on ZKsync with 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)
Web3 engineer, educator, and Cyfrin co-founder. Patrick's smart contract development and security courses have helped hundreds of thousands of engineers kickstarting their careers into web3.
Last updated on March 21, 2025
Duration: 2h 08min
Duration: 2h 32min
Duration: 24min
Course Overview
About the course
The basics of blockchain transactions, how to send and receive money on a blockchain network.
How to write Python based smart contracts using Vyper.
How to read and understand Vyper smart contracts.
Vyper data structures, arrays, structs, hash maps.
How to build a smart contract application and deploy on ZKsync with 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)
Web3 engineer, educator, and Cyfrin co-founder. Patrick's smart contract development and security courses have helped hundreds of thousands of engineers kickstarting their careers into web3.
Last updated on March 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