0
0
When I called listunspent, it returned the following array. From the array, I thought the balance "mknGW629wzSkfWvgXF23d8eTrqibnhTcrf" is 0.1097. However, when I called getbalance of mknGW629wzSkfWvgXF23d8eTrqibnhTcrf, it returned 0.000000.
Why sum of amounts of listunspnet is not equal with balance of address?
$./bitcoin-cli listunspent
{
"txid": "a82bf11b72d6ef2f5eaa62190914a4c80b8749e075015fda513b899f54d29e06",
"vout": 0,
"address": "mknGW629wzSkfWvgXF23d8eTrqibnhTcrf",
"account": "",
"scriptPubKey": "76a91439be11328b909d0327ef53ae923a9b4dd47420f788ac",
"amount": 0.00000600,
"confirmations": 367,
"spendable": true
},
{
"txid": "b8f8d20946ca52283fbf192c7ebfb817deba260c54911938d59bb64bbb8cb8a7",
"vout": 0,
"address": "mknGW629wzSkfWvgXF23d8eTrqibnhTcrf",
"account": "",
"scriptPubKey": "76a91439be11328b909d0327ef53ae923a9b4dd47420f788ac",
"amount": 0.00000600,
"confirmations": 366,
"spendable": true
},
{
"txid": "b8f8d20946ca52283fbf192c7ebfb817deba260c54911938d59bb64bbb8cb8a7",
"vout": 2,
"address": "mknGW629wzSkfWvgXF23d8eTrqibnhTcrf",
"account": "",
"scriptPubKey": "76a91439be11328b909d0327ef53ae923a9b4dd47420f788ac",
"amount": 0.10968200,
"confirmations": 366,
"spendable": true
},
{
"txid": "b66513ae7aab964e5374d97be206b94e529055523a35d2249ad2917745c921f8",
"vout": 0,
"address": "mknGW629wzSkfWvgXF23d8eTrqibnhTcrf",
"account": "",
"scriptPubKey": "76a91439be11328b909d0327ef53ae923a9b4dd47420f788ac",
"amount": 0.00000600,
"confirmations": 370,
"spendable": true
}
]
$ ./bitcoin-cli getbalance mknGW629wzSkfWvgXF23d8eTrqibnhTcrf
0.00000000
Exactly. What I want is getreceiveaddress RPC. Thanks a lot, Pieter:) $ ./bitcoin-cli getreceivedbyaddress mknGW629wzSkfWvgXF23d8eTrqibnhTcrf 0.43938200 – lalala – 2015-11-29T01:37:06.420