Skip to content
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

Question, balance of address and payments detection. #56

Open
psypersky opened this issue Dec 14, 2019 · 4 comments
Open

Question, balance of address and payments detection. #56

psypersky opened this issue Dec 14, 2019 · 4 comments

Comments

@psypersky
Copy link

I noticed that there is no way to know the transactions or balance of an address.

How does OpenBazaar detects payments if this feature is not implement?

Thank you.

@psypersky
Copy link
Author

If you get the transactions there is no address on the list of transactions, how can we match a tx with an address when using it?

@placer14
Copy link
Member

I don't recall and I don't easily find those relationships in the codebase. I haven't spent much time in this repo, but maybe @cpacia could fill you in?

@psypersky
Copy link
Author

Thank you, I moved to a full node for the moment but It would be nice to know how OpenBazaar detects new payments exactly. Not a go developer so having problems following the code.

@xloem
Copy link

xloem commented Apr 21, 2020

An alternate workaround might be to run a different wallet if you want balance distinction. You can also read the .spvwallet/wallet.db file with sqlite3 to get complete transaction data.

EDIT: I hacked a quick c++ wrapper for these kinds of things at https://github.com/xloem/spvwalletpp . in combination with something like libbitcoin you might be able to use spvwallet with full functionality of a node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@xloem @placer14 @psypersky and others