Skip to content

Commit a62c28f

Browse files
committed
wallet: add GetInfo endpoint
1 parent 91bf6c1 commit a62c28f

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)
@@ -61,6 +63,22 @@ service WalletService {
6163
returns (stream GenerateBlocksResponse);
6264
}
6365

66+
message GetInfoRequest {
67+
}
68+
69+
message GetInfoResponse {
70+
// The network the wallet is on
71+
string network = 1;
72+
73+
// Total number of transactions in the wallet
74+
uint32 transaction_count = 2;
75+
76+
// Number of UTXOs in the wallet.
77+
uint32 unspent_output_count = 3;
78+
79+
map<string, string> descriptors = 4;
80+
}
81+
6482
message BroadcastWithdrawalBundleRequest {
6583
google.protobuf.UInt32Value sidechain_id = 1;
6684
google.protobuf.BytesValue transaction = 2;

0 commit comments

Comments
 (0)