12
2
How do I find out which addresses are the inputs of a given transaction, given its transaction ID? I know there is a way, as satoshidice.com uses this. I would like to do this with own software and not rely on some third party provider, which could easily kill their service.
EDIT:
Basically I'm creating a PHP project, where I need to find out when a new transaction arrives and which address sent it. So I need a way to get a notification or start a PHP script (called with needed variables [txid, sender address, receiving address, value]) when a new transaction arrives.
I edited your question to tidy up the grammar and spelling, but also fixed the assumption that there is a single "sender" address. It's quite possible that the transaction has multiple inputs and multiple outputs, so there's no single "sender". SatoshiDICE doesn't care; it just sends the winnings to one of the sending addresses. – Chris Moore – 2012-06-05T10:41:18.413