Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Dzhamas on February 03, 2018, 12:45:32 PM



Title: Bitcoind get address info
Post by: Dzhamas on February 03, 2018, 12:45:32 PM
Hello.
I have a server with instaled bitcoind, but can't found a comand to get address's transactions info (hash, type, amount, confirmations).
I need your help with it.

I can't to use third-party API because it's not secure


Title: Re: Bitcoind get address info
Post by: ranochigo on February 03, 2018, 12:51:28 PM
By default, Bitcoin Core does not index any other transactions other than the transactions with outputs that is related to your address. You have to start it up with txindex=1 to index all the transactions.

The concept of addresses doesn't exactly exist in Bitcoin Core. Bitcoin Core only sees transactions and blocks but not addresses specifically. You have to use a script to parse the transactions yourself to figure out which transactions belongs to which address.


Title: Re: Bitcoind get address info
Post by: achow101 on February 03, 2018, 05:25:49 PM
Bitcoin Core does not have the capability to store information about addresses. The reason for this is twofold: on the technical level, addresses do not exist. They do not exist in the protocol. Secondly, having an address index would require a lot of space and extra code that few people would ever use.

Because Bitcoin Core does not maintain an address index, you cannot get any information about just an arbitrary address. You could use some other software which uses Bitcoin Core as a backend in order to construct such a database that does have this information. But Bitcoin Core itself does not have that capability.


Title: Re: Bitcoind get address info
Post by: Dzhamas on February 08, 2018, 02:26:06 AM
Thank you