Use importaddress method with label,but I can't get balance of the address!Is always zero! #12733

issue cyssxt opened this issue on March 20, 2018
  1. cyssxt commented at 8:36 AM on March 20, 2018: none

    When I use importaddress method with address and label,but I can't get balance of label! The issue appears in the testnet! 1、issue And I can use listunspend method to get all transaction about this address!

    2、if i wanna to get balance of a address,do I need to traverse the result of listunspend?

    3、

  2. fanquake added the label RPC/REST/ZMQ on Mar 20, 2018
  3. meshcollider commented at 1:24 PM on March 20, 2018: contributor

    Are you attempting to use getbalance with the label you provided?

  4. cyssxt commented at 1:59 PM on March 20, 2018: none

    yes,it's always zero

  5. cyssxt commented at 1:19 AM on March 28, 2018: none

    I had solve this issue!getbalance need the third param with value true to get balance of watch-only wallet

  6. jnewbery commented at 3:46 PM on March 28, 2018: member

    Thanks @cyssxt . Glad you resolved your issue.

  7. jnewbery closed this on Mar 28, 2018

  8. cyssxt commented at 1:11 AM on March 29, 2018: none

    Thanks!

  9. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me