I made a transaction with bitcoind. I sent money from address A to address B.
At the client which holds the address B, when I issue "gettransaction" passing the transaction id, it shows information like the type (which is receive), the address which received, and the amount. But it does not tell where the BTC came from.
How can I know which address sent the BTC?
Side question: If I sent BTC back to this address, will it work like a "devolution"? (Which is my objective here)
From Bitcoin stackexchange, (pseudo-code)