-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inputs and Outputs are null or "" #591
Comments
@abdrasulov Would this be an easy fix? |
It also appears that I have also tested the |
Okay nevermind the TransactionSerializer not working i didn't realize the |
It actually looks like after further digging that Is there a reason we only assign addresses and update the transaction if it is "Our" transaction? This seems like an easy thing to spot by the user hat incoming transactions will have a blank received from address. |
Hey @AndroDevcd , Not all the inputs and outputs may be filled with address field. Sometimes it's impossible. For example, if the input being sent is not in our storage, then we don't try to obtain it from the node. So we try to derive it from the input's signatureScript. For some input/output types like P2PKH or P2WPKHSH it's possible. For others it's not. The reason why we extract addresses only for |
Ahh okay, so then that basically means there's no way to know where the sender's bitcoin address was? I just wanted to be able to show on my app the address that the inbound sats came from but it sounds like this wouldn't be possible? |
Yes. For some (I’d say the most) inputs it’s impossible |
Okay sounds good, also @esen I will be submitting some PR's today for your wallet kit and bitcoin kit libraries that I think adds some nice touches and bug fixes |
When calling the following:
The transactions that are returned have the correct data but it is a toss-up on wether or not they have an address within the transaction inputs or outputs. I have noticed that when a transaction message comes through the address field is "" after it is processed. Where in the code and how are we populating the addresses from a given transaction?
The text was updated successfully, but these errors were encountered: