0

I started local bitcoind client. And started it as RPC server. I know that i able to get balance only for my account address. But how i can work with all existing addresses? How i can get balances and txs? Maybe exist some db for this?

1 Answer 1

1

You can import any address you want to watch or "work with" by navigating to console window and sending the following command:

bitcoin-cli importaddress "address" "account" <rescan>

after blockchain scanning complete you can send

bitcoin-cli listtransactions "account" "Count" "skip" watch-only
bitcoin-cli listtransactions "*" 1 0 true

So you get all transactions.

You can get all commands from bitcoin.org

4
  • Thx. Maybe bitcore-node can help me? If i install it and synch it fully would i be able to work with all addresses?
    – ItsMyLife
    Mar 5, 2018 at 19:01
  • yeah, also you can do that with bitcoin-core but just with transactions. by enabling -txindex
    – Adam
    Mar 5, 2018 at 19:28
  • Ty so much. @Adam with transactions you mean i would be able to get list of transactions(spent and unspent)?
    – ItsMyLife
    Mar 5, 2018 at 22:21
  • to get unspents, you should call listunspents
    – Adam
    Mar 6, 2018 at 9:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.