Title: how to properly verify that payment was made using txid and blockchain.info API Post by: shark255 on October 30, 2014, 10:07:37 PM How to properly verify that payment was made to specific address with known sum, using txid and blockchain.info API
Use case: User A sent 0.001 BTC to User B. I should verify that user B really received that amount to specific address. For example, we have transaction id feec67bb56dbb5d18c535645879ec65c1d9b2da63e512c89d0ca052f40c4cfc9 . We should verify that payment was made in amount of 5000000 satoshi to address 1C5MT6YVpZF3G6xhp6PFti1ySzAxtpNf86 . I make request to https://blockchain.info/tx/feec67bb56dbb5d18c535645879ec65c1d9b2da63e512c89d0ca052f40c4cfc9?format=json Decode received JSON: Code: stdClass Object Then look into out array and find our address and its amount - thats enough for verifying ? BTW where I can see number of confirmations of this transaction? Title: Re: how to properly verify that payment was made using txid and blockchain.info API Post by: Newar on October 31, 2014, 05:58:57 AM How about this?
Code: https://blockchain.info/q/txresult/feec67bb56dbb5d18c535645879ec65c1d9b2da63e512c89d0ca052f40c4cfc9/1C5MT6YVpZF3G6xhp6PFti1ySzAxtpNf86?confirmations=6 Code: 5000000 edit: https://blockchain.info/q Title: Re: how to properly verify that payment was made using txid and blockchain.info API Post by: shark255 on October 31, 2014, 10:03:38 AM That's simply amazing :) Thanks! RTFM carefully !! ;D
|