"Smart Contracts - Smart contracts are simply programs stored on a blockchain that run when predetermined conditions are met. They typically are used to automate the execution of an agreement so that all participants can be immediately certain of the outcome, without any intermediary's involvement or time loss."
Used in Ethereum, Solana and many other famous blockchain companies !
For this week I worked with smart contracts, in short smart contracts are programs stored on a blockchain that run when predetermined conditions are met. This is a part of the blockchain that makes famous companies such as Ethereum possible. In the specific case of #Ethereum, smart contracts are used to validate a transaction. Therefore this week I started looking into how to code a smart contract in solidity. I decided to choose solidity simply because it is one of the simplest platforms to use, and due to the fact that I am still a beginner, using solidity will make the process more efficient and simpler.
To start I am currently working on creating an abstract token through code and then using it to conduct my “fake” transaction. This is the first step to making a smart contract and is one of the most difficult steps due to my lack of experience in coding. I struggled quite a bit while coding this due to me being unfamiliar with C++, and this made me a little frustrated since it took me around 4 hours to complete the coding of the token. However I feel that through the difficulty I faced in the beginning, the rest of the process was and will be easier, now that I have a better feel for the coding language.
Next step I'm taking in the process is coding the actual action in the contract. For now I have a basic understanding on what I want the contract to do, next I need to work with how to code it.
Be on the lookout for a new update soon!
Comments