rpc: add gettransaction endpoint to walletrpc sub-server

This commit is contained in:
ErikEk committed 2023-12-10 22:14:12 +01:00
1 parent c32edbd732
commit f0bc6d804c
14 files changed
+1130 -745

No files matched your search

+10
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.