Why balance in these API calls remain 0 always? What transactions I need to make to change it?

+1 vote

listwallettransactions 1


{"method":"listwallettransactions","params":[1],"id":1,"chain_name":"chain1"}

[
    {
        "balance" : {
            "amount" : 0.00000000,
            "assets" : [
                {
                    "name" : "asset1",
                    "assetref" : "146-266-15583",
                    "qty" : -100.00000000
                }
            ]
        },
        "myaddresses" : [
            "1BgLQsmsa2QaBe7rNtVGxbPDazJhqAGc1GepuT"
        ],
        "addresses" : [
            "1ZYVy6c8kuchmSmGnSah4drRVDXwuPMBg4T1YS"
        ],
        "permissions" : [
        ],
        "data" : [
        ],
        "confirmations" : 10,
        "blockhash" : "00000e51ab1d8042ba4957898c0661f336848fbb28cf43a71062803f6fa4486d",
        "blockindex" : 1,
        "blocktime" : 1458317860,
        "txid" : "2e5d71422bb79fa2a5da820926af513c1271745f582a9258f38b13e286dc76ea",
        "time" : 1458317849,
        "timereceived" : 1458317849
    }
]

 

getbalance

{"method":"getbalance","params":[],"id":1,"chain_name":"chain1"}

0.00000000

 

asked Mar 18, 2016 by Veera

1 Answer

0 votes

The amount value in these API responses, and the output of the getbalance command, refer to the blockchain's native currency rather than any assets which have been issued on that chain. By default, MultiChain blockchains have no native currency, so these are all zeroes, however you can change this in the blockchain parameters if you wish.

answered Mar 18, 2016 by MultiChain
...