header-langage
简体中文
繁體中文
English
Tiếng Việt
Scan to Download the APP

Teach you how to get Alchemy Road to Web3 third week NFT

2022-08-19 14:30
Read this article in 56 Minutes
总结 AI summary
View the summary 收起

Original title: "Ten Billion Project Alchemy Road to Web3 Third Week NFT Acquisition Tutorial"
Original author: Greta


What project is Alchemy?


In December 2019, Alchemy completed US$15 million Series A financing, with Pantera Capital, Stanford University, Coinbase, Samsung, etc.


In April 2021, Alchemy completed $80 million Series B financing at a valuation of $505 million, led by Coatue and Addition, DFJ Growth, K5 Global, Chainsmokers (smokers), actor Jared Leto and The Glazer family participated in the vote.


In October 2021, Alchemy completed $250 million Series C financing at a valuation of $3.5 billion, led by a16z.


In February 2022, Alchemy completed a  $200 million financing at a valuation of $10.2 billion, led by Lightspeed and Silver Lake.


Alchemy is a team with a strong background, sufficient funds, practical work, and no currency issuance. If such a project is not used, should it be used to use Tugou?


And, Alchemy plans to use the new funds to promote Web3 adoption. Some initiatives in this regard include the launch of Web3 University, which is now the Road to Web3 event. The event will last for 10 weeks, with one NFT per week. After looking at the very small number of NFTs, it is estimated that due to the difficulty of the task, many small partners simply gave up. If such a project is airdropped, it is definitely a big deal.


Hands-on week 3 tutorial begins: How to use on-chain metadata to make NFT - Hardhat and JavaScript



< /p>

Official original Tutorial link, which has a 49-minute video tutorial and a large text tutorial. I will give you an easy-to-operate graphic tutorial according to my method tutorial.


Not done After the second week, remember to follow this first.


step1 Add Polygon Mumbai to your Metamask wallet


< p>

1. Enter mumbai.polygonscan.com and submit to Scroll down to the bottom of the page. You will see the Add Polygon Network button, click it and confirm that you want to add it to Metamask.


< p>


step2 Get free Matic to deploy your NFT smart contract


Get Test MATIC is as easy as navigating to one of the following taps:


mumbaifaucet.com

faucet.polygon.technology (this seems to have always been there)


Copy the wallet address into the text field and click "Send Me MATIC":


< /p>


step3 How to use on-chain metadata to make NFT - project settings


1. Press Win+R, in the pop-up box Enter cmd.


< p>


2. Enter control On the platform, enter mkdir ChainBattled to create a new folder, then enter cd ChainBattled and press Enter to enter the folder.


< p>


3. Enter npm install -g yarn installs yarn.


< p>


4. Re-enter yarn add hardhat installs hardhat.


< p>


5. Then enter npx hardhat init, press enter three times.


< p style="text-align: left;">


6. Enter yarn add @openzeppelin/contracts to install the OpenZeppelin smart contract library.


< p>


7. Enter yarn add @nomiclabs/hardhat-etherscan, press enter.


< p>


step4 modify hardhat. config.js file


1. Open Vscode, Click file, then click open folder. (Don't worry about the code on the right, that's from the previous project haha)


< /p>


2. Find the folder you just created, and click to select the folder.


< p>


3. After opening It looks like this.


< p>


4. Right click , and then delete the two files lock.sol and deploy.js.


< p>


5. Click hardhat .config.js, paste the following code into it! as the picture shows!


< /p>


step5 with on-chain metadata NFT: Develop smart contracts


In the contracts folder , create a new file and name it "ChainBattles.sol", and then paste the following code into it (note, this is pasting mine, the official one is wrong!!), as shown in the picture, remember to save, remember to save!




step6 Use on-chain metadata smart contracts to deploy NFT


1. Enter echo test>.env in the console to create a .env file.


< p style="text-align: left;">

2. Go back to vscode and paste the following code in the env file, as shown in the figure !


< /p>


3. Enteralchemy.com and create a new Polygon Mumbai application.


Click create app.


< p style="text-align: left;">

Enter as shown below, and then click create app.


< p>


4. Click just now The view key of the created app. Copy the HTTPS link and paste it to the first line of the env file in vscode, as shown in the figure.


< p>


5. Open Metamask Wallet, click the three-dot menu > Account Details > and copy and paste your private key as the "PRIVATE_KEY" value, as shown in the figure.


< p>


6. Finally, Go to polygonscan.com, and click on the upper right corner to create a new account.


< p>


Enter API-KEY , click ADD, copy the string in the red box after adding, and paste it to the third line of the env file, as shown in the figure. save! ! !


< p>


step7 Create a deployment script


1. Create under the script asking price folder deploy.js file, and paste the following code, as shown in the figure, remember to save.



step8 compile and deploy smart contract


1. Enter npm install dotenv in the console, and click Enter to install.


< p>


2. In the control Enter npm install @nomiclabs/hardhat-waffle, and click Enter to install.


< p>


3. Enter npx hardhat compile in the console and press Enter, as shown in the figure.


< p>


4. In the control Enter npx hardhat run scripts/deploy.js --network mumbai on the platform, wait for 10-15 seconds, and see the smart contract address in the terminal.


< p>


step9 in Polygon Scan Check your smart contract on


1. Copy The address of the smart contract just deployed, enter mumbai.polygonscan.com , **paste the address of the smart contract in the search bar. **Then click contract, you will find that the contract code is unreadable.


< p>


2. Back On the console, enter npx hardhat verify --network mumbai + your contract address, as shown in the figure. (Because there are many people requesting, sometimes there will be mistakes, just request several times) (I have already verified the address here, so the following error occurs)


< h4 style="text-align: left;">

step10 Interact with your smart contract via polygon scan

< br>

1. Now that the smart contract has been verified, mumbai.polygonscan.com will A small green tick is displayed nearby.


< p>


2. Click connect to web3, link little fox.


< p>


3. Click write connect, then click write under the fourth mint, and confirm in the little fox.


< p>


step11 on OpenSea View your dynamic NFT


1. Copy Intelligence Contract address, go to testnet.opensea.com and paste it in the search bar.


< p>


step12 Update dynamic NFT Image Training NFT


1. Back to mumbai.polygonscan.com , click write connect, and then see the 8th train, enter 1 in it, click write, and then click the little fox to confirm .


< p>


2. Back again Go to the previous interface and refresh it several times, as shown in the figure.


< p>


step13 Project submission.


Submitlink.


Okay, everything is over, just wait for the snapshot of the project party and get the NFT!


Original link


欢迎加入律动 BlockBeats 官方社群:

Telegram 订阅群:https://t.me/theblockbeats

Telegram 交流群:https://t.me/BlockBeats_App

Twitter 官方账号:https://twitter.com/BlockBeatsAsia

举报 Correction/Report
This platform has fully integrated the Farcaster protocol. If you have a Farcaster account, you canLogin to comment
Choose Library
Add Library
Cancel
Finish
Add Library
Visible to myself only
Public
Save
Correction/Report
Submit