Bitcoin Forum

Bitcoin => Project Development => Topic started by: mises on April 26, 2013, 10:11:47 AM



Title: $25 Bounty: simple code snippet to get tx data for an address
Post by: mises on April 26, 2013, 10:11:47 AM
I'm just starting out with BTC / BTC development and some example code would really help get me up to speed.

I'm trying to get transaction data for a particular address (in Ruby). I've posted a bounty for the code snippet I want at the following site. The website doesn't take bitcoins, so 25 USD will have to do:

https://bountify.co/bitcoin-getting-transaction-info-for-an-address

Hopefully it's ok to post it here, sorry the bounty isn't in BTC.


Title: Re: $25 Bounty: simple code snippet to get tx data for an address
Post by: dansmith on April 26, 2013, 10:29:11 AM
If you read this:
https://blockchain.info/api/blockchain_api

You can use this:
https://blockchain.info/address/1dice7fUkz5h4z2wPc1wLMPWgB5mDwKDx?format=json

Extract transaction hash and do this:
https://blockchain.info/tx/7a8dc2b628a30f5b8bcab63106754f1b7568756102e3319361f0b4bd0a715e03?format=json