-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[wip]: add get transaction rpc #7378
Conversation
Hello @gnapoli23, I'm glad you are taking a look into this 🎉 I see you are creating a new rpc endpoint + cmd just for this. I wonder if we could rather extend what we already have. It can be worth to discuss what possibilities we have here and their trade off before committing to one of them There are two things to take into account: a) The rpc interface and server implementation For a) we could could reuse the current GetTransactionsRequest used in
For b) we use
If we follow this route, we would not only solve this issue, but give an rpc interface to fetch multiple txs in one call, with multiple filters and even be able to fetch txs that are not ours. NOTE: The NOTE 2: To use the NOTE 3: I guess |
@gnapoli23, @positiveblue This is my code so far (#7381). Please go ahead copy whatever you need. There are still things to be done. Fix the hash conversion, calculate the correct transaction amount, list our inputs and code cleanup ofc. Maybe add tests too. |
@gnapoli23 Reach out if you have any questions and I might be able to help. |
@ErikEk Thanks sir for sharing your code and for your willingness to help, really appreciate it.
This is just something i was thinking during looking again at protobuf definition, thought it could be another way to separate the search criteria. If not needed, I will go straight as suggested! Thanks. |
@gnapoli23 That would break the api since we assume message index 1 and 2 to be start and end height. And I think GetTransactions shouldn't require any parameters to be set. Plus I can see the utility of both tx hashes and height interval parameters being available at the same time. |
@ErikEk yes I guess so. |
@gnapoli23 How is going? Do you need help finishing this. I don't mind completing it if you have a busy schedule. |
This reverts commit 5f3f6eb66cb1b3b4e1d1fe8ff28000bdd02aeab4.
update refs to `GetTransactions` and `ListTransactionDetails`
e5eee6f
to
df38c3d
Compare
Hi @ErikEk and thanks for contacting me, I have been OOO in previous weeks so I couldn't work on it. I just rebased on top of latest commit, and I'll check where I was before being unavailable. I will try to move forward and if I run into any problems I will ping you. Thanks a lot for your support, really appreciate 🙏🏻 |
It has been three months now. I will continue the work in #7654. |
Replaced by #7654. |
Fixes #7323
Adds
get transaction
rpc call to get info about a specific transaction related to the wallet.This is a draft (I'm a newcomer), I would like to know if I'm on the right track or not.