Create NFTs in Solana - MINT your NFTs with Code, Metaplex and Arweave | Serpent Academy | Skillshare

Playback Speed


1.0x


  • 0.5x
  • 0.75x
  • 1x (Normal)
  • 1.25x
  • 1.5x
  • 1.75x
  • 2x

Create NFTs in Solana - MINT your NFTs with Code, Metaplex and Arweave

teacher avatar Serpent Academy, Passion for teaching and learning

Watch this class and thousands more

Get unlimited access to every class
Taught by industry leaders & working professionals
Topics include illustration, design, photography, and more

Watch this class and thousands more

Get unlimited access to every class
Taught by industry leaders & working professionals
Topics include illustration, design, photography, and more

Lessons in This Class

    • 1.

      INTRO MINT & CREATE YOUR OWN NFTS

      1:44

    • 2.

      Introduction to Solana NFTs

      4:12

    • 3.

      Metaplex & NFT Metadata INTRO

      4:47

    • 4.

      Required Tools (VS CODE, NodeJS)

      1:11

    • 5.

      Create and Fund Wallets (Arweave & Solana)

      2:40

    • 6.

      Mint your Own NFTs using Code

      15:57

  • --
  • Beginner level
  • Intermediate level
  • Advanced level
  • All levels

Community Generated

The level is determined by a majority opinion of students who have reviewed this class. The teacher's recommendation is shown until at least 5 student responses are collected.

68

Students

--

Project

About This Class

Learn how to create and mint your Solana NFTs with Arweave and Metaplex.

Solana NFTs are low compute intensive and doesn't rely on mining and energy consumption to validate blocks so they are environmentally friendly.

You will need and Arweave wallet and a Solana Wallet funded with some coins that you can buy on major Exchanges such as Binance.

I created the Code and is Open Source so anyone can use it. The code repository for uploading the Image and JSON to Arweave and to Mint with Metaplex is available here https://github.com/serpentacademy/Upload-and-Mint-Arweave.

We are using typescript and NodeJS.

 

Meet Your Teacher

Teacher Profile Image

Serpent Academy

Passion for teaching and learning

Teacher

Hello, I love coding, science, art, creativity. We are in a great era a Renascence of knowledge is happening right now.

I also love sports and reading, when i was in high school I read poetry a lot, and for sports I was all about basketball and soccer. 

I will love to teach programming and art tutorials, have more than 10 years programming and in robotics.

Let's share this journey together!

 

See full profile

Related Skills

Development Web Development
Level: Intermediate

Class Ratings

Expectations Met?
    Exceeded!
  • 0%
  • Yes
  • 0%
  • Somewhat
  • 0%
  • Not really
  • 0%

Why Join Skillshare?

Take award-winning Skillshare Original Classes

Each class has short lessons, hands-on projects

Your membership supports Skillshare teachers

Learn From Anywhere

Take classes on the go with the Skillshare app. Stream or download to watch on the plane, the subway, or wherever you learn best.

Transcripts

