Fetch sender address from transaction

39 views
Skip to first unread message

Ahmad Vatani

unread,
Aug 17, 2021, 8:08:33 AM8/17/21
to bitcoinj
How can i find the sender address of a given transaction?
After lots of search, i find getFromAddress method that removed at last release
Thanks in advance

googl...@schildbach.de

unread,
Aug 17, 2021, 8:09:38 AM8/17/21
to bitcoinj
There is no "from address" in Bitcoin. Also see https://en.bitcoin.it/wiki/From_address

Ahmad Vatani

unread,
Aug 22, 2021, 12:41:29 PM8/22/21
to bitcoinj
Why we see some address inputs for every transaction in bitcoin explorers?
for example look at:
https://mempool.space/testnet/tx/76cf5c56f99ec68af09816743d534d0fc4049c45ddf65a91b9e23cfe02a4c47c

This transaction has 4 input address, and also in CoinsSentEventListener on bitcoinj walletAppKit wallet, i got attached debug log.
So we have some information about input addresses.

My question is: how can i detect input address(es) from given transaction!
Screen Shot 2021-08-22 at 13.44.54.png
Reply all
Reply to author
Forward
0 new messages