Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: tormate on February 13, 2014, 03:46:01 PM



Title: How to get a Transaction out of the blockchain?
Post by: tormate on February 13, 2014, 03:46:01 PM
Is it possible to gt transaction details with the tx Id out of the blockchain using the coindeamon when the Transaction isnt relatet to an wallet account? I mean is there some kind of a blockexplorer function within the Deamon? "gettransaction" works only for my own transactions. Or is there a other way if i dont want to use a public blockexplorer.

Thx



Title: Re: How to get a Transaction out of the blockchain?
Post by: tormate on February 15, 2014, 03:36:14 PM
no ideas?


Title: Re: How to get a Transaction out of the blockchain?
Post by: philipmicklon on February 16, 2014, 07:15:40 AM
Is it possible to gt transaction details with the tx Id out of the blockchain using the coindeamon when the Transaction isnt relatet to an wallet account? I mean is there some kind of a blockexplorer function within the Deamon? "gettransaction" works only for my own transactions. Or is there a other way if i dont want to use a public blockexplorer.

Thx



You would need to use https://github.com/bitcoin-abe/bitcoin-abe


Title: Re: How to get a Transaction out of the blockchain?
Post by: flatfly on February 16, 2014, 08:29:05 AM
You can make getrawtransaction work for any transaction (not just one of your own)
by adding txindex=1 to your conf file.  (This might require re-indexing the blockchain)

I'm using this method in the RPC version of my chainsnort tool, so I've verified that it works.