You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/developers/tutorials/how-to-mint-an-nft/index.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -109,9 +109,9 @@ Once you’re done editing the JSON file, save it and upload it to Pinata, follo
109
109
110
110
## Step 5: Create an instance of your contract {#instance-contract}
111
111
112
-
Now, to interact with our contract, we need to create an instance of it in our code. To do so we’ll need our contract address which we can get from the deployment or [Etherscan](https://goerli.etherscan.io/) by looking up the address you used to deploy the contract.
112
+
Now, to interact with our contract, we need to create an instance of it in our code. To do so we’ll need our contract address which we can get from the deployment or [Etherscan](https://sepolia.etherscan.io/) by looking up the address you used to deploy the contract.
113
113
114
-

114
+

115
115
116
116
In the above example, our contract address is 0x5a738a5c5fe46a1fd5ee7dd7e38f722e2aef7778.
117
117
@@ -130,7 +130,7 @@ Now, in order to create and send transactions to the Ethereum chain, we’ll use
130
130
Add your public key to your `.env` file — if you completed part 1 of the tutorial, our `.env` file should now look like this:
@@ -316,9 +316,9 @@ Now, run `node scripts/mint-nft.js` to deploy your NFT. After a couple of second
316
316
317
317
Check Alchemy's Mempool to view the status of your transaction!
318
318
319
-
Next, visit your [Alchemy mempool](https://dashboard.alchemyapi.io/mempool) to see the status of your transaction (whether it’s pending, mined, or got dropped by the network). If your transaction got dropped, it’s also helpful to check [Goerli Etherscan](https://goerli.etherscan.io/) and search for your transaction hash.
319
+
Next, visit your [Alchemy mempool](https://dashboard.alchemyapi.io/mempool) to see the status of your transaction (whether it’s pending, mined, or got dropped by the network). If your transaction got dropped, it’s also helpful to check [Sepolia Etherscan](https://sepolia.etherscan.io/) and search for your transaction hash.
320
320
321
-
_View your NFT transaction hash on Etherscan_
321
+
_View your NFT transaction hash on Etherscan_
322
322
323
323
And that’s it! You’ve now deployed AND minted with a NFT on the Ethereum blockchain <Emojitext=":money_mouth_face:"size={1} />
Copy file name to clipboardExpand all lines: src/content/developers/tutorials/how-to-view-nft-in-metamask/index.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -14,15 +14,15 @@ Congrats! You’ve made it to the shortest and simplest part of our NFT tutorial
14
14
15
15
As a prerequisite, you should already have MetaMask on mobile installed, and it should include the account to which you minted your NFT — you can get the app for free on [iOS](https://apps.apple.com/us/app/metamask-blockchain-wallet/id1438144202) or [Android](https://play.google.com/store/apps/details?id=io.metamask&hl=en_US&gl=US).
16
16
17
-
## Step 1: Set your network to Goerli {#set-network-to-goerli}
17
+
## Step 1: Set your network to Sepolia {#set-network-to-sepolia}
18
18
19
-
At the top of the app, press the “Wallet” button, after which you’ll be prompted to select a network. As our NFT was minted on the Goerli network, you’ll want to select Goerli as your network.
19
+
At the top of the app, press the “Wallet” button, after which you’ll be prompted to select a network. As our NFT was minted on the Sepolia network, you’ll want to select Sepolia as your network.
20
20
21
-

21
+

22
22
23
23
## Step 2: Add your collectable to MetaMask {#add-nft-to-metamask}
24
24
25
-
Once you’re on the Goerli network, select the “Collectibles” tab on the right and add the NFT smart contract address and the ERC-721 token ID of your NFT — which you should be able to find on Etherscan based on the transaction hash from your NFT deployed in Part II of our tutorial.
25
+
Once you’re on the Sepolia network, select the “Collectibles” tab on the right and add the NFT smart contract address and the ERC-721 token ID of your NFT — which you should be able to find on Etherscan based on the transaction hash from your NFT deployed in Part II of our tutorial.
26
26
27
27

Copy file name to clipboardExpand all lines: src/content/developers/tutorials/how-to-write-and-deploy-an-nft/index.md
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ With NFTs bringing blockchain into the public eye, now is an excellent opportuni
12
12
13
13
Alchemy is extremely proud to be powering the biggest names in the NFT space, including Makersplace (recently set a record digital artwork sale at Christie’s for $69 Million), Dapper Labs (creators of NBA Top Shot & Crypto Kitties), OpenSea (the world’s largest NFT marketplace), Zora, Super Rare, NFTfi, Foundation, Enjin, Origin Protocol, Immutable, and more.
14
14
15
-
In this tutorial, we will walk through creating and deploying an ERC-721 smart contract on the Goerli test network using [MetaMask](https://metamask.io/), [Solidity](https://docs.soliditylang.org/en/v0.8.0/), [Hardhat](https://hardhat.org/), [Pinata](https://pinata.cloud/) and [Alchemy](https://alchemy.com/signup/eth) (don’t fret if you don’t understand what any of this means yet — we will explain it!).
15
+
In this tutorial, we will walk through creating and deploying an ERC-721 smart contract on the Sepolia test network using [MetaMask](https://metamask.io/), [Solidity](https://docs.soliditylang.org/en/v0.8.0/), [Hardhat](https://hardhat.org/), [Pinata](https://pinata.cloud/) and [Alchemy](https://alchemy.com/signup/eth) (don’t fret if you don’t understand what any of this means yet — we will explain it!).
16
16
17
17
In Part 2 of this tutorial we’ll go through how we can use our smart contract to mint an NFT, and in Part 3 we’ll explain how to view your NFT on MetaMask.
18
18
@@ -26,29 +26,29 @@ In this tutorial, we’ll also take advantage of Alchemy’s developer tools for
26
26
27
27
## Step 2: Create your app (and API key) {#make-api-key}
28
28
29
-
Once you’ve created an Alchemy account, you can generate an API key by creating an app. This will allow us to make requests to the Goerli test network. Check out [this guide](https://docs.alchemyapi.io/guides/choosing-a-network) if you’re curious to learn more about test networks.
29
+
Once you’ve created an Alchemy account, you can generate an API key by creating an app. This will allow us to make requests to the Sepolia test network. Check out [this guide](https://docs.alchemyapi.io/guides/choosing-a-network) if you’re curious to learn more about test networks.
30
30
31
31
1. Navigate to the “Create App” page in your Alchemy Dashboard by hovering over “Apps” in the nav bar and clicking “Create App”
32
32
33
33

34
34
35
-
2. Name your app (we chose “My First NFT!”), offer a short description, select “Ethereum” for the Chain, and choose “Goerli” for your network. Since the merge the other testnets have been deprecated.
35
+
2. Name your app (we chose “My First NFT!”), offer a short description, select “Ethereum” for the Chain, and choose “Sepolia” for your network. Since the merge the other testnets have been deprecated.
36
36
37
-

37
+

38
38
39
39
3. Click “Create app” and that’s it! Your app should appear in the table below.
40
40
41
41
## Step 3: Create an Ethereum account (address) {#create-eth-address}
42
42
43
43
We need an Ethereum account to send and receive transactions. For this tutorial, we’ll use MetaMask, a virtual wallet in the browser used to manage your Ethereum account address. If you want to understand more about how transactions on Ethereum work, check out [this page](/developers/docs/transactions/) from the Ethereum foundation.
44
44
45
-
You can download and create a MetaMask account for free [here](https://metamask.io/download.html). When you are creating an account, or if you already have an account, make sure to switch over to the “Goerli Test Network” in the upper right (so that we’re not dealing with real money).
45
+
You can download and create a MetaMask account for free [here](https://metamask.io/download.html). When you are creating an account, or if you already have an account, make sure to switch over to the “Sepolia Test Network” in the upper right (so that we’re not dealing with real money).
46
46
47
-

47
+

48
48
49
49
## Step 4: Add ether from a Faucet {#step-4-add-ether-from-a-faucet}
50
50
51
-
In order to deploy our smart contract to the test network, we’ll need some fake ETH. To get ETH you can go to the [Goerli Faucet](https://goerlifaucet.com/) hosted by Alchemy, log in and enter your account address, click “Send Me ETH”. You should see ETH in your MetaMask account soon after!
51
+
In order to deploy our smart contract to the test network, we’ll need some fake ETH. To get ETH you can go to the [Sepolia Faucet](https://sepoliafaucet.com/) hosted by Alchemy, log in and enter your account address, click “Send Me ETH”. You should see ETH in your MetaMask account soon after!
52
52
53
53
## Step 5: Check your Balance {#check-balance}
54
54
@@ -230,7 +230,7 @@ Then, create a `.env` file in the root directory of our project, and add your Me
To actually connect these to our code, we’ll reference these variables in our hardhat.config.js file in step 13.
@@ -263,10 +263,10 @@ Update your hardhat.config.js to look like this:
263
263
const { API_URL, PRIVATE_KEY } = process.env;
264
264
module.exports = {
265
265
solidity: "0.8.1",
266
-
defaultNetwork: "goerli",
266
+
defaultNetwork: "sepolia",
267
267
networks: {
268
268
hardhat: {},
269
-
goerli: {
269
+
sepolia: {
270
270
url: API_URL,
271
271
accounts: [`0x${PRIVATE_KEY}`]
272
272
}
@@ -321,26 +321,26 @@ Calling deploy() on a ContractFactory will start the deployment, and return a Pr
321
321
322
322
We’re finally ready to deploy our smart contract! Navigate back to the root of your project directory, and in the command line run:
323
323
324
-
npx hardhat --network goerli run scripts/deploy.js
324
+
npx hardhat --network sepolia run scripts/deploy.js
325
325
326
326
You should then see something like:
327
327
328
328
Contract deployed to address: 0x4C5266cCc4b3F426965d2f51b6D910325a0E7650
329
329
330
-
If we go to the [Goerli etherscan](https://goerli.etherscan.io/) and search for our contract address we should be able to see that it has been deployed successfully. If you can't see it immediately, please wait a while as it can take some time. The transaction will look something like this:
330
+
If we go to the [Sepolia etherscan](https://sepolia.etherscan.io/) and search for our contract address we should be able to see that it has been deployed successfully. If you can't see it immediately, please wait a while as it can take some time. The transaction will look something like this:
331
331
332
-

332
+

333
333
334
334
The From address should match your MetaMask account address and the To address will say “Contract Creation.” If we click into the transaction, we’ll see our contract address in the To field:
335
335
336
-

336
+

337
337
338
338
Yasssss! You just deployed your NFT smart contract to the Ethereum (testnet) chain!
339
339
340
340
To understand what’s going on under the hood, let’s navigate to the Explorer tab in our [Alchemy dashboard](https://dashboard.alchemyapi.io/explorer). If you have multiple Alchemy apps make sure to filter by app and select “MyNFT”.
341
341
342
342

343
343
344
-
Here you’ll see a handful of JSON-RPC calls that Hardhat/Ethers made under the hood for us when we called the .deploy() function. Two important ones to call out here are [eth_sendRawTransaction](/developers/docs/apis/json-rpc/#eth_sendrawtransaction), which is the request to actually write our smart contract onto the Goerli chain, and [eth_getTransactionByHash](/developers/docs/apis/json-rpc/#eth_gettransactionbyhash) which is a request to read information about our transaction given the hash (a typical pattern when sending transactions). To learn more about sending transactions, check out this tutorial on [sending transactions using Web3](/developers/tutorials/sending-transactions-using-web3-and-alchemy/).
344
+
Here you’ll see a handful of JSON-RPC calls that Hardhat/Ethers made under the hood for us when we called the .deploy() function. Two important ones to call out here are [eth_sendRawTransaction](/developers/docs/apis/json-rpc/#eth_sendrawtransaction), which is the request to actually write our smart contract onto the Sepolia chain, and [eth_getTransactionByHash](/developers/docs/apis/json-rpc/#eth_gettransactionbyhash) which is a request to read information about our transaction given the hash (a typical pattern when sending transactions). To learn more about sending transactions, check out this tutorial on [sending transactions using Web3](/developers/tutorials/sending-transactions-using-web3-and-alchemy/).
345
345
346
346
That’s all for Part 1 of this tutorial. In [Part 2, we’ll actually interact with our smart contract by minting an NFT](/developers/tutorials/how-to-mint-an-nft/), and in [Part 3 we’ll show you how to view your NFT in your Ethereum wallet](/developers/tutorials/how-to-view-nft-in-metamask/)!
0 commit comments