-
Notifications
You must be signed in to change notification settings - Fork 107
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
getaddressutxos JSON-RPC method #3158
Labels
A-rpc
Area: Remote Procedure Call interfaces
A-state
Area: State / database changes
lightwalletd
any work associated with lightwalletd
Comments
33 tasks
Hey team! Please add your planning poker estimate with ZenHub @conradoplg @dconnolly @gustavovalverde @jvff @oxarbitrage @teor2345 @upbqdn |
3 tasks
ftm1000
added
lightwalletd
any work associated with lightwalletd
and removed
lightwalletd
any work associated with lightwalletd
labels
Mar 16, 2022
teor2345
added
A-rpc
Area: Remote Procedure Call interfaces
A-state
Area: State / database changes
labels
Mar 24, 2022
This was referenced Mar 24, 2022
3 tasks
3 tasks
3 tasks
Returned UTXOs must be sorted by height: Zebra's state response already sorts in chain order. (Which is stricter than height sorting.) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-rpc
Area: Remote Procedure Call interfaces
A-state
Area: State / database changes
lightwalletd
any work associated with lightwalletd
Motivation
lightwalletd
uses thegetaddressutxos
JSON-RPC method in response to wallet queries, so this RPC needs to be fast.Required Fields
The method is documented here: https://zcash.github.io/rpc/getaddressutxos.html
lightwalletd
always uses the multi-address request, withoutchaininfo
: https://github.com/zcash/lightwalletd/blob/master/frontend/service.go#L402Request:
And only these fields are used by
lightwalletd
: https://github.com/zcash/lightwalletd/blob/master/common/common.go#L124Response:
Result Sorting
Returned UTXOs must be sorted by height:
https://github.com/zcash/lightwalletd/blob/68789356fb1a75f62735a529b38389ef08ea7582/walletrpc/service.proto#L120-L121
Tasks
Implementation:
Use the non-finalized and finalized indexes if they are ready (or an empty list if these tickets are still open):
FinalizedState::address_utxos()
Testing:
lightwalletd
The text was updated successfully, but these errors were encountered: