I'm using the blockchain.info/api/api_receive

I have everything working fine but when I made a payment I can't find (in the callback) the bitcoin address of the payer, only the address of the payee...

callback example:


How can I find out the payers address? Thanks

  • You can't, unfortunately. You have to ask them to give you a separate refund-address.
    – morsecoder
    Commented May 11, 2015 at 14:32

1 Answer 1


You can use blockchain.info's API to look this up, specifically you're looking for the inputs of the "input_transaction_hash" tx:




Please be aware that actually using the "from" addresses (there are often multiple) for any purpose is dangerous and strongly discouraged, please see Can a bitcoin transaction be reversed from the receiving end? for more details.

If you have a need to collect a return address for some purpose, you should consider using BIPs-70/71/72 instead.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.