If you’re watching this video youmost likely heard about this thing called an NFT. After Beeple, a famousdigital creator sold one of his images for a whopping 69 billion dollars, the promotion is all over the place. I had no idea what an NFT is , nor did I know howto create one. So I set out to a little challenge. I find out as much as I can about NFTs, Smart-Contracts, Ethereum, and Decentralized Apps.And program my own NFT crypto collectiblein only three days and freeing it to OpenSea. This is day one! I know that a lot of NFTs runon the Ethereum Blockchain. But I have no Idea, what runningon the blockchain actually signifies. So first things first: I have to find out, what Ethereum actually is and how it cultivates. Ethereum is the second-largestcryptocurrency by grocery capitalisation after Bitcoin and it is a blockchain-basedsoftware platform. You can send and receive Ethereum globally without anythird-party actually doing the move. But there is more to Ethereum than there is toother blockchains like the Bitcoin Blockchain: Etherum is able to run curricula, so-called smart contracts. These little programs are not run on onespecific server, but inside of the blockchain. So while Ethereum is built upon the sametechnology Bitcoin is built on, a Blockchain, the idea behind Ethereum is to decentralizeother kinds of employments and works, from social media networks tomore complex financial agreements.So we have this big network of computers at ourdisposal that we can use to run curricula on. But how can I create a program for it? And how canpeople access it? In the long haul, Ethereum Apps should be everywhere. At least that’s the vison.So instead of talking to one server, apps from the App Store would talk to the Ethereum Blockchain.But how far into this future are we already? Researching further I learnedabout decentralized apps or dApps. dApps use the blockchain asthe storage for their main data.I ascertain dApps for exchangingdifferent cryptocurrencies and taking out loans. There are alsowhole games or virtual lives built, which use the Ethereum Blockchainas their main knowledge base. But your browser can’t justconnect to the Ethereum blockchain. To connect to the Ethereum Blockchainyou need something called a pouch. Your Etherum wallet is your accessportal to the Etherum network. It stores your account on the Ethereum blockchain in theform of a private key. Everyone who has access to that private key has access to your pocketbook whichmeans access to all your data and your ether.There are a lot of different wallets out there, but in order to interact with dAppsone wallet is used a great deal: MetaMask. MetaMask is a wallet that you canintegrate into your web browser via a plugin or download onto yourphone and use the browser integrated inside the MetaMask app to enablewebsites to interact with the blockchain. This is used by dApps runninginside of your browser to send transactions into the blockchainor read data from the blockchain. To interact with Ethereum with your ownwebsite there is a JavaScript library called web3. js which can utilize MetaMask orany other wallet integrated into your browser. So a decentralized app is an app squandering some kindof wallet to connect to the Etherum network. In which it has stored some smartcontracts to run deals, store data, and predict data from the blockchain.But there is an issue. Writing data into theblockchain is not for free. There is something called a gas fee and for all memory-intensivecalculations and for storing data inside the blockchain the initiator of the transactionneeds to pay the fee for the gas that is used. Gas costs cause with the amount of transactionsbeing processed inside of the network. So you can see here how the gas fees haverisen over the last couple of years. And because there is a lot going on right now insidethe network gas is really expensive these days. But that’s a problem for future Daniel I predicts. Next, I need to find out how I can developsmart contracts. I have no idea how the developing environment or a developmentcycle looks like for the blockchain.So what I found out is that smart contractsrun on the EVM, the Ethereum Virtual Machine, and are developed in a programminglanguage called Solidity. Solidity is an object-oriented programminglanguage for writing smart contracts. Time to learn a new programminglanguage. How hard can it be? There are different development environmentsfor Solidity. But one that sounded up over and over again was Truffle.js a JavaScriptdevelopment environment to build smart contracts. And since I want to develop a web app thatinteracts with the blockchain last-minute as well, I figured that using JavaScript foreverything would be a good plan. Another puzzle segment is Ganache. Ganache is asimulated Ethereum blockchain on your computer. Ganache helps to test your smart contracts locally without the need to deploy it to theEthereum main net or one of it’s assessment nets.So the first thing I was also necessary do is toinstall “truffle.js”: npm set truffle The next thing is to initialize anew truffle activity: truffle init. So I started Visual Studio Code now and let’s have a look at the initialcontent of an empty-bellied truffle job. The first folder you see is the contractsfolder, you ensure a migrations.sol document which is the first solidity file we see here. Afterthat, we have a movements folder where we have different migration scripts.As far asI understand it, the migrations contract and the migration scripts work together in orderto get our smart-alecky contracts onto the blockchain. And we have a test folder which we can useto write unit researches for our smart contracts, which will come in handy subsequently I suspect. Andthen another file that’s specific to this truffle project is the truffle-config.js. Asfar as I understand it, it’s used to connect the project with the local blockchain and maybelater with other blockchains we want to deploy to. So the next thing we need is to install ganache, our neighbourhood blockchain to research our smartcontracts. The easiest behavior to do this is to use homebrew at least if you areon MacOS: brew set –cask ganache So the first time you start ganache it lookslike this.To be honest I dallied around with it a little bit before actually recordingthis part of the video. I learned that creating a workspace and actually connecting it toyour smart contract activity, your truffle activity, is a smart way to do because this way you willkeep the accounts on the blockchain static and you don’t need to reconnect your MetaMaskto Ganache every time you start Ganache. So we go “new workspace Ethereum”, we apply it aname, “add project”, navigate to your truffle.js folder, adopt the truffle-config.js, and sounds “open”, “save workspace”. Now you go, this is your private Ethereumblockchain on your machine.You see there are 10 different accounts on your blockchain, eachof these notes got a balance of 100 Ethereum. So next let’s connect Ganache to MetaMask. So Ihave the MetaMask Google Chrome plugin invested on my computer. As you can see here I’m connectedto the Ethereum main net. So the first thing we need to do is connect our MetaMask wallet to ourlocal blockchain. In order to better to do that we click here, hand-picked fixeds, go down to systems andclick on “add network”. We enter a system specify, we register the new rpc url “http :// localhost: 7545 “, the order id is 1337, currencysymbol is ETH, “save”. Now my MetaMask wallet is connected to my Ganacheblockchain. So the next thing we want to do is to connect our MetaMask wallet to one ofour notes. In the Ganache neighbourhood blockchain. To do that, we click on the key icon, we mimic theprivate key, click on the avatar, importation chronicle, and glue the private key now, click importation, voila we have an account with 100 ETH.In order to show that this actually workslet’s send one Ethereum to the second account on our regional blockchain. So we need to copythe public address, “send”, glue 1 ETH, “next”, “confirm”. And here “theres going”, wesee that the balance of the first detail is reduced to 99 ETH and the balanceof the second account is now 101 ETH. That was day one.I learned a lot aboutthe whole ETH ecosystem and I set up my progress environment. Tomorrow, I willimplement my first ever smart contract. If you want to follow my journeyplease, consider subscribing. Thanks to all my patrons for helping flowing thischannel and I see you in one of my other videos. As ever have a lot of fun coders !.
Get in touch for your NFT project