When calling the API with iota.api.getAccountData(receiveSeed, function(e, accountData)
, the transfer objects I see contain a field called "address" which contains the received address. I would like to also get the address of the sender for zero value transactions. Is this possible?
Asked
Active
Viewed 430 times
5

Helmar
- 1,293
- 1
- 15
- 28

MorningDew
- 183
- 6
1 Answers
4
Zero value transactions don't have a sender address. If you wan't to get them for value transactions you can get them through the input of the bundle which had that transaction.

Muanh
- 56
- 2
-
Thank you for replying, I'm trying to do a PoC of this answer on a different question. https://iota.stackexchange.com/a/575/1382 In this example the users are sending their new addresses to eachother using the tangle, but in order for this to work I need some kind of reference to the sender address to verify that they are the correct person. – MorningDew Jan 02 '18 at 01:13
-
2You can use MAM for this since in MAM you are the only one that is allowed to post to your stream. I know the wallet team is also researching into this. Not sure how far they are pursuing it tho. – Muanh Jan 02 '18 at 11:29