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

[golang] get an addresse's full tx history #938

Closed
r3nor opened this issue Jul 5, 2024 · 2 comments
Closed

[golang] get an addresse's full tx history #938

r3nor opened this issue Jul 5, 2024 · 2 comments

Comments

@r3nor
Copy link

r3nor commented Jul 5, 2024

i am trying to use this as a golang module for an app, I am wondering how can I get the full tx history for an address without needing to go through all addresses of the wallet, just get that addresse's transactions

@r3nor
Copy link
Author

r3nor commented Jul 5, 2024

i have tried using listbyaddress, but the function from the btcwallet client does not accept any parameter and it returns all the tx from all addressses

@Roasbeef
Copy link
Member

You can use the address index in btcd for that: https://github.com/btcsuite/btcd/blob/master/sample-btcd.conf#L276-L278

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

2 participants