omni_getwalletaddressbalances
omni_getwalletaddressbalances
调用返回每个钱包地址的所有代币余额信息。
调用参数
- includewatchonly:是否包含只读地址,布尔值,可选,默认值:false
返回结果
[ // (array of JSON objects)
{
"address" : "address", // (string) the address linked to the following balances
"balances" :
[
{
"propertyid" : n, // (number) 资产ID
"name" : "name", // (string) 代币名称
"balance" : "n.nnnnnnnn", // (string) 可用余额
"reserved" : "n.nnnnnnnn" // (string) 保留数量
"frozen" : "n.nnnnnnnn" // (string) 冻结数量
},
...
]
},
...
]
示例代码
$ omnicore-cli "omni_getwalletaddressbalances"