Bitcoin Forum
May 25, 2024, 06:20:24 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoind get address info  (Read 208 times)
Dzhamas (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
February 03, 2018, 12:45:32 PM
 #1

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
ranochigo
Legendary
*
Offline Offline

Activity: 2982
Merit: 4193



View Profile
February 03, 2018, 12:51:28 PM
Last edit: February 03, 2018, 02:23:13 PM by ranochigo
 #2

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.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6657


Just writing some code


View Profile WWW
February 03, 2018, 05:25:49 PM
Merited by bob123 (1)
 #3

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.

Dzhamas (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
February 08, 2018, 02:26:06 AM
 #4

Thank you
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!