How to deploy own SmartContract on Zksync Mainnet🪂🤑| Anyone Can Deploy 😏

iamcrpt
3 min readSep 26, 2023

--

⬇️Follow Me On Social Media ⬇️

X ( Twitter) | Telegram | Youtube

You guys need to deploy Smart Contract On Zksync, Here is why

By deploying SmartContract U can increse Potential Airdrop Amount.

I Made Video On this U Watch that Link ⬇️

Link🔗

English :

Hindi: https://youtu.be/Q7dyGh6kwIM

— — — — — — — — — — — — — — — — — — — — -

Requirements:

Have at least $2–$5 ETH on Zksync Mainnet for gas fees.

For Laptop/PC users:

VS Code

Git

NodeJs

— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —

⬇️So Lets Dive in ⬇️

  1. Git bash Open Terminal In VSCode
  2. Use Below Command & Create New Folder
 mkdir airdrop

3. Go to That Folder Using Below Command⬇️

cd airdrop

4. Intialize Json Using Below Command⬇️

npm init -y

5. Use below Command for Installing hardhat (helps in deploying Contract)

npm install --save-dev hardhat

6. We Need to install npm 9.6.2 , So use Below Command⬇️

npm install -g npm@9.6.2

7. Now Create New Folder Again,To Move to that Folder Using Below Command⬇️

mkdir greeter
cd greeter

8. Again We have to use Json Intializtion Command⬇️

npm init -y

9. Now We have intialize deploy Modules from Zksync Liberaries using Below Command ⬇️

npm add -D typescript ts-node @types/node ethers@^5.7.2 zksync-web3@^0.14.3 @ethersproject/hash @ethersproject/web hardhat @matterlabs/hardhat-zksync-solc @matterlabs/hardhat-zksync-deploy

10. Now Create 2 new Folders Using Below Command⬇️

mkdir contracts
mkdir deploy

11. Now You need Move 3 Code Files which include Contract,deploy (typeScript),Config file ( which has mainnet settings required).

Move Greeter.sol → contracts folder

Move deploy.ts →deploy folder

Move hardhat.config.ts → greeter folder

Download Zip File From Below Github link⬇️

Link🔗https://github.com/shreez8/zksync-airdrop.git

Either download as .ZIP or use Below Command to Copy Directly⬇️

git clone https://github.com/shreez8/zksync-airdrop.git

12. Now Check your Current Directory/folder U are in using Below Commad⬇️

pwd

you should be in greeter Directory/folder, if Not use Below Command⬇️

cd ..

13. Now Run below Command⬇️

npx hardhat complie

If get any error reply below this article , I will resolve it ✅

14. Finally Run Below Command to deploy ⬇️

npx hardhat deploy-zksync

after succcessfully running it should show something like this ⬇️

You Can verify , just Copy give Contract Addrees & Paste it on Zksync Exploer

Zksync Exploer🔗https://explorer.zksync.io/

— — — — — — — — — — — — — — — — — — — — — — — —

⬇️Follow Me On Social Media ⬇️

X ( Twitter) | Telegram | Youtube

⬇️Recent Airdrop Guides⬇️
Free Mining Apps | Mantle Chain Airdrop | Free Apps To earn

— — — — — — — — — — — — — — — — — — — — — — — —

Give a Clap & Share it with your crypto buddies/hunters 😁❤️

--

--

iamcrpt
iamcrpt

Written by iamcrpt

Get 🌟 Airdrops Guides 🎨 NFTs 🎁 Giveaways 💡 Tips & Tricks 📈 Crypto Trends & News 🚀 Join us for free ! Subscribe for News Letter📨. #Cryptopops

No responses yet