Are you searching for an accessible approach to mint tokens? If that’s the case, you’re in the precise place, as this tutorial will present you find out how to mint from Etherscan utilizing a wise contract! As soon as minted, this text reveals you find out how to confirm the transaction utilizing Moralis! If this sounds attention-grabbing, learn on!
Overview
As we go into immediately’s tutorial, we’re going to interrupt down the method into the next sections:
- Conditions
- Mint from a Contract Utilizing Etherscan
- Mint from Etherscan Contract – Did it Work?
By masking the elements talked about above, you may mint from any contract utilizing Etherscan in a matter of moments. If you’re keen to begin, leap straight into the “ Mint from Etherscan” tutorial under!
Until you’ve been residing below a rock, odds are you’ve stumbled upon NFTs in some context. Nonetheless, though you may pay attention to what these tokens entail, you may nonetheless marvel find out how to create certainly one of your individual. If that is so, we’ve obtained you lined. This tutorial reveals you find out how to mint an NFT from Etherscan utilizing a wise contract in simply a few seconds! The article additionally reveals you find out how to confirm the minting transaction utilizing Moralis! In verifying the transaction, you’ll learn to use one of the best Ethereum Web3 API, which Moralis provides.
After ending the tutorial, we can even offer you some fundamentals and clarify the intricacies of Etherscan. We can even cowl what it means to mint a token, adopted by why it’s best to use Etherscan to take action.
Along with wonderful Web3 improvement instruments, Moralis gives different blockchain sources, reminiscent of academic improvement content material. For instance, take a look at our guides on find out how to get contract logs or study to make use of a Web3 JS name contract operate.
To completely leverage these sources, enroll with Moralis. In doing so, you entry a extra seamless developer expertise, enabling you to create Web3 tasks smarter and extra effectively!
Now, with out additional ado, be part of us within the following part as we present you find out how to mint a token from Etherscan!
Tutorial: Mint from Etherscan
To show find out how to mint tokens, we’ll stroll you thru the method of minting an NFT on the Goerli testnet. When you comply with alongside, you may apply the identical rules to mint from Etherscan utilizing a wise contract on every other community!
You’ll be able to take a look at the clip under when you choose watching YouTube movies to study. On this video, certainly one of our software program engineers gives a full breakdown of the method from begin to end:
In any other case, be part of us as we kickstart this mint from Etherscan utilizing a wise contract tutorial by masking the required conditions!
Conditions
Earlier than we begin to mint from Etherscan utilizing a contract, you initially must cope with a couple of conditions, and there are three in whole:
- Create a MetaMask Pockets – The very first thing you will have is a Web3 pockets. For this tutorial, we shall be utilizing MetaMask. As such, when you plan on following alongside, we suggest you do the identical. Together with establishing the pockets, you additionally want so as to add it as a browser extension. To take action, go to “metamask.io” and click on on the ”Obtain” button on the prime proper:

- Get Goerli Testnet Tokens – Since we plan to mint from Etherscan utilizing a contract on Goerli, you additionally want testnet tokens. So, to get Goerli tokens, the simplest method is utilizing Moralis’ testnet taps web page!
- Set Up a Moralis Account – The final prerequisite is a Moralis account. When you nonetheless must, enroll with Moralis instantly!
That covers the required conditions. It’s now time for the central a part of the tutorial, the place we’ll present you find out how to mint from Etherscan utilizing a wise contract!
Mint from a Contract Utilizing Etherscan
This part reveals you find out how to mint from Etherscan utilizing a wise contract handle; let’s get straight into it!
The very first thing you want is the good contract handle you want to use. In our case, we’ll make the most of a contract now we have written ourselves. If you wish to use the identical to comply with alongside, you could find the handle down under:
0xf351614ff81C770CE245609cd3b3eD3dd6E72c2a
Upon getting an handle at your disposal, go to “etherscan.io“. From there, since you’re going to mint from Etherscan with the contract on Goerli, you must swap to this testnet. As such, click on on the Ethereum icon on the prime left, adopted by ”Goerli Testnet”:

Subsequent, navigate to the contract’s web page by inputting the handle within the search discipline and hitting enter. From there, go to the ”Contract” tab and click on on ”Write Contract”:

You’ll instantly discover the ”Hook up with Web3” button with a crimson dot. Proceed by clicking on this button and deciding on the MetaMask different. This may immediate your pockets, permitting you to hook up with Web3:

When related, now you can work together with the operate of the ”Write Contract” part. On this case, because you need to mint from Etherscan and this explicit contract, click on on the ”createToken” choice, adopted by ”Write”:

As quickly as you click on on ”Write”, Etherscan will immediate your pockets, permitting you to signal the transaction for minting the NFT (non-fungible token):

Now that’s it; congratulations! You efficiently minted a token from Etherscan! It’s best to now be capable to view the transaction by navigating to the ”Transactions” tab:

