rpc: add gettransaction endpoint to walletrpc sub-server

This commit is contained in:
ErikEk
2023-01-18 13:29:09 +08:00
parent c32edbd732
commit f0bc6d804c
14 changed files with 1130 additions and 745 deletions

View File

@@ -75,6 +75,11 @@ service WalletKit {
*/
rpc NextAddr (AddrRequest) returns (AddrResponse);
/* lncli: `wallet gettx`
GetTransaction returns details for a transaction found in the wallet.
*/
rpc GetTransaction (GetTransactionRequest) returns (lnrpc.Transaction);
/* lncli: `wallet accounts list`
ListAccounts retrieves all accounts belonging to the wallet by default. A
name and key scope filter can be provided to filter through all of the
@@ -556,6 +561,11 @@ message ListAddressesResponse {
repeated AccountWithAddresses account_with_addresses = 1;
}
message GetTransactionRequest {
// The txid of the transaction.
string txid = 1;
}
message SignMessageWithAddrRequest {
// The message to be signed. When using REST, this field must be encoded as
// base64.