I am giving 0.1 BTC to the person who will provide a WORKING solution on how can I correctly identify the sender's wallet address based on the transaction ID for altcoins (like LEAF, DOGE, LOT, etc.) As they are basically all copies, the solution will work on all.
Basically, I have created a wallet, have the daemon running. I can correctly identify incoming transactions, etc. Sometimes however the sender address is not correctly fetched.
Appreciate swift replies.
There is no such thing as a wallet address. There are only bitcoin (or altcoin) addresses. A wallet can have one or more addresses.
There is no such thing (at the protocol level) as a "sender's address". Bitcoin (and related altcoins) don't send from addresses, then spend unspent outputs. There is no way to reliably determine from a transaction what address you can use to safely send bitcoins (or related altcoins) to the person that sent you the bitcoins.
You should ask the user what address they want the bitcoins (or altcoins) sent to.