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
here.Delegations to @perfilbrasil are rewarded
Delegate your HP to the hive-br.voter account and earn Hive daily!
🔹 Follow our Curation Trail and don't miss voting! 🔹
Your post was manually curated by @crazyphantombr.