I just started running my own full node. IBD is finished, and I'm now learning how to use bitcoin-cli
.
First I would like to extract all the available information for one or more public addresses from the downloaded blockchain.
For the most part 1, I have not been able to find a way to do this that does not require creating a wallet.
For example, if I run
% bitcoin-cli getaddressinfo 1XPTgDRhN8RFnzniWCddobD9iKZatrvH4
...I get an error message that says
error code: -18
error message:
No wallet is loaded. Load a wallet using loadwallet or create a new one with createwallet. (Note: A \
default wallet is no longer automatically created)
(BTW, I get the same error as long as I provide one argument after getaddressinfo
, irrespective of its value.)
It seems to me that it should not be that difficult to dump all the information that the local blockchain currently has for a given address, without the need for a wallet.
Can this be done with bitcoin-cli
?
If not, is there some other way to do it (without creating a wallet)?
1The only partial exception to this statement is that, if I have a transaction ID, I can use bitcoin-cli gettxout
repeatedly, and look for the desired address(es) in the output. This is not only absurdly laborious, but it requires having a specific transaction ID.