walletrpc: add ListLeases

This commit is contained in:
Joost Jager
2021-03-12 09:26:24 +01:00
parent b8e54fffbf
commit 9398220568
10 changed files with 411 additions and 123 deletions

View File

@@ -32,6 +32,11 @@ service WalletKit {
*/
rpc ReleaseOutput (ReleaseOutputRequest) returns (ReleaseOutputResponse);
/*
ListLeases lists all currently locked utxos.
*/
rpc ListLeases (ListLeasesRequest) returns (ListLeasesResponse);
/*
DeriveNextKey attempts to derive the *next* key within the key family
(account in BIP43) specified. This method should return the next external
@@ -603,3 +608,11 @@ message FinalizePsbtResponse {
// The fully signed and finalized transaction in the raw wire format.
bytes raw_final_tx = 2;
}
message ListLeasesRequest {
}
message ListLeasesResponse {
// The list of currently leased utxos.
repeated UtxoLease locked_utxos = 1;
}