omni_getbalance
omni_getbalance
调用返回指定地址和资产的代币余额。
调用参数
- address:地址,字符串,必需
- propertyid:资产ID,数值,必需
返回结果
{
"balance" : "n.nnnnnnnn", // (string) the available balance of the address
"reserved" : "n.nnnnnnnn", // (string) the amount reserved by sell offers and accepts
"frozen" : "n.nnnnnnnn" // (string) the amount frozen by the issuer (applies to managed properties only)
}
示例代码
$ omnicore-cli "omni_getbalance", "1EXoDusjGwvnjZUyKkxZ4UHEf77z6A5S4P" 1