
Could native NFTs work on Hive?
I was wandering about the possibility of creating an NFT plugin for HiveD to store in the Main Chain data regarding NFTs, as well as the necessary API to execute operations.
Note: I am not talking about NFTs as those ugly JPEGs with their URLs stored in receipts people were "purchasing" for huge amounts a few years ago. I am talking about the concept of the receipt itself. Of course, every NFT operation would have to be signed by the Active key.
This is just a suggestion for future development. Feel free to comment.
A native Hive NFT could have the following operations:
Create
May cost HIVE, HBD or RC to call.
A unique ID would be generated to be used to reference in future operations.
{
'title': <string>, // required
'description': <string>, // optional
'json_metadata': <string> // optional | custom JSON with attributes of the NFT.
}
Returns:
{
'nft_id': <string>
}
Transfer
May cost HIVE, HBD or RC to call
{
'to': <account>, // required
'nft_id': <string>, // required
'memo': <string> // optional
}
Get
{
'nft_id': <string>, // required
'max_history': <uint>, // optional | default 100
'max_history_time': <epoch> // optional
}
Returns:
{
'owner': <account>,
'since': <epoch>, // or block number
'transfer_memo': <string>,
'title': <string>,
'description': <string>,
'history': <array>
}
History Array:
{
'owner': <account>,
'since': <epoch>, // or block number
'transfer_memo': <string>
}
List
{
'owner': <account> // required
}
Returns Array containing:
{
'nft_id': <string>,
'since': <epoch>, // or block number
'title': <string>,
'description': <string>,
'transfer_memo': <string>,
'json_metadata': <string>
}
Sale
{
'owner': <account>,
'nft_id': <string> // required
'price': <float.3> // required
'asset': <"HIVE"|"HBD"> // required
'expire': <epoch> // required | under a month in the future
}
Returns:
{
'sale_id': <string>
}
Buy(buyer must have balance)
{
'buyer': <account>,
'sale_id': <string> // required
}
Returns Array containing:
{
'transaction_id': <string>
}
If you have a spare vote...
Vote for me as your Hive Witness
If you want to support Brazilian creators...
Vote curator @perfilbrasil for Hive Witness
Leave Could native NFTs work on Hive? to:
Read more #hive posts
Best Posts From Fernando Soder
We have not curated any of fernandosoder's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Fernando Soder
- Just a script I made to back up IPFS files into my personal Kubo.
- Nala loafing in her first winter with us.
- Misadventures in Korea making other "aliens" afraid for their safety.
- Walking through the park, saw happy scene that brought sad memory.
- Why is cli_wallet serializing transactions in HIVE as STEEM?
- Never trust AI to with your testing parameters. Make them manually by yourself before concluding your code is bad.
- All tests successfuly completed.
- Just testing this Hive Betting App
- Não sei se é fake ou se é real. Mas em todo caso, aqui vai a avaliação.
- United States needs to overwrite several parts of the 12th amendment.