In this tutorial, we will learn how to make
NFT refers to a non-fungible token, which is a special type of token that represents a unique asset. As the name non-fungible implies, every single token is unique. And this uniqueness of NFT opens up new horizons of asset digitization. For example, it can be used to represent digital art, game items, or any kind of unique assets and allow people to trade them. For more information, refer to this article.
Klaystagram, every token represents users' unique pictures. When a user uploads a photo, a unique token is created containing the image data and its ownership. All transactions are recorded on the blockchain, so even service providers do not have control over the uploaded photos. Considering the purpose of this tutorial, only core functions will be implemented. After finishing this tutorial, try adding some more cool features and make your own creative service.
There are three main features.
Photo upload Users can upload photos along with descriptions on the Klaytn blockchain. The photos will be tokenized.
Feed Users can see all the photos uploaded on the blockchain.
Transfer ownership The owner of the photo can transfer ownership of the photo to another user, and the transaction will be shown in the ownership history.
Source Code Complete source code can be found on GitHub at https://github.com/klaytn/klaystagram
We will build a web application that interacts with smart contracts. To complete this tutorial, the audience is expected to be familiar with the following concepts.
Basic knowledge and experience in Solidity development are recommended. However, any experienced SW developer should be able to complete the task by following the step-by-step guideline of this tutorial.
Anyone interested in ERC-721 Tokens.
Klaystagram BApp is tested in the following environment.
MacOS Mojave 10.14.5
Node 10.16.0 (LTS)