getaddressbalance JSON-RPC method #3157
Labels
A-rpc
Area: Remote Procedure Call interfaces
A-state
Area: State / database changes
lightwalletd
any work associated with lightwalletd
Motivation
lightwalletd
uses thegetaddressbalance
JSON-RPC method.Required Fields
The method is documented here: https://zcash.github.io/rpc/getaddressbalance.html
lightwalletd
always uses the multi-address argument format: https://github.com/zcash/lightwalletd/blob/master/frontend/service.go#L341Request:
And only these fields are used by
lightwalletd
: https://github.com/zcash/lightwalletd/blob/master/common/common.go#L124Response:
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_balance()
Testing:
lightwalletd
The text was updated successfully, but these errors were encountered: