Import all existing addresses in local bitcoind

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?

ItsMyLife

Posted 2018-03-05T17:15:31.373

Reputation: 35

Answers

0

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

Adam

Posted 2018-03-05T17:15:31.373

Reputation: 3 215

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 2018-03-05T19:01:46.753

yeah, also you can do that with bitcoin-core but just with transactions. by enabling -txindexAdam 2018-03-05T19:28:48.200

Ty so much. @Adam with transactions you mean i would be able to get list of transactions(spent and unspent)?ItsMyLife 2018-03-05T22:21:22.613

to get unspents, you should call listunspentsAdam 2018-03-06T09:55:02.423