This is a NFT Blockchain application created using Version 5
of lisk-sdk
.
This demonstrates On-Chain and Off-Chain architecture of lisk-sdk
. We will be building an NFT Token to cover up following requirements.
- A blockchain app which have support for.
- NFT Token
- It have an initial value
- It have a purchase margin for auto purchase
- It have only one owner at a time
- Purchase margin can be set to zero meant non-purchasable
- Anyone can create a non-fungible token if he has enough balance
- Owner can transfer token to someone without any profit
- Anyone can purchase a NFT if satisfy given purchase margin
- NFT Token
- List of available Non-Fungible Tokens should be accessible
cd blockchain_app && npm i --registry https://npm.lisk.io
cd frontend_app && npm i --registry https://npm.lisk.io
cd blockchain_app; node index.js
cd frontend_app; npm start
Follow these steps to test it:
- In the UI from speed dial, click on first option to get some random account.
- Copy the address and passphrase to somewhere else.
- Now choose second option from speed dial and transfer funds to that account. You can use genesis account passphrase for it.
- Repeat the above steps to create another account.
- Now choose third option from speed dial to create an NFT Token.
- Provide initial value, purchase margin, fee and the passphrase of first account to sign the transaction.
- Once that is done and you refresh the page, you will see an NFT token on the home page.
- Later you can click on the purchase button of the token test the purchase transaction.
- Note the frontend app is not auto-refreshed right now. Once you notice the block height change you have to refresh it manually.
- The frontend app is not keeping track of account nonce, so try to sending one transaction from one account in a block.
- The NFT token transfer transaction is not yet implemented in frontend, feel free to contribute.