Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: sd on August 17, 2012, 02:20:39 PM



Title: Getting transaction information
Post by: sd on August 17, 2012, 02:20:39 PM
What's the most pragmatic way to get information on a given transaction? For a transaction ID I'd like to know how much and from which addresses BTC was sent, and how much and to which addresses it was sent to. This should include transactions that have not made their way into the block chain yet.

I'd rather not rely on an external service like a block explorer. Running my own seems like overkill but it's an option. I noticed ABE doesn't tell me about uncommitted transactions anyway. The standard client seems limited in the information it gives out. i.e. it won't tell me the address bitcoins sent to me are sent from and won't tell me anything about transactions I'm not involved in.



Title: Re: Getting transaction information
Post by: gmaxwell on August 17, 2012, 06:27:33 PM
and won't tell me anything about transactions I'm not involved in.
Run bitcoin from get.  Use getrawtransaction with the decode flag.


Title: Re: Getting transaction information
Post by: sd on August 17, 2012, 07:33:18 PM
and won't tell me anything about transactions I'm not involved in.
Run bitcoin from get.  Use getrawtransaction with the decode flag.

Wait, what?

I'm using bitcoind from https://github.com/gavinandresen/bitcoin-git.git
This claims to be version 69900 and I see no reference to getrawtransactions.

What git repo are you guys using?


Title: Re: Getting transaction information
Post by: gmaxwell on August 17, 2012, 08:36:12 PM
Wait, what?
I'm using bitcoind from https://github.com/gavinandresen/bitcoin-git.git
This claims to be version 69900 and I see no reference to getrawtransactions.
What git repo are you guys using?

Thats not the official git repository, thats gavin's staging repository for pull requests.

The official one is https://github.com/bitcoin/bitcoin/ and it's linked from the bitcoin.org site.

The RPC is getrawtransaction (no s).