Token Details

+4 votes
I'm trying to issue NFT token to address with token details

This is my command:

issuetoken 1EsQpe55pvaZ9uecLv4AUJ9Y5nWXoAUbm16qi1 TNI testing 1 0 "{\"json\":{\"Uni\":\"TNI\"}"

The token is issued successfully, but there's no json data. How am I suppose to do?
asked Feb 11, 2023 by Saiko

1 Answer

0 votes

First, I assume you're using Windows, based on how you are escaping quotes.

Second, please note you don't need to wrap your token JSON in a "json":{...} structure, like you would need to do for stream item data. A token details is always JSON.

Finally, when you say there is no JSON data, are you looking in the right place, such as the output of gettokeninfo for this token just created?

answered Feb 12, 2023 by MultiChain
I'm using gettokeninfo, but still no token details. 3

issuetoken 1SqzcnCmhaNaaL39dgusZmFTFh9KwfML749Grv TNI2022 token1 1 0 "{\"hash\":\"144f10d820af5a51\",\"author\":\"John Smith\"}"

(base) C:\mc\multichain231>multichain-cli chain1 issuetoken 1SqzcnCmhaNaaL39dgusZmFTFh9KwfML749Grv TNI2022 token1 1 0
{"method":"issuetoken","params":["1SqzcnCmhaNaaL39dgusZmFTFh9KwfML749Grv","TNI2022","token1",1,0],"id":"32605059-1676704536","chain_name":"chain1"}

e41eecf736fca117ad2f0214499872cbd48e82bdb4832944f097c217c019bab1

(base) C:\mc\multichain231>mc gettokeninfo TNI2022 token1

(base) C:\mc\multichain231>multichain-cli chain1 gettokeninfo TNI2022 token1
{"method":"gettokeninfo","params":["TNI2022","token1"],"id":"62568437-1676704549","chain_name":"chain1"}

{
    "txid" : "e41eecf736fca117ad2f0214499872cbd48e82bdb4832944f097c217c019bab1",
    "qty" : 1,
    "raw" : 1,
    "token" : "token1",
    "details" : {
    }
}
In this line that you included, you're not including the token details parameter:

C:\mc\multichain231>multichain-cli chain1 issuetoken 1SqzcnCmhaNaaL39dgusZmFTFh9KwfML749Grv TNI2022 token1 1 0
I already included token details in this command

issuetoken 1SqzcnCmhaNaaL39dgusZmFTFh9KwfML749Grv TNI2022 token1 1 0 "{\"hash\":\"144f10d820af5a51\",\"author\":\"John Smith\"}"

But the line you mentioned is the result I got from system.
I assume I am looking at a Windows command line? If so, the line starting "C:\mc\multichain231>" usually indicates a command that you entered. Is this not the case?
...