1. INTRO MINT & CREATE YOUR OWN NFTS: Okay, So welcome to this class in which you will learn to create your own LFTs in Salama using a Weibull, there is a pair my web for permanent storage in the blockchain. So NSAIDs are creating new possibilities. Decentralized autonomous organizations, NFT projects and v phi is been building around them FTEs. Why MFT is non-fungible tokens are verifiable assets that lives in the blockchain. Nfp, or creating communities built upon collaboration and value. Projects can work really hard in value or location and projects time with their communities. Nfp holders can have special access to websites, apps, ticket events, real estate, and much more. What you will learn in this class, an introduction to LFTs and LFTs in Solana, mint, Solon and f t is by uploading an image to our WIP, there is a permanent web upload the JSON metadata of the NFT to the permanent storage. Are we a mint using metaplasia? That is your standard? Why Solon LFTs. So lambda is low computing tense and eco-friendly science Solana is a decentralized proof of stake. Cryptocurrency. It doesn't depend for relies on energy consumption to validate transactions. Instead of energy-intensive mining, that harms may do. The proof of stake protects the network and the environment, is unknown or to your teacher and hope you take this course. Thank you. 2. Introduction to Solana NFTs: Welcome to this tutorial and introduction to Solana NFT is what are in FTEs. Nfp stands for non-fungible token, is a unit of data that is verifiable, that leaps forever in the blockchain. That is a public digital ledger, NFV. These can be photos, videos, audio, and much more. Fft's differ from the currencies like going. That because bitcoins are fungible, NFV, these are multipurpose verifiable assets. You can know the owner of the NFT in real-time. What is the purpose of NFT is you can truly verify the owner of an NFT and NFV. These remote the need of middlemen and can be used at beautifully for everything. If you can prove ownership, you can trade. If the project offers real value, then liquidity for the token exists. Nft main users. You can share of a project ownership. You can use NFT for real estate, for a special membership and access to websites and apps, for medical records, intellectual property, for academics, for supply chain, gaming industry, and even for the startups. Bows can validate members or holders, stakeholders and chair revenue in real-time with the people believe in their project. How to create an NFT and Solana with a whip is a permanent web where you can upload images and any kind of binaries forever. So the first step is to block the NFT image. In this project, we are working with NSAIDs with images. Okay, so first you blow the image towards or any other blockchain permanent web. Then you blow the JSON metadata to where we are. Finally, you need to run the smart contract. But he's provided the admitted flex to create an account for the NFT. What is our new type of storage similar to Amazon S3 or Google Cloud Storage, allows you to store data. But the difference is that data you pay once and lives forever in the blockchain. For example, you pay for uploading a two megabyte PNG image will be forever. Weep. And women ecosystem consists of hundreds of computers and potentially can be thousands or millions. So they tasted secure. Nft market examples. For example, Jack Dorsey first tweet was sold for 2.5 million and these Nian cap went for 600 K. There is a market of enthusiast and believers in NF2, not a financial advice. What is metabolomics? Metabolomics is an open source protocol and tools for creating the standards and solutions for working with Solana LFTs. Nfp is maintained using metabolomics are immutable. But why so lambda for the LFTs lemma is environmentally friendly, doesn't use proof of work. It uses Proof of history, which is very good for the environment. So lambda is fast now supporting 50 thousand transactions per second with exceptionally low fees, less than one penny for making a transaction. Lambda is planning being even faster than that with 720 thousand TPS or transactions per second. And so lambda is a scalable, uses proof or history. So it can run in parallel, a lot of contexts in different nodes. You can ruin a lot. So, so lemme supports potentially thousands or even millions of decentralized applications. 3. Metaplex & NFT Metadata INTRO: Okay, so now let's understand metta Plex and NFT metadata. What is metabolomics? Metabolomics is a collection of tools and smart contracts. The assignment to make the process of creating, maintain, launching NFT is a lot easier. In this case, we're using the metacyclics library for NodeJS to mint NFT and use metabolic standard metadata for maintaining the Solana LFTs, metta Plex and the non-fungible tokens standard. Metabolomics is now part of the Solana program library in specific there a standard for non-fungible tokens is an extended definition of LFTs, metta plex NFPA standard definition using ERC seventh 21 on a theorem and FTA standard metadata and includes elements such as the URI. Why metabolomics? Metabolomics have been used to mean more than 0.6 million and LFTs and counting has a total sales now in 2022 of 2.5 billion and has a lot of integration. So is the industry standard. Let's see, some core concepts are metabolites, storefront, storefront T, similar to Shopify or WordPress, where you can easily launch an NFT marketplace and cellular LFTs directly to your customers using your custom domain. So it's a great tool. Also, the candy machine is another great tool of metro plex. It allows you to generate an NFT. They use some concepts of fractions. You can launch your NFT collection and the users can meet the tokens at the same price for everyone. So they mean they paid for the gas fees. They received the tokens. And then you can sell this nFET is on a secondary markets such as magic, even salts, or even new storefront in metabolomics. Talking metadata, the token methylator program provides decorator is through token means. The token is provided with the metadata is through whose account address is a program delivered account, which is a key for this elliptic curve. This is the metadata that has the smart contract that is a minimum on chain metadata that any NFT MozCast according to mete plexi standards. So you must have the key data authority. There is a public key. The mean that is a public key. Data. Once flip it, all sales on these metadata are considered secondary. Nfp is mutable, for definition is immutable. By default is not. The addition nonce. Nonce is for easy calculation of Asians. Okay, So this is an example of a non-fungible token metadata. These JSON is a metadata of the NFT I will going to upload in this tutorial to, or we need to have the name of the NFT, the description, the image, the animation URL, if applies. The external URL, the website of your project, and the attributes is a tray type and value is an array of these type of objects. Also, this is the predictable, we can see in the next page the collection, the name of the collection and the family and the properties here you include in files the URI. And also the type is a PNG for the image file. This NFT can be an image and you can put an array of objects. We are including an unknown type on a video. The category of this NFT is a video. We've taken this. And also the creators is an array of objects with the others As a public key. The chair of the revenue for the Creator. Finally, it's important to say that there is also unchanged representation of a collection. You can have a collection metadata to you or support the key data authority, the mean, divide the pre-money cell happiness if it is mutable, is easy mutable by definition, the additional unknowns, the token standard, the collection. Finally, we have a definition here for the stroke collection if it is verified and the public key. The SPL token means the count. 4. Required Tools (VS CODE, NodeJS): Okay, so the required tools for this tutorial are gonna be Visual Studio Code. There is a code editor and NodeJS that includes NPM. There is a package manager in which we're going to install. They are with dependency and the metallics for main thing and the Solana Web three AS we go to nodejs.org slash EM is latched download, we will pick a long-term support version so you can pick custom installer and you were in Windows or you are in Mac. Also, if you are in Linux, you can download these custom architecture or also if you know your customer architect tool, you can pick a 32-bit system or 64, both for normal user, non-expert users you can pick the customer installer also are going to need the Visual Studio code, but the code liter. So you can pick the customer installer for Windows, for Debian, num2, for Netcat, federal law, and for Mac. So in this case, you will likely come windows and you click on Download. And then you open the files and you you follow the steps to complete the installation. But I won't do it because I already have them installed. 5. Create and Fund Wallets (Arweave & Solana): Welcome to this tutorial. We're going to learn how to create and formed the wireless required for minting LFTs in Solana. So as you know, we will hear Solana wallet and also our WIP. There is a permanent way for storing the image and the metadata of the NFT. Okay, so the first step is to create an arc wallet. Then go to binary or cocoa and wisdom or WIP are unsent to the creative valid. So we go to our web app and you click on the Plus button. You click here on Create a New Wireless. And you copy the passphrase. I will fast-forward until they regenerate. So is generated. You can copy these and you have your wallet. So you need to send you some. Some are weep. So we're going to go to our binaries and we're going to copy this. And we're going to send some are whip. Okay, so here you can see I have my wallet and I sent two transactions from an exchange, in this case binary and you can send some, are we, are I sent to transaction? This is has not arrived yet. And you will need these wallet for uploading the images and the JSON metadata for the NFT. And these files will live forever in the blockchain, bitterly forever. Okay, So for creating assault on a wallet, you can use a phantom wallet. And then you go to an exchange like finance or FTX and use the dollar or any currency, support them to with some Solana and send that Solana to your wallet you have created because you will need these to sign the Megaplex transaction to create the NFT on the Solana chain. Doesn't matter if it's the DevNet are the main net for production and to selling. In a secondary market of NFT S. Or you go to Phantom dot app and you click on Download. Also you can download in the Play Store or the App Store, download your app, and you need to create a wallet. In my case, I'm in a Windows machine, and here I see my extensions. You can pin your phantom wallet or bean. You open. If it's the first time you go to the menu and you click here on Create a new wallet. And you create a new wallet. That's it. Now you need to copy your address and you go to a crypto exchange just as binary or FTX and you send some Solana and you need to boil another and sent to his average. 6. Mint your Own NFTs using Code: Okay, so I created this code that is a tool for uploading the image per week to upload the json, and finally, to maintain the NF2 using multiple eggs. I put here some instructions, as you say. As you know for this course, you establish module yes, that includes the NPM package manager, the Node Package Manager. So here are the instructions. First, you blow the image. To blur the image, you need to put the image on the on the folder, the name of the image in the code. And you run this code using TypeScript in the terminal euro. This. Then you will get the image URL in our WIP when it's uploaded to a permit web. And you will then run the JSON script. You put all the NFT metadata and then do drawn these to upload the JSR. With this JSON. These must be attached to the image. And finally euro, the mean using this Jason and you meet the NFT. You will get and you go SSM, come with the hyphen, and then you go to the Downloads section and you download, depending on your operating system. It works for Mac, Windows or Linux. And then you go to a repo, you copy. Then you go to a terminal. And you, you go to your folder where you want to clone. And you write it, clone and paste these upload and meet with a whip and metabolic. Ben, you need to open your Visual Studio editor. So you click on Open Folder. You will do worse documents. And to meet with a wave, you select the folder. We are in the folder. Here we have an image that is going to be the NFT. Okay, so here we have the project. So let's check the dependencies will require types. Note for the dependencies and we are using are so TypeScript and for the dependencies will use Megaplex. Yes. Are we on these for encoding and decoding? So we open an integrated terminal. We npm install the dependencies. Okay, So it will take awhile, so I will fast-forward. Perfect dependencies have been established. So we import DFS module for file system and also the class from our WIP. And for initializing. These are whip class. We need to, we need to pass the APA comfy. As we can see in the definition. We need the host, the protocol and all these. If we go back when the host, the port, the protocol, the timeout and these returns and usually hear it with tools and with glass. So we there with glass, we can, for example, create a transaction. If we go here to the definition of the root class, we see that we have the gray transaction and create siloed transaction. So now we create the data. Reading these file, that is image, these are wearing of t. We created this image and we are creating a transaction as key the data, and we're passing this image. The tag is content-type image is large PNG, okay, So the transaction tag is a content-type image slash PNG. You can give a J peg, it cetera, or a video dot mp4 and then graduate or with transaction and you sign the transaction, you will need to copy your wallet that you get it from. Let's go for the wallet. You go to your wallet and you click here on Settings and you download the Jason. Jason and you remove the extension through from that will mark the BS code. That is not correct. And then you will sign the transaction where the transaction and the wallet. Then you will wait to post the transaction. The same tour and then posting to the blockchain. And finally you get the response. And if the image is okay, you will get these status 200 status, okay? And data empty and the image URL. So for running the goal, we NP x naught to roll the test suite and then upload image or weep. And we run. It must return the status and also the image URL. And we're going to save it because we need to attach that image to the JSON. Perfect, So we have this image. So we're going to copy and create a new file. We're going to name these two dx, dy. We're saving here the image. Now, let's check in on the URL. If you see our wallet. Let's check the image is not found, so let's wait some seconds. As you can see, the image is being uploaded. Here we can see the transaction and in our wallet and in the website. And this image will live here forever, virtually forever. Now, let's attach this image and let's put all the JSON metadata to plot or wave. Okay, so now let's open these upload, Jason and we have our image. We need to this image patch. So let's, let's explain the code we're also using are we, we are running these asynchronous function with this one. Initializing a wave with this timeout. Then he will put the image URL. Here is a metadata, so type is the image and we have the image URL, the attributes. Here you can put array of objects and you can add more attributes are only put one or, or maybe you want an empty. Then the categories, image, the collection you can put here, Let's put the name for this, the description. So you need these metadata for creating the NFT. So I'm putting all the inflammation for the website. Then the name of the NFT megapixel image, and then the greater others, your Salama valid address. So let me give you one it okay, So let's go dorsal and my wallet. Let's put the password to unlock it. Copy here, as you can see, I have 1313 and 50s. So when we mean this one, we must have 14. So we go back to the code and Q will put the crater is also the chair. This creator has a 100% per share and the seller fee basis. It's five per cent for the for the resale. When everything is okay. We also need the wallet. So let's get it. Okay, So we go to our wallet app and you click here on Settings and then download. You open your copy all the wallet, and you go back paste and you need to remove one flag here to remotely. Perfect. Okay, so once we have all the JSON, the collection, the category image, all the information, we are Matata three, we console log the JSON. We use some parts and this one is reunify and we create them into a transaction. With there we instantiate the object, we create a transaction, and we pass this data. As for tax is a content-type is application json. And we signed the transaction, the transaction and with a wallet. Finally, we posted transaction and we get the response. So let's run this code in terminal. Okay, So now let's run these upload Jason escape. So we write MP x. T is no uploads. So if everything is alright, we must have these transaction ID and the status 200, everything is okay. So if we copy this image, we're going to paste it. Here. Let's check in a Chrome browser. Okay, so here we are in the wallet and we must have a pending application json. So we're going to refresh and speed-up. Perfect, so now these days one is uploading. Here we can see adjacent. We'll check in there. We paste the URL. Here we have our user. Now let's go to the last process that is minting with Megaplex. Okay, so finally, let's check the code for MFT minting. So we are using actions and all the wallet from Megaplex connection, Mickey pair on the cluster API URL from wealthy is these library for base converter. So it's a very simple function as function. Here, we need to paste the URI of the JSON file. We have we calculated in the previous step, we console log that we're minting. We are minting on the main app. Yeah. So let, let's check our in the Chrome browser. Here. As you can see, we have less unblock these wallet in main that we have 13 and FTEs. So we need our private key. So you would click here on Settings, and you will click on Export private key. Okay, so I will not show this because in the private key, what you can do it. We are defining the main net, but you can define here, if you want to test. You can define the DevNet like this. But we are on maintenance. And the key pair is from secret key. With this library based converter with the code, he will paste the string of the private key. And we await. We use actions from we meet NFT. So we need the connection, the wallet, the URI, the H zone, and the max is one. Finally, we mean The MFT by running these asynchronous function. So now let's run this code. Okay, So now let's meet that NFT. So we NP x naught and we mean that NFP. We wait, and if everything is okay, we will have mean in a moment. By the way. So lambda is very fast, very, very fast. So its main thing. So everything went successfully. So I need to have forties and fifties. It must be this 8.14. Is this one a pumpkin? And you can see is the beginning of the Eurozone. Here with the properties. Perfect. This is wonderful. You helped create it. Okay, So now you know how to meet your own LFTs using code. Imagine the possibilities. You can maybe create an NFT marketplace website for minting. The possibilities are limitless, so very thankful to your teacher and happier knee.