Skip to content

Commit ef39dfd

Browse files
wallet: add GetInfo endpoint (#35)
1 parent e75cd6c commit ef39dfd

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

proto/cusf/mainchain/v1/wallet.proto

+18
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ service WalletService {
5252
returns (ListTransactionsResponse);
5353
rpc ListUnspentOutputs(ListUnspentOutputsRequest)
5454
returns (ListUnspentOutputsResponse);
55+
rpc GetInfo(GetInfoRequest)
56+
returns (GetInfoResponse);
5557
rpc SendTransaction(SendTransactionRequest)
5658
returns (SendTransactionResponse);
5759
rpc UnlockWallet(UnlockWalletRequest)
@@ -219,6 +221,22 @@ message GenerateBlocksResponse {
219221
cusf.common.v1.ReverseHex block_hash = 1;
220222
}
221223

224+
message GetInfoRequest {
225+
}
226+
227+
message GetInfoResponse {
228+
// The network the wallet is on
229+
string network = 1;
230+
231+
// Total number of transactions in the wallet
232+
uint32 transaction_count = 2;
233+
234+
// Number of UTXOs in the wallet.
235+
uint32 unspent_output_count = 3;
236+
237+
map<string, string> descriptors = 4;
238+
}
239+
222240
message ListUnspentOutputsRequest {
223241
}
224242

0 commit comments

Comments
 (0)