I do have a similar system going on...
{other msg: maybe we could talk about this? }I am asking the user to POST their desired receivers address because I am not able to extract the address from the payment.
Here's what I have:
I am receiving BTC from couple of friends now !!
looking to do a btc-startup
please some advice or help...
Note: using jsonRPCClient and PHP (the basic process could be similar to others lang.. I believe)
The website asks them to POST their address before sending, because I am not able to extract automatically the Senders Address.
1. Create a new address for each sender, using ->getnewaddress('payments');
2. Then I listen for payment with -->getreceivedbyaddress()
This way I do not obtain any information about the Tx
3. Find the txid ?? how?
4. While a better method is found, using ->listtransactions() to read a received tx
5. I can see the senders address is inside this array, How can I be sure I extract the "correct" senders address without comparing it with the one POSTed via the website?