DEV Community

Cover image for How to create a motherf*cking NFT using JavaScript

How to create a motherf*cking NFT using JavaScript

Abdul Rauf on December 26, 2021

This blog post is outdated as it is based on V1. Please use thirdweb V2 for your upcoming projects. In my previous post, I explained how you can...
Collapse
 
toddpants profile image
todd

Hey, fascinating article and one that I'm trying to work with to help me test an NFT with js. So far I'm having problems getting test ETH through rinkeby faucet, it appears as though that well is dry, do you know any other ways to get test ETH?

Collapse
 
lilcoderman profile image
Abdul Rauf

Wow that’s so cool! 😍

Try this one: faucets.chain.link/rinkeby

Let me know if it works! Do share your project with me once you’re done. I would love to see it πŸ˜ƒ

Collapse
 
toddpants profile image
todd

Thanks! Just tried it and it looks like it was confirmed, haven't seen it hit my metamask wallet yet but it might take a little while. Will definitely share my project when I'm done!

Thread Thread
 
lilcoderman profile image
Abdul Rauf

Perfect! This one almost always works.

Thread Thread
 
toddpants profile image
todd

This was awesome, thank you so much for posting. FYI I had to add "type":"module" to package.json to be able to run the node scripts. But I was able to create my first NFT!! I am still very new to this and have no idea how to list and/or share it with you though. Do you have any good references for that?

Thread Thread
 
lilcoderman profile image
Abdul Rauf

That’s awesome!

You can copy the address of your NFT and look it up on testnets.opensea.io/

Right now, your NFT is minted on the testnet and not the mainnet.

Let me know if this is what you were asking?

Thread Thread
 
toddpants profile image
todd

Ahhh I see, thank you, here is the link to the collection testnets.opensea.io/collection/rec... thanks again so much!

Thread Thread
 
lilcoderman profile image
Abdul Rauf

You’re welcome! You should be super proud of yourself πŸ˜ƒπŸ‘πŸŽ‰

Collapse
 
gianpaj profile image
Gianfranco P. • Edited

For those who didn't know how to export your private key on Metatask, it's like this:

Account Details -> Export Private key


Collapse
 
lilcoderman profile image
Abdul Rauf

Thanks for helping out! πŸ™

Collapse
 
azutech profile image
Azutech

This is incredible!!

Collapse
 
lilcoderman profile image
Abdul Rauf

Thank you! I'm glad you found this helpful 😁

Collapse
 
ranvirchoudhary profile image
RanvirChoudhary

does this mean after all this i cant sell my own NFTs?

Collapse
 
lilcoderman profile image
Abdul Rauf

On the contrary! You own the contract so you can sell them on any marketplace you want.

Collapse
 
dimamagunov profile image
Dmitry Magunov

Hey, great article!

Added a link to it to the "DIY NFT" Snapshot.

diy-nft.thenftsnapshot.com/