Skip to content

Latest commit

 

History

History
29 lines (28 loc) · 1.27 KB

README.md

File metadata and controls

29 lines (28 loc) · 1.27 KB

cli-nft

command line cleos nft contract NFT - Non Funglible Token on vexanium

create

./cleos --url http://api.vex.proit.id:8080 push action stdvexassets create '{"author": "<author account>", "category":"painting","owner": "<owner account>", "idata": "{\"name\":\"I Kadek Oka Sugawa\"}", "mdata": "{\"name\": \"Lukisan Monalisa\"}", "requireclaim": 0}' -p <author account>

example idata more than one

idata is imutable can not be change

string idata = "{\"name\": I Kadek, \"date\": 18/06/2021, \"time\": \"17:11\" }";

list

./cleos --url http://api.vex.proit.id:8080 get table stdvexassets <account> sassets

update

./cleos --url http://api.vex.proit.id:8080 push action stdvexassets update '{"author": "<author account>", "owner": "<owner account>", "assetid": <asset id> "mdata": "{\"name\": \"Red Diamond\"}"}' -p <account>

transfer

./cleos --url http://api.vex.proit.id:8080 push action stdvexassets transfer '{"from": "<account>", "to": "<account>", "assetids": [<assetid>], "memo": "NFT Transfer" }' -p <account_from>

burn

./cleos --url http://api.vex.proit.id:8080 push action stdvexassets burn '{"owner": "<owner account>", "assetids": [<asset id>], "memo":"First NFT Burn"}' -p <owner account>