Mint from Etherscan Contract – Did it Work?
Now that you simply efficiently minted a token from Etherscan, this last part reveals you find out how to double-check that every thing labored utilizing Moralis. As such, open your most popular built-in improvement atmosphere (IDE) and arrange a brand new NodeJS mission. With the mission at your disposal, create two new information within the root folder: ”.env” and ”index.js”.
To start with, add a ”MORALIS_KEY” atmosphere variable to the ”.env” file. To take action, you want your Moralis API key, which is why one of many conditions was to create a Moralis account. So, log in to the Moralis admin panel, click on on the ”Web3 APIs” tab, copy the important thing, and enter it into the code:
From there, open ”index.js” and enter the next code snippet:
const Moralis = require("moralis").default const { EvmChain } = require('@moralisweb3/common-evm-utils') require('dotenv').config() Moralis.begin({ apiKey: course of.env.MORALIS_KEY }).then(async()=>{ const response = await Moralis.EvmApi.nft.getContractNFTs({ handle:"REPLACE_ME", chain:EvmChain.GOERLI }) consloe.log(resoinse.uncooked.consequence) })
Within the code above, the central half calls the Moralis ”getContractNFTs” endpoint, passing the contract handle as a parameter. Nonetheless, make sure that to exchange ”REPLACE_ME” with the precise handle of the good contract.
Subsequent, open a brand new terminal, ”cd” into the mission’s root folder, and set up the required dependencies utilizing the next command:
npm i moralis @moralisweb3/common-evm-utils dotenv
Lastly, all that continues to be is to run ”node index.js” within the terminal. Doing so ought to return a response just like the one proven down under:

As you may see from the print display above, the response incorporates many particulars concerning your newest transaction. Now you can use this info to verify that every thing labored as meant!
We hope you loved the tutorial introduced above. Keep in mind to look at the included video when you’d like a extra in-depth information. That mentioned, the tutorial may need piqued your curiosity in Etherscan and what it truly is, and what options it presents. If that’s the case, comply with alongside within the following sections as we discover Etherscan additional, together with what it’s and why it’s best to use this platform.
What’s Etherscan?
Blockchain networks are distributed databases or ledgers shared amongst a group of nodes. They preserve a decentralized document of all transactions occurring on the respective networks, and the clear nature of blockchain expertise ensures that this info is publicly accessible. One approach to entry this info is thru a block explorer. Nonetheless, what precisely is a block explorer?
To adequately reply the query above, allow us to use the Ethereum community for example, the place Etherscan is probably the most outstanding instance. Etherscan is – because the identify signifies – an Ethereum-based block explorer and analytical platform. It’s a free-to-use web site enabling builders to view and analyze all property, balances, and transactions on the Ethereum blockchain.
Via Etherscan’s person interface (UI), it’s also possible to test fuel charges, seek for airdrops, discover block information, and even work together with good contracts. As such, Etherscan is actually a search engine for the Ethereum blockchain.
As you may think about, when growing dapps and different Web3 platforms, a software reminiscent of this may be extraordinarily useful. It’s a method for Web3 programmers to view their good contracts, lookup transaction histories, and so on. Moreover, builders can accomplish that via a neat UI and keep away from querying this info themselves from the Ethereum mainnet.
Etherscan doesn’t solely function the Ethereum mainnet however provides block explorers for the varied testnets alike. You’ll be able to, for example, discover an explorer for each the Goerli and Sepolia testnets! Study extra in regards to the Sepolia testnet within the following article: “What’s the Sepolia Tesnet?”.
These testnet Etherscan block explorers function the identical performance because the mainnet different. They can be utilized to seek for info, view property, work together with good contracts, and so on. As you’ve already seen, this text centered on the latter and confirmed you find out how to mint from Etherscan utilizing a wise contract!
What Does it Imply to Mint?
The time period ”minting” throughout the Web3 world refers back to the course of of making a brand new fungible or non-fungible token (NFT). It is a means of verifying information, creating new blocks, and documenting the knowledge on a blockchain community via a consensus mechanism reminiscent of proof-of-stake (PoS).
There are numerous methods in which you’ll mint tokens. Two outstanding examples are via an NFT market reminiscent of OpenSea or through a block explorer like Etherscan. On this article, we centered on the latter as we illustrated find out how to mint from Etherscan utilizing a wise contract within the tutorial part. That mentioned, how is that this minting course of doable?
As you may keep in mind from the earlier part, Etherscan permits us to work together with good contracts that exist on-chain. Consequently, it turns into doable to entry features inside a contract to carry out sure actions, certainly one of which is likely to be minting a brand new token!
Nonetheless, you is likely to be asking your self, ”why ought to I exploit Etherscan to mint a token?”.
Why Use Etherscan to Mint?
Now that you’ve got a extra profound understanding of Etherscan and what it means to mint a token, you may marvel why it’s best to use Etherscan. Effectively, the first cause is accessibility!
With Etherscan, you may mint a token straight via the block explorer’s UI, and it solely takes a few seconds. Consequently, Etherscan presents a seamless workflow, enabling anybody with little or no prior improvement expertise to mint tokens themselves.
Now that you’ve got a stable understanding of Etherscan and find out how to use it, why not broaden your improvement horizons additional? For instance, take a look at our article exploring find out how to get all NFT transfers!
Abstract – Mint from Contract Utilizing Etherscan
On this article, we taught you find out how to mint an NFT from Etherscan utilizing a wise contract in a few seconds. To make the tutorial as understandable as doable, we broke it down into the next three sections:
- Conditions
- Mint from a Contract Utilizing Etherscan
- Mint from Etherscan Contract – Did it Work?
If in case you have adopted alongside this far, you now know find out how to mint a token utilizing Etherscan. You additionally know find out how to confirm the transaction utilizing Moralis! From right here, now you can apply the identical rules sooner or later to mint any tokens from Etherscan utilizing any good contract!
Nonetheless, when you preferred this tutorial and need to learn related content material, be at liberty to browse the Moralis Web3 weblog. As an example, learn to get token metadata or get all NFT transfers. Furthermore, if you’re severe about turning into a blockchain developer, take a look at different Web3 APIs Moralis presents, such because the Streams API. With this improvement software, you may seamlessly stream on-chain information into your dapps through Moralis webhooks.
Regardless of if you wish to mint tokens or create extra superior Web3 tasks, enroll with Moralis now! With an account, you may leverage the total potential of blockchain expertise and entry a considerably extra accessible developer expertise!