getreceivedbyaddress should return error for non-IsMine addresses #10921

issue sipa opened this issue on July 24, 2017
  1. sipa commented at 10:11 PM on July 24, 2017: member

    Currently, the getreceivedbyaddress RPC will return a value of 0 if a non-IsMine address is passed in. This is confusing, and should probably return an error, as it's a situation the caller should be aware of.

    Not doing this leads to confusion, with people assuming it can query non-wallet addresses.

    See also https://bitcoin.stackexchange.com/questions/57065/why-bitcoin-cli-getreceivedbyaddress-always-returns-0

  2. jonasschnelli added the label Wallet on Jul 25, 2017
  3. promag commented at 12:08 AM on December 7, 2017: member

    Close?

  4. sipa commented at 12:11 AM on December 7, 2017: member

    Fixed by #11055.

  5. sipa closed this on Dec 7, 2017

  6. MarcoFalke locked this on Sep 8, 2021
Contributors
Labels

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-19 09:15 UTC

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