unable to see the custom fields under asset

+1 vote

Hi ,

I created asset with custom fields, but when i listasset with verbose, i dont see the custom fields, can you please help

Creation:

{"method":"issue","params":["1b5ggiQXVdqHRhjrswTfkZaVY5FAJWwWg2UfRp","MyTest",200],"id":1,"accountInfo":{"accountNumber":"5106592210"},"chain_name":"mudassirchain"}

Verification:

[ec2-user@ip-10-40-73-5 mudassirchain]$ multichain-cli mudassirchain listassets "MyTest" true

{"method":"listassets","params":["MyTest",true],"id":1,"chain_name":"mudassirchain"}

 

[

    {

        "name" : "MyTest",

        "issuetxid" : "ab55f3a2555107cda808fed9396ac93806560bd8f188a552976b8bb8f09bf896",

        "assetref" : "397-267-21931",

        "multiple" : 1,

        "units" : 1.00000000,

        "open" : false,

        "details" : {

        },

        "issueqty" : 200.00000000,

        "issueraw" : 200,

        "subscribed" : false,

        "issues" : [

            {

                "txid" : "ab55f3a2555107cda808fed9396ac93806560bd8f188a552976b8bb8f09bf896",

                "qty" : 200.00000000,

                "raw" : 200,

                "details" : {

                },

                "issuers" : [

                    "1WdWSHibt26h7N7erTkNSKKE69B12HSe57LHjH"

                ]

            }

        ]

    }

]

asked Aug 9, 2017 by Mudassir

1 Answer

0 votes

You put the asset metadata at the wrong level of the JSON-RPC request - it needs to be in the right place in the params field rather than at the top level of the request. Please consult the API documentation for the full parameter list for the issue API:

https://www.multichain.com/developers/json-rpc-api/

answered Aug 9, 2017 by MultiChain
...