Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User ListRecievedByAddress instead of GetRecievedByAddress #23

Open
zmanian opened this issue Aug 28, 2017 · 0 comments
Open

User ListRecievedByAddress instead of GetRecievedByAddress #23

zmanian opened this issue Aug 28, 2017 · 0 comments

Comments

@zmanian
Copy link
Contributor

zmanian commented Aug 28, 2017

bitcoinRPC.py->get_fund_status might better served by listreceivedbyaddress instead of getreceivedbyaddress

Listrecievedbyaddress provides richer information on incoming txs allowing for the program to provide feedback like fund tx in mempool but unconfirmed.

Json structure of listrecievedbyaddress results

Result:
[
  {
    "involvesWatchonly" : true,        (bool) Only returned if imported addresses were involved in transaction
    "address" : "receivingaddress",  (string) The receiving address
    "account" : "accountname",       (string) DEPRECATED. The account of the receiving address. The default account is "".
    "amount" : x.xxx,                  (numeric) The total amount in BTC received by the address
    "confirmations" : n,               (numeric) The number of confirmations of the most recent transaction included
    "label" : "label",               (string) A comment for the address/transaction, if any
    "txids": [
       n,                                (numeric) The ids of transactions received with the address 
       ...
    ]
  }
  ,...
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant