fix metrics page
This commit is contained in:
parent
d376623276
commit
bd433c1259
23 changed files with 12151 additions and 239 deletions
|
|
@ -3,10 +3,10 @@
|
|||
// tslint:disable
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||
import { ChainNotifier } from "./chainnotifier.js";
|
||||
import type { BlockEpoch } from "./chainnotifier.js";
|
||||
import type { SpendEvent } from "./chainnotifier.js";
|
||||
import type { SpendRequest } from "./chainnotifier.js";
|
||||
import { ChainNotifier } from "./chainnotifier";
|
||||
import type { BlockEpoch } from "./chainnotifier";
|
||||
import type { SpendEvent } from "./chainnotifier";
|
||||
import type { SpendRequest } from "./chainnotifier";
|
||||
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
||||
import type { ConfEvent } from "./chainnotifier";
|
||||
import type { ConfRequest } from "./chainnotifier";
|
||||
|
|
|
|||
|
|
@ -3,18 +3,18 @@
|
|||
// tslint:disable
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||
import { Invoices } from "./invoices.js";
|
||||
import type { LookupInvoiceMsg } from "./invoices.js";
|
||||
import type { SettleInvoiceResp } from "./invoices.js";
|
||||
import type { SettleInvoiceMsg } from "./invoices.js";
|
||||
import type { AddHoldInvoiceResp } from "./invoices.js";
|
||||
import type { AddHoldInvoiceRequest } from "./invoices.js";
|
||||
import type { CancelInvoiceResp } from "./invoices.js";
|
||||
import type { CancelInvoiceMsg } from "./invoices.js";
|
||||
import { Invoices } from "./invoices";
|
||||
import type { LookupInvoiceMsg } from "./invoices";
|
||||
import type { SettleInvoiceResp } from "./invoices";
|
||||
import type { SettleInvoiceMsg } from "./invoices";
|
||||
import type { AddHoldInvoiceResp } from "./invoices";
|
||||
import type { AddHoldInvoiceRequest } from "./invoices";
|
||||
import type { CancelInvoiceResp } from "./invoices";
|
||||
import type { CancelInvoiceMsg } from "./invoices";
|
||||
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
||||
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
||||
import type { Invoice } from "./lightning.js";
|
||||
import type { SubscribeSingleInvoiceRequest } from "./invoices.js";
|
||||
import type { Invoice } from "./lightning";
|
||||
import type { SubscribeSingleInvoiceRequest } from "./invoices";
|
||||
import type { ServerStreamingCall } from "@protobuf-ts/runtime-rpc";
|
||||
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// @generated by protobuf-ts 2.8.1
|
||||
// @generated from protobuf file "invoices.proto" (package "invoicesrpc", syntax proto3)
|
||||
// tslint:disable
|
||||
import { Invoice } from "./lightning.js";
|
||||
import { Invoice } from "./lightning";
|
||||
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
||||
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
||||
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
||||
|
|
@ -13,7 +13,7 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
|
|||
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
||||
import { MESSAGE_TYPE } from "@protobuf-ts/runtime";
|
||||
import { MessageType } from "@protobuf-ts/runtime";
|
||||
import { RouteHint } from "./lightning.js";
|
||||
import { RouteHint } from "./lightning";
|
||||
/**
|
||||
* @generated from protobuf message invoicesrpc.CancelInvoiceMsg
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,155 +3,138 @@
|
|||
// tslint:disable
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||
import { Lightning } from "./lightning.js";
|
||||
import type { ListAliasesResponse } from "./lightning.js";
|
||||
import type { ListAliasesRequest } from "./lightning.js";
|
||||
import type { CustomMessage } from "./lightning.js";
|
||||
import type { SubscribeCustomMessagesRequest } from "./lightning.js";
|
||||
import type { SendCustomMessageResponse } from "./lightning.js";
|
||||
import type { SendCustomMessageRequest } from "./lightning.js";
|
||||
import type { RPCMiddlewareRequest } from "./lightning.js";
|
||||
import type { RPCMiddlewareResponse } from "./lightning.js";
|
||||
import type { CheckMacPermResponse } from "./lightning.js";
|
||||
import type { CheckMacPermRequest } from "./lightning.js";
|
||||
import type { ListPermissionsResponse } from "./lightning.js";
|
||||
import type { ListPermissionsRequest } from "./lightning.js";
|
||||
import type { DeleteMacaroonIDResponse } from "./lightning.js";
|
||||
import type { DeleteMacaroonIDRequest } from "./lightning.js";
|
||||
import type { ListMacaroonIDsResponse } from "./lightning.js";
|
||||
import type { ListMacaroonIDsRequest } from "./lightning.js";
|
||||
import type { BakeMacaroonResponse } from "./lightning.js";
|
||||
import type { BakeMacaroonRequest } from "./lightning.js";
|
||||
import type { ChannelBackupSubscription } from "./lightning.js";
|
||||
import type { RestoreBackupResponse } from "./lightning.js";
|
||||
import type { RestoreChanBackupRequest } from "./lightning.js";
|
||||
import type { VerifyChanBackupResponse } from "./lightning.js";
|
||||
import type { ChanBackupSnapshot } from "./lightning.js";
|
||||
import type { ChanBackupExportRequest } from "./lightning.js";
|
||||
import type { ChannelBackup } from "./lightning.js";
|
||||
import type { ExportChannelBackupRequest } from "./lightning.js";
|
||||
import type { ForwardingHistoryResponse } from "./lightning.js";
|
||||
import type { ForwardingHistoryRequest } from "./lightning.js";
|
||||
import type { PolicyUpdateResponse } from "./lightning.js";
|
||||
import type { PolicyUpdateRequest } from "./lightning.js";
|
||||
import type { FeeReportResponse } from "./lightning.js";
|
||||
import type { FeeReportRequest } from "./lightning.js";
|
||||
import type { DebugLevelResponse } from "./lightning.js";
|
||||
import type { DebugLevelRequest } from "./lightning.js";
|
||||
import type { GraphTopologyUpdate } from "./lightning.js";
|
||||
import type { GraphTopologySubscription } from "./lightning.js";
|
||||
import type { StopResponse } from "./lightning.js";
|
||||
import type { StopRequest } from "./lightning.js";
|
||||
import type { NetworkInfo } from "./lightning.js";
|
||||
import type { NetworkInfoRequest } from "./lightning.js";
|
||||
import type { QueryRoutesResponse } from "./lightning.js";
|
||||
import type { QueryRoutesRequest } from "./lightning.js";
|
||||
import type { NodeInfo } from "./lightning.js";
|
||||
import type { NodeInfoRequest } from "./lightning.js";
|
||||
import type { ChannelEdge } from "./lightning.js";
|
||||
import type { ChanInfoRequest } from "./lightning.js";
|
||||
import type { NodeMetricsResponse } from "./lightning.js";
|
||||
import type { NodeMetricsRequest } from "./lightning.js";
|
||||
import type { ChannelGraph } from "./lightning.js";
|
||||
import type { ChannelGraphRequest } from "./lightning.js";
|
||||
import type { DeleteAllPaymentsResponse } from "./lightning.js";
|
||||
import type { DeleteAllPaymentsRequest } from "./lightning.js";
|
||||
import type { DeletePaymentResponse } from "./lightning.js";
|
||||
import type { DeletePaymentRequest } from "./lightning.js";
|
||||
import type { ListPaymentsResponse } from "./lightning.js";
|
||||
import type { ListPaymentsRequest } from "./lightning.js";
|
||||
import type { PayReq } from "./lightning.js";
|
||||
import type { PayReqString } from "./lightning.js";
|
||||
import type { InvoiceSubscription } from "./lightning.js";
|
||||
import type { PaymentHash } from "./lightning.js";
|
||||
import type { ListInvoiceResponse } from "./lightning.js";
|
||||
import type { ListInvoiceRequest } from "./lightning.js";
|
||||
import type { AddInvoiceResponse } from "./lightning.js";
|
||||
import type { Invoice } from "./lightning.js";
|
||||
import type { SendToRouteRequest } from "./lightning.js";
|
||||
import type { SendResponse } from "./lightning.js";
|
||||
import type { SendRequest } from "./lightning.js";
|
||||
import type { AbandonChannelResponse } from "./lightning.js";
|
||||
import type { AbandonChannelRequest } from "./lightning.js";
|
||||
import type { CloseStatusUpdate } from "./lightning.js";
|
||||
import type { CloseChannelRequest } from "./lightning.js";
|
||||
import type { ChannelAcceptRequest } from "./lightning.js";
|
||||
import type { ChannelAcceptResponse } from "./lightning.js";
|
||||
import { Lightning } from "./lightning";
|
||||
import type { LookupHtlcResolutionResponse } from "./lightning";
|
||||
import type { LookupHtlcResolutionRequest } from "./lightning";
|
||||
import type { ListAliasesResponse } from "./lightning";
|
||||
import type { ListAliasesRequest } from "./lightning";
|
||||
import type { CustomMessage } from "./lightning";
|
||||
import type { SubscribeCustomMessagesRequest } from "./lightning";
|
||||
import type { SendCustomMessageResponse } from "./lightning";
|
||||
import type { SendCustomMessageRequest } from "./lightning";
|
||||
import type { RPCMiddlewareRequest } from "./lightning";
|
||||
import type { RPCMiddlewareResponse } from "./lightning";
|
||||
import type { CheckMacPermResponse } from "./lightning";
|
||||
import type { CheckMacPermRequest } from "./lightning";
|
||||
import type { ListPermissionsResponse } from "./lightning";
|
||||
import type { ListPermissionsRequest } from "./lightning";
|
||||
import type { DeleteMacaroonIDResponse } from "./lightning";
|
||||
import type { DeleteMacaroonIDRequest } from "./lightning";
|
||||
import type { ListMacaroonIDsResponse } from "./lightning";
|
||||
import type { ListMacaroonIDsRequest } from "./lightning";
|
||||
import type { BakeMacaroonResponse } from "./lightning";
|
||||
import type { BakeMacaroonRequest } from "./lightning";
|
||||
import type { ChannelBackupSubscription } from "./lightning";
|
||||
import type { RestoreBackupResponse } from "./lightning";
|
||||
import type { RestoreChanBackupRequest } from "./lightning";
|
||||
import type { VerifyChanBackupResponse } from "./lightning";
|
||||
import type { ChanBackupSnapshot } from "./lightning";
|
||||
import type { ChanBackupExportRequest } from "./lightning";
|
||||
import type { ChannelBackup } from "./lightning";
|
||||
import type { ExportChannelBackupRequest } from "./lightning";
|
||||
import type { ForwardingHistoryResponse } from "./lightning";
|
||||
import type { ForwardingHistoryRequest } from "./lightning";
|
||||
import type { PolicyUpdateResponse } from "./lightning";
|
||||
import type { PolicyUpdateRequest } from "./lightning";
|
||||
import type { FeeReportResponse } from "./lightning";
|
||||
import type { FeeReportRequest } from "./lightning";
|
||||
import type { DebugLevelResponse } from "./lightning";
|
||||
import type { DebugLevelRequest } from "./lightning";
|
||||
import type { GraphTopologyUpdate } from "./lightning";
|
||||
import type { GraphTopologySubscription } from "./lightning";
|
||||
import type { StopResponse } from "./lightning";
|
||||
import type { StopRequest } from "./lightning";
|
||||
import type { NetworkInfo } from "./lightning";
|
||||
import type { NetworkInfoRequest } from "./lightning";
|
||||
import type { QueryRoutesResponse } from "./lightning";
|
||||
import type { QueryRoutesRequest } from "./lightning";
|
||||
import type { NodeInfo } from "./lightning";
|
||||
import type { NodeInfoRequest } from "./lightning";
|
||||
import type { ChannelEdge } from "./lightning";
|
||||
import type { ChanInfoRequest } from "./lightning";
|
||||
import type { NodeMetricsResponse } from "./lightning";
|
||||
import type { NodeMetricsRequest } from "./lightning";
|
||||
import type { ChannelGraph } from "./lightning";
|
||||
import type { ChannelGraphRequest } from "./lightning";
|
||||
import type { DeleteAllPaymentsResponse } from "./lightning";
|
||||
import type { DeleteAllPaymentsRequest } from "./lightning";
|
||||
import type { DeletePaymentResponse } from "./lightning";
|
||||
import type { DeletePaymentRequest } from "./lightning";
|
||||
import type { ListPaymentsResponse } from "./lightning";
|
||||
import type { ListPaymentsRequest } from "./lightning";
|
||||
import type { PayReq } from "./lightning";
|
||||
import type { PayReqString } from "./lightning";
|
||||
import type { InvoiceSubscription } from "./lightning";
|
||||
import type { PaymentHash } from "./lightning";
|
||||
import type { ListInvoiceResponse } from "./lightning";
|
||||
import type { ListInvoiceRequest } from "./lightning";
|
||||
import type { AddInvoiceResponse } from "./lightning";
|
||||
import type { Invoice } from "./lightning";
|
||||
import type { SendToRouteRequest } from "./lightning";
|
||||
import type { SendResponse } from "./lightning";
|
||||
import type { SendRequest } from "./lightning";
|
||||
import type { AbandonChannelResponse } from "./lightning";
|
||||
import type { AbandonChannelRequest } from "./lightning";
|
||||
import type { CloseStatusUpdate } from "./lightning";
|
||||
import type { CloseChannelRequest } from "./lightning";
|
||||
import type { ChannelAcceptRequest } from "./lightning";
|
||||
import type { ChannelAcceptResponse } from "./lightning";
|
||||
import type { DuplexStreamingCall } from "@protobuf-ts/runtime-rpc";
|
||||
import type { FundingStateStepResp } from "./lightning.js";
|
||||
import type { FundingTransitionMsg } from "./lightning.js";
|
||||
import type { BatchOpenChannelResponse } from "./lightning.js";
|
||||
import type { BatchOpenChannelRequest } from "./lightning.js";
|
||||
import type { OpenStatusUpdate } from "./lightning.js";
|
||||
import type { ChannelPoint } from "./lightning.js";
|
||||
import type { OpenChannelRequest } from "./lightning.js";
|
||||
import type { ClosedChannelsResponse } from "./lightning.js";
|
||||
import type { ClosedChannelsRequest } from "./lightning.js";
|
||||
import type { ChannelEventUpdate } from "./lightning.js";
|
||||
import type { ChannelEventSubscription } from "./lightning.js";
|
||||
import type { ListChannelsResponse } from "./lightning.js";
|
||||
import type { ListChannelsRequest } from "./lightning.js";
|
||||
import type { PendingChannelsResponse } from "./lightning.js";
|
||||
import type { PendingChannelsRequest } from "./lightning.js";
|
||||
import type { GetRecoveryInfoResponse } from "./lightning.js";
|
||||
import type { GetRecoveryInfoRequest } from "./lightning.js";
|
||||
import type { GetInfoResponse } from "./lightning.js";
|
||||
import type { GetInfoRequest } from "./lightning.js";
|
||||
import type { PeerEvent } from "./lightning.js";
|
||||
import type { PeerEventSubscription } from "./lightning.js";
|
||||
import type { ListPeersResponse } from "./lightning.js";
|
||||
import type { ListPeersRequest } from "./lightning.js";
|
||||
import type { DisconnectPeerResponse } from "./lightning.js";
|
||||
import type { DisconnectPeerRequest } from "./lightning.js";
|
||||
import type { ConnectPeerResponse } from "./lightning.js";
|
||||
import type { ConnectPeerRequest } from "./lightning.js";
|
||||
import type { VerifyMessageResponse } from "./lightning.js";
|
||||
import type { VerifyMessageRequest } from "./lightning.js";
|
||||
import type { SignMessageResponse } from "./lightning.js";
|
||||
import type { SignMessageRequest } from "./lightning.js";
|
||||
import type { NewAddressResponse } from "./lightning.js";
|
||||
import type { NewAddressRequest } from "./lightning.js";
|
||||
import type { SendManyResponse } from "./lightning.js";
|
||||
import type { SendManyRequest } from "./lightning.js";
|
||||
import type { Transaction } from "./lightning.js";
|
||||
import type { FundingStateStepResp } from "./lightning";
|
||||
import type { FundingTransitionMsg } from "./lightning";
|
||||
import type { BatchOpenChannelResponse } from "./lightning";
|
||||
import type { BatchOpenChannelRequest } from "./lightning";
|
||||
import type { OpenStatusUpdate } from "./lightning";
|
||||
import type { ChannelPoint } from "./lightning";
|
||||
import type { OpenChannelRequest } from "./lightning";
|
||||
import type { ClosedChannelsResponse } from "./lightning";
|
||||
import type { ClosedChannelsRequest } from "./lightning";
|
||||
import type { ChannelEventUpdate } from "./lightning";
|
||||
import type { ChannelEventSubscription } from "./lightning";
|
||||
import type { ListChannelsResponse } from "./lightning";
|
||||
import type { ListChannelsRequest } from "./lightning";
|
||||
import type { PendingChannelsResponse } from "./lightning";
|
||||
import type { PendingChannelsRequest } from "./lightning";
|
||||
import type { GetRecoveryInfoResponse } from "./lightning";
|
||||
import type { GetRecoveryInfoRequest } from "./lightning";
|
||||
import type { GetDebugInfoResponse } from "./lightning";
|
||||
import type { GetDebugInfoRequest } from "./lightning";
|
||||
import type { GetInfoResponse } from "./lightning";
|
||||
import type { GetInfoRequest } from "./lightning";
|
||||
import type { PeerEvent } from "./lightning";
|
||||
import type { PeerEventSubscription } from "./lightning";
|
||||
import type { ListPeersResponse } from "./lightning";
|
||||
import type { ListPeersRequest } from "./lightning";
|
||||
import type { DisconnectPeerResponse } from "./lightning";
|
||||
import type { DisconnectPeerRequest } from "./lightning";
|
||||
import type { ConnectPeerResponse } from "./lightning";
|
||||
import type { ConnectPeerRequest } from "./lightning";
|
||||
import type { VerifyMessageResponse } from "./lightning";
|
||||
import type { VerifyMessageRequest } from "./lightning";
|
||||
import type { SignMessageResponse } from "./lightning";
|
||||
import type { SignMessageRequest } from "./lightning";
|
||||
import type { NewAddressResponse } from "./lightning";
|
||||
import type { NewAddressRequest } from "./lightning";
|
||||
import type { SendManyResponse } from "./lightning";
|
||||
import type { SendManyRequest } from "./lightning";
|
||||
import type { Transaction } from "./lightning";
|
||||
import type { ServerStreamingCall } from "@protobuf-ts/runtime-rpc";
|
||||
import type { ListUnspentResponse } from "./lightning.js";
|
||||
import type { ListUnspentRequest } from "./lightning.js";
|
||||
import type { SendCoinsResponse } from "./lightning.js";
|
||||
import type { SendCoinsRequest } from "./lightning.js";
|
||||
import type { EstimateFeeResponse } from "./lightning.js";
|
||||
import type { EstimateFeeRequest } from "./lightning.js";
|
||||
import type { TransactionDetails } from "./lightning.js";
|
||||
import type { GetTransactionsRequest } from "./lightning.js";
|
||||
import type { ChannelBalanceResponse } from "./lightning.js";
|
||||
import type { ChannelBalanceRequest } from "./lightning.js";
|
||||
import type { ListUnspentResponse } from "./lightning";
|
||||
import type { ListUnspentRequest } from "./lightning";
|
||||
import type { SendCoinsResponse } from "./lightning";
|
||||
import type { SendCoinsRequest } from "./lightning";
|
||||
import type { EstimateFeeResponse } from "./lightning";
|
||||
import type { EstimateFeeRequest } from "./lightning";
|
||||
import type { TransactionDetails } from "./lightning";
|
||||
import type { GetTransactionsRequest } from "./lightning";
|
||||
import type { ChannelBalanceResponse } from "./lightning";
|
||||
import type { ChannelBalanceRequest } from "./lightning";
|
||||
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
||||
import type { WalletBalanceResponse } from "./lightning.js";
|
||||
import type { WalletBalanceRequest } from "./lightning.js";
|
||||
import type { WalletBalanceResponse } from "./lightning";
|
||||
import type { WalletBalanceRequest } from "./lightning";
|
||||
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
||||
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
||||
|
||||
import type { GetDebugInfoResponse } from "./lightning.js";
|
||||
import type { GetDebugInfoRequest } from "./lightning.js";
|
||||
|
||||
import type { LookupHtlcResolutionResponse } from "./lightning.js";
|
||||
import type { LookupHtlcResolutionRequest } from "./lightning.js";
|
||||
//
|
||||
// Comments in this file will be directly parsed into the API
|
||||
// Documentation as descriptions of the associated method, message, or field.
|
||||
// These descriptions should go right above the definition of the object, and
|
||||
// can be in either block or // comment format.
|
||||
//
|
||||
// An RPC method can be matched to an lncli command by placing a line in the
|
||||
// beginning of the description in exactly the following format:
|
||||
// lncli: `methodname`
|
||||
//
|
||||
// Failure to specify the exact name of the command will cause documentation
|
||||
// generation to fail.
|
||||
//
|
||||
// More information on how exactly the gRPC documentation is generated from
|
||||
// this proto file can be found here:
|
||||
// https://github.com/lightninglabs/lightning-api
|
||||
//
// Comments in this file will be directly parsed into the API
// Documentation as descriptions of the associated method, message, or field.
// These descriptions should go right above the definition of the object, and
// can be in either block or // comment format.
//
// An RPC method can be matched to an lncli command by placing a line in the
// beginning of the description in exactly the following format:
// lncli: `methodname`
//
// Failure to specify the exact name of the command will cause documentation
// generation to fail.
//
// More information on how exactly the gRPC documentation is generated from
// this proto file can be found here:
// https://github.com/lightninglabs/lightning-api
|
||||
|
||||
/**
|
||||
* Lightning is the main RPC server of the daemon.
|
||||
|
|
@ -327,7 +310,7 @@ export interface ILightningClient {
|
|||
* @generated from protobuf rpc: GetRecoveryInfo(lnrpc.GetRecoveryInfoRequest) returns (lnrpc.GetRecoveryInfoResponse);
|
||||
*/
|
||||
getRecoveryInfo(input: GetRecoveryInfoRequest, options?: RpcOptions): UnaryCall<GetRecoveryInfoRequest, GetRecoveryInfoResponse>;
|
||||
// TODO(roasbeef): merge with below with bool?
|
||||
// TODO(roasbeef): merge with below with bool?
|
||||
|
||||
/**
|
||||
* lncli: `pendingchannels`
|
||||
|
|
@ -847,22 +830,7 @@ export interface ILightningClient {
|
|||
*/
|
||||
lookupHtlcResolution(input: LookupHtlcResolutionRequest, options?: RpcOptions): UnaryCall<LookupHtlcResolutionRequest, LookupHtlcResolutionResponse>;
|
||||
}
|
||||
//
|
||||
// Comments in this file will be directly parsed into the API
|
||||
// Documentation as descriptions of the associated method, message, or field.
|
||||
// These descriptions should go right above the definition of the object, and
|
||||
// can be in either block or // comment format.
|
||||
//
|
||||
// An RPC method can be matched to an lncli command by placing a line in the
|
||||
// beginning of the description in exactly the following format:
|
||||
// lncli: `methodname`
|
||||
//
|
||||
// Failure to specify the exact name of the command will cause documentation
|
||||
// generation to fail.
|
||||
//
|
||||
// More information on how exactly the gRPC documentation is generated from
|
||||
// this proto file can be found here:
|
||||
// https://github.com/lightninglabs/lightning-api
|
||||
//
// Comments in this file will be directly parsed into the API
// Documentation as descriptions of the associated method, message, or field.
// These descriptions should go right above the definition of the object, and
// can be in either block or // comment format.
//
// An RPC method can be matched to an lncli command by placing a line in the
// beginning of the description in exactly the following format:
// lncli: `methodname`
//
// Failure to specify the exact name of the command will cause documentation
// generation to fail.
//
// More information on how exactly the gRPC documentation is generated from
// this proto file can be found here:
// https://github.com/lightninglabs/lightning-api
|
||||
|
||||
/**
|
||||
* Lightning is the main RPC server of the daemon.
|
||||
|
|
@ -1097,7 +1065,7 @@ export class LightningClient implements ILightningClient, ServiceInfo {
|
|||
const method = this.methods[17], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetRecoveryInfoRequest, GetRecoveryInfoResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
// TODO(roasbeef): merge with below with bool?
|
||||
// TODO(roasbeef): merge with below with bool?
|
||||
|
||||
/**
|
||||
* lncli: `pendingchannels`
|
||||
|
|
|
|||
|
|
@ -3,40 +3,40 @@
|
|||
// tslint:disable
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||
import { Router } from "./router.js";
|
||||
import type { UpdateChanStatusResponse } from "./router.js";
|
||||
import type { UpdateChanStatusRequest } from "./router.js";
|
||||
import type { ForwardHtlcInterceptRequest } from "./router.js";
|
||||
import type { ForwardHtlcInterceptResponse } from "./router.js";
|
||||
import { Router } from "./router";
|
||||
import type { UpdateChanStatusResponse } from "./router";
|
||||
import type { UpdateChanStatusRequest } from "./router";
|
||||
import type { ForwardHtlcInterceptRequest } from "./router";
|
||||
import type { ForwardHtlcInterceptResponse } from "./router";
|
||||
import type { DuplexStreamingCall } from "@protobuf-ts/runtime-rpc";
|
||||
import type { PaymentStatus } from "./router.js";
|
||||
import type { HtlcEvent } from "./router.js";
|
||||
import type { SubscribeHtlcEventsRequest } from "./router.js";
|
||||
import type { BuildRouteResponse } from "./router.js";
|
||||
import type { BuildRouteRequest } from "./router.js";
|
||||
import type { QueryProbabilityResponse } from "./router.js";
|
||||
import type { QueryProbabilityRequest } from "./router.js";
|
||||
import type { SetMissionControlConfigResponse } from "./router.js";
|
||||
import type { SetMissionControlConfigRequest } from "./router.js";
|
||||
import type { GetMissionControlConfigResponse } from "./router.js";
|
||||
import type { GetMissionControlConfigRequest } from "./router.js";
|
||||
import type { XImportMissionControlResponse } from "./router.js";
|
||||
import type { XImportMissionControlRequest } from "./router.js";
|
||||
import type { QueryMissionControlResponse } from "./router.js";
|
||||
import type { QueryMissionControlRequest } from "./router.js";
|
||||
import type { ResetMissionControlResponse } from "./router.js";
|
||||
import type { ResetMissionControlRequest } from "./router.js";
|
||||
import type { HTLCAttempt } from "./lightning.js";
|
||||
import type { SendToRouteResponse } from "./router.js";
|
||||
import type { SendToRouteRequest } from "./router.js";
|
||||
import type { RouteFeeResponse } from "./router.js";
|
||||
import type { RouteFeeRequest } from "./router.js";
|
||||
import type { PaymentStatus } from "./router";
|
||||
import type { HtlcEvent } from "./router";
|
||||
import type { SubscribeHtlcEventsRequest } from "./router";
|
||||
import type { BuildRouteResponse } from "./router";
|
||||
import type { BuildRouteRequest } from "./router";
|
||||
import type { QueryProbabilityResponse } from "./router";
|
||||
import type { QueryProbabilityRequest } from "./router";
|
||||
import type { SetMissionControlConfigResponse } from "./router";
|
||||
import type { SetMissionControlConfigRequest } from "./router";
|
||||
import type { GetMissionControlConfigResponse } from "./router";
|
||||
import type { GetMissionControlConfigRequest } from "./router";
|
||||
import type { XImportMissionControlResponse } from "./router";
|
||||
import type { XImportMissionControlRequest } from "./router";
|
||||
import type { QueryMissionControlResponse } from "./router";
|
||||
import type { QueryMissionControlRequest } from "./router";
|
||||
import type { ResetMissionControlResponse } from "./router";
|
||||
import type { ResetMissionControlRequest } from "./router";
|
||||
import type { HTLCAttempt } from "./lightning";
|
||||
import type { SendToRouteResponse } from "./router";
|
||||
import type { SendToRouteRequest } from "./router";
|
||||
import type { RouteFeeResponse } from "./router";
|
||||
import type { RouteFeeRequest } from "./router";
|
||||
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
||||
import type { TrackPaymentsRequest } from "./router.js";
|
||||
import type { TrackPaymentRequest } from "./router.js";
|
||||
import type { TrackPaymentsRequest } from "./router";
|
||||
import type { TrackPaymentRequest } from "./router";
|
||||
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
||||
import type { Payment } from "./lightning.js";
|
||||
import type { SendPaymentRequest } from "./router.js";
|
||||
import type { Payment } from "./lightning";
|
||||
import type { SendPaymentRequest } from "./router";
|
||||
import type { ServerStreamingCall } from "@protobuf-ts/runtime-rpc";
|
||||
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// @generated by protobuf-ts 2.8.1
|
||||
// @generated from protobuf file "router.proto" (package "routerrpc", syntax proto3)
|
||||
// tslint:disable
|
||||
import { Payment } from "./lightning.js";
|
||||
import { Payment } from "./lightning";
|
||||
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
||||
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
||||
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
||||
|
|
@ -13,13 +13,13 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
|
|||
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
||||
import { MESSAGE_TYPE } from "@protobuf-ts/runtime";
|
||||
import { MessageType } from "@protobuf-ts/runtime";
|
||||
import { ChannelPoint } from "./lightning.js";
|
||||
import { HTLCAttempt } from "./lightning.js";
|
||||
import { Failure_FailureCode } from "./lightning.js";
|
||||
import { Failure } from "./lightning.js";
|
||||
import { Route } from "./lightning.js";
|
||||
import { FeatureBit } from "./lightning.js";
|
||||
import { RouteHint } from "./lightning.js";
|
||||
import { ChannelPoint } from "./lightning";
|
||||
import { HTLCAttempt } from "./lightning";
|
||||
import { Failure_FailureCode } from "./lightning";
|
||||
import { Failure } from "./lightning";
|
||||
import { Route } from "./lightning";
|
||||
import { FeatureBit } from "./lightning";
|
||||
import { RouteHint } from "./lightning";
|
||||
/**
|
||||
* @generated from protobuf message routerrpc.SendPaymentRequest
|
||||
*/
|
||||
|
|
|
|||
394
proto/lnd/signer.client.ts
Normal file
394
proto/lnd/signer.client.ts
Normal file
|
|
@ -0,0 +1,394 @@
|
|||
// @generated by protobuf-ts 2.8.1
|
||||
// @generated from protobuf file "signer.proto" (package "signrpc", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||
import { Signer } from "./signer";
|
||||
import type { MuSig2CleanupResponse } from "./signer";
|
||||
import type { MuSig2CleanupRequest } from "./signer";
|
||||
import type { MuSig2CombineSigResponse } from "./signer";
|
||||
import type { MuSig2CombineSigRequest } from "./signer";
|
||||
import type { MuSig2SignResponse } from "./signer";
|
||||
import type { MuSig2SignRequest } from "./signer";
|
||||
import type { MuSig2RegisterNoncesResponse } from "./signer";
|
||||
import type { MuSig2RegisterNoncesRequest } from "./signer";
|
||||
import type { MuSig2SessionResponse } from "./signer";
|
||||
import type { MuSig2SessionRequest } from "./signer";
|
||||
import type { MuSig2CombineKeysResponse } from "./signer";
|
||||
import type { MuSig2CombineKeysRequest } from "./signer";
|
||||
import type { SharedKeyResponse } from "./signer";
|
||||
import type { SharedKeyRequest } from "./signer";
|
||||
import type { VerifyMessageResp } from "./signer";
|
||||
import type { VerifyMessageReq } from "./signer";
|
||||
import type { SignMessageResp } from "./signer";
|
||||
import type { SignMessageReq } from "./signer";
|
||||
import type { InputScriptResp } from "./signer";
|
||||
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
||||
import type { SignResp } from "./signer";
|
||||
import type { SignReq } from "./signer";
|
||||
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
||||
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
||||
/**
|
||||
* Signer is a service that gives access to the signing functionality of the
|
||||
* daemon's wallet.
|
||||
*
|
||||
* @generated from protobuf service signrpc.Signer
|
||||
*/
|
||||
export interface ISignerClient {
|
||||
/**
|
||||
*
|
||||
* SignOutputRaw is a method that can be used to generated a signature for a
|
||||
* set of inputs/outputs to a transaction. Each request specifies details
|
||||
* concerning how the outputs should be signed, which keys they should be
|
||||
* signed with, and also any optional tweaks. The return value is a fixed
|
||||
* 64-byte signature (the same format as we use on the wire in Lightning).
|
||||
*
|
||||
* If we are unable to sign using the specified keys, then an error will be
|
||||
* returned.
|
||||
*
|
||||
* @generated from protobuf rpc: SignOutputRaw(signrpc.SignReq) returns (signrpc.SignResp);
|
||||
*/
|
||||
signOutputRaw(input: SignReq, options?: RpcOptions): UnaryCall<SignReq, SignResp>;
|
||||
/**
|
||||
*
|
||||
* ComputeInputScript generates a complete InputIndex for the passed
|
||||
* transaction with the signature as defined within the passed SignDescriptor.
|
||||
* This method should be capable of generating the proper input script for both
|
||||
* regular p2wkh/p2tr outputs and p2wkh outputs nested within a regular p2sh
|
||||
* output.
|
||||
*
|
||||
* Note that when using this method to sign inputs belonging to the wallet,
|
||||
* the only items of the SignDescriptor that need to be populated are pkScript
|
||||
* in the TxOut field, the value in that same field, and finally the input
|
||||
* index.
|
||||
*
|
||||
* @generated from protobuf rpc: ComputeInputScript(signrpc.SignReq) returns (signrpc.InputScriptResp);
|
||||
*/
|
||||
computeInputScript(input: SignReq, options?: RpcOptions): UnaryCall<SignReq, InputScriptResp>;
|
||||
/**
|
||||
*
|
||||
* SignMessage signs a message with the key specified in the key locator. The
|
||||
* returned signature is fixed-size LN wire format encoded.
|
||||
*
|
||||
* The main difference to SignMessage in the main RPC is that a specific key is
|
||||
* used to sign the message instead of the node identity private key.
|
||||
*
|
||||
* @generated from protobuf rpc: SignMessage(signrpc.SignMessageReq) returns (signrpc.SignMessageResp);
|
||||
*/
|
||||
signMessage(input: SignMessageReq, options?: RpcOptions): UnaryCall<SignMessageReq, SignMessageResp>;
|
||||
/**
|
||||
*
|
||||
* VerifyMessage verifies a signature over a message using the public key
|
||||
* provided. The signature must be fixed-size LN wire format encoded.
|
||||
*
|
||||
* The main difference to VerifyMessage in the main RPC is that the public key
|
||||
* used to sign the message does not have to be a node known to the network.
|
||||
*
|
||||
* @generated from protobuf rpc: VerifyMessage(signrpc.VerifyMessageReq) returns (signrpc.VerifyMessageResp);
|
||||
*/
|
||||
verifyMessage(input: VerifyMessageReq, options?: RpcOptions): UnaryCall<VerifyMessageReq, VerifyMessageResp>;
|
||||
/**
|
||||
*
|
||||
* DeriveSharedKey returns a shared secret key by performing Diffie-Hellman key
|
||||
* derivation between the ephemeral public key in the request and the node's
|
||||
* key specified in the key_desc parameter. Either a key locator or a raw
|
||||
* public key is expected in the key_desc, if neither is supplied, defaults to
|
||||
* the node's identity private key:
|
||||
* P_shared = privKeyNode * ephemeralPubkey
|
||||
* The resulting shared public key is serialized in the compressed format and
|
||||
* hashed with sha256, resulting in the final key length of 256bit.
|
||||
*
|
||||
* @generated from protobuf rpc: DeriveSharedKey(signrpc.SharedKeyRequest) returns (signrpc.SharedKeyResponse);
|
||||
*/
|
||||
deriveSharedKey(input: SharedKeyRequest, options?: RpcOptions): UnaryCall<SharedKeyRequest, SharedKeyResponse>;
|
||||
/**
|
||||
*
|
||||
* MuSig2CombineKeys (experimental!) is a stateless helper RPC that can be used
|
||||
* to calculate the combined MuSig2 public key from a list of all participating
|
||||
* signers' public keys. This RPC is completely stateless and deterministic and
|
||||
* does not create any signing session. It can be used to determine the Taproot
|
||||
* public key that should be put in an on-chain output once all public keys are
|
||||
* known. A signing session is only needed later when that output should be
|
||||
* _spent_ again.
|
||||
*
|
||||
* NOTE: The MuSig2 BIP is not final yet and therefore this API must be
|
||||
* considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming
|
||||
* releases. Backward compatibility is not guaranteed!
|
||||
*
|
||||
* @generated from protobuf rpc: MuSig2CombineKeys(signrpc.MuSig2CombineKeysRequest) returns (signrpc.MuSig2CombineKeysResponse);
|
||||
*/
|
||||
muSig2CombineKeys(input: MuSig2CombineKeysRequest, options?: RpcOptions): UnaryCall<MuSig2CombineKeysRequest, MuSig2CombineKeysResponse>;
|
||||
/**
|
||||
*
|
||||
* MuSig2CreateSession (experimental!) creates a new MuSig2 signing session
|
||||
* using the local key identified by the key locator. The complete list of all
|
||||
* public keys of all signing parties must be provided, including the public
|
||||
* key of the local signing key. If nonces of other parties are already known,
|
||||
* they can be submitted as well to reduce the number of RPC calls necessary
|
||||
* later on.
|
||||
*
|
||||
* NOTE: The MuSig2 BIP is not final yet and therefore this API must be
|
||||
* considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming
|
||||
* releases. Backward compatibility is not guaranteed!
|
||||
*
|
||||
* @generated from protobuf rpc: MuSig2CreateSession(signrpc.MuSig2SessionRequest) returns (signrpc.MuSig2SessionResponse);
|
||||
*/
|
||||
muSig2CreateSession(input: MuSig2SessionRequest, options?: RpcOptions): UnaryCall<MuSig2SessionRequest, MuSig2SessionResponse>;
|
||||
/**
|
||||
*
|
||||
* MuSig2RegisterNonces (experimental!) registers one or more public nonces of
|
||||
* other signing participants for a session identified by its ID. This RPC can
|
||||
* be called multiple times until all nonces are registered.
|
||||
*
|
||||
* NOTE: The MuSig2 BIP is not final yet and therefore this API must be
|
||||
* considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming
|
||||
* releases. Backward compatibility is not guaranteed!
|
||||
*
|
||||
* @generated from protobuf rpc: MuSig2RegisterNonces(signrpc.MuSig2RegisterNoncesRequest) returns (signrpc.MuSig2RegisterNoncesResponse);
|
||||
*/
|
||||
muSig2RegisterNonces(input: MuSig2RegisterNoncesRequest, options?: RpcOptions): UnaryCall<MuSig2RegisterNoncesRequest, MuSig2RegisterNoncesResponse>;
|
||||
/**
|
||||
*
|
||||
* MuSig2Sign (experimental!) creates a partial signature using the local
|
||||
* signing key that was specified when the session was created. This can only
|
||||
* be called when all public nonces of all participants are known and have been
|
||||
* registered with the session. If this node isn't responsible for combining
|
||||
* all the partial signatures, then the cleanup flag should be set, indicating
|
||||
* that the session can be removed from memory once the signature was produced.
|
||||
*
|
||||
* NOTE: The MuSig2 BIP is not final yet and therefore this API must be
|
||||
* considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming
|
||||
* releases. Backward compatibility is not guaranteed!
|
||||
*
|
||||
* @generated from protobuf rpc: MuSig2Sign(signrpc.MuSig2SignRequest) returns (signrpc.MuSig2SignResponse);
|
||||
*/
|
||||
muSig2Sign(input: MuSig2SignRequest, options?: RpcOptions): UnaryCall<MuSig2SignRequest, MuSig2SignResponse>;
|
||||
/**
|
||||
*
|
||||
* MuSig2CombineSig (experimental!) combines the given partial signature(s)
|
||||
* with the local one, if it already exists. Once a partial signature of all
|
||||
* participants is registered, the final signature will be combined and
|
||||
* returned.
|
||||
*
|
||||
* NOTE: The MuSig2 BIP is not final yet and therefore this API must be
|
||||
* considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming
|
||||
* releases. Backward compatibility is not guaranteed!
|
||||
*
|
||||
* @generated from protobuf rpc: MuSig2CombineSig(signrpc.MuSig2CombineSigRequest) returns (signrpc.MuSig2CombineSigResponse);
|
||||
*/
|
||||
muSig2CombineSig(input: MuSig2CombineSigRequest, options?: RpcOptions): UnaryCall<MuSig2CombineSigRequest, MuSig2CombineSigResponse>;
|
||||
/**
|
||||
*
|
||||
* MuSig2Cleanup (experimental!) allows a caller to clean up a session early in
|
||||
* cases where it's obvious that the signing session won't succeed and the
|
||||
* resources can be released.
|
||||
*
|
||||
* NOTE: The MuSig2 BIP is not final yet and therefore this API must be
|
||||
* considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming
|
||||
* releases. Backward compatibility is not guaranteed!
|
||||
*
|
||||
* @generated from protobuf rpc: MuSig2Cleanup(signrpc.MuSig2CleanupRequest) returns (signrpc.MuSig2CleanupResponse);
|
||||
*/
|
||||
muSig2Cleanup(input: MuSig2CleanupRequest, options?: RpcOptions): UnaryCall<MuSig2CleanupRequest, MuSig2CleanupResponse>;
|
||||
}
|
||||
/**
|
||||
* Signer is a service that gives access to the signing functionality of the
|
||||
* daemon's wallet.
|
||||
*
|
||||
* @generated from protobuf service signrpc.Signer
|
||||
*/
|
||||
export class SignerClient implements ISignerClient, ServiceInfo {
|
||||
typeName = Signer.typeName;
|
||||
methods = Signer.methods;
|
||||
options = Signer.options;
|
||||
constructor(private readonly _transport: RpcTransport) {
|
||||
}
|
||||
/**
|
||||
*
|
||||
* SignOutputRaw is a method that can be used to generated a signature for a
|
||||
* set of inputs/outputs to a transaction. Each request specifies details
|
||||
* concerning how the outputs should be signed, which keys they should be
|
||||
* signed with, and also any optional tweaks. The return value is a fixed
|
||||
* 64-byte signature (the same format as we use on the wire in Lightning).
|
||||
*
|
||||
* If we are unable to sign using the specified keys, then an error will be
|
||||
* returned.
|
||||
*
|
||||
* @generated from protobuf rpc: SignOutputRaw(signrpc.SignReq) returns (signrpc.SignResp);
|
||||
*/
|
||||
signOutputRaw(input: SignReq, options?: RpcOptions): UnaryCall<SignReq, SignResp> {
|
||||
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<SignReq, SignResp>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* ComputeInputScript generates a complete InputIndex for the passed
|
||||
* transaction with the signature as defined within the passed SignDescriptor.
|
||||
* This method should be capable of generating the proper input script for both
|
||||
* regular p2wkh/p2tr outputs and p2wkh outputs nested within a regular p2sh
|
||||
* output.
|
||||
*
|
||||
* Note that when using this method to sign inputs belonging to the wallet,
|
||||
* the only items of the SignDescriptor that need to be populated are pkScript
|
||||
* in the TxOut field, the value in that same field, and finally the input
|
||||
* index.
|
||||
*
|
||||
* @generated from protobuf rpc: ComputeInputScript(signrpc.SignReq) returns (signrpc.InputScriptResp);
|
||||
*/
|
||||
computeInputScript(input: SignReq, options?: RpcOptions): UnaryCall<SignReq, InputScriptResp> {
|
||||
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<SignReq, InputScriptResp>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* SignMessage signs a message with the key specified in the key locator. The
|
||||
* returned signature is fixed-size LN wire format encoded.
|
||||
*
|
||||
* The main difference to SignMessage in the main RPC is that a specific key is
|
||||
* used to sign the message instead of the node identity private key.
|
||||
*
|
||||
* @generated from protobuf rpc: SignMessage(signrpc.SignMessageReq) returns (signrpc.SignMessageResp);
|
||||
*/
|
||||
signMessage(input: SignMessageReq, options?: RpcOptions): UnaryCall<SignMessageReq, SignMessageResp> {
|
||||
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<SignMessageReq, SignMessageResp>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* VerifyMessage verifies a signature over a message using the public key
|
||||
* provided. The signature must be fixed-size LN wire format encoded.
|
||||
*
|
||||
* The main difference to VerifyMessage in the main RPC is that the public key
|
||||
* used to sign the message does not have to be a node known to the network.
|
||||
*
|
||||
* @generated from protobuf rpc: VerifyMessage(signrpc.VerifyMessageReq) returns (signrpc.VerifyMessageResp);
|
||||
*/
|
||||
verifyMessage(input: VerifyMessageReq, options?: RpcOptions): UnaryCall<VerifyMessageReq, VerifyMessageResp> {
|
||||
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<VerifyMessageReq, VerifyMessageResp>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* DeriveSharedKey returns a shared secret key by performing Diffie-Hellman key
|
||||
* derivation between the ephemeral public key in the request and the node's
|
||||
* key specified in the key_desc parameter. Either a key locator or a raw
|
||||
* public key is expected in the key_desc, if neither is supplied, defaults to
|
||||
* the node's identity private key:
|
||||
* P_shared = privKeyNode * ephemeralPubkey
|
||||
* The resulting shared public key is serialized in the compressed format and
|
||||
* hashed with sha256, resulting in the final key length of 256bit.
|
||||
*
|
||||
* @generated from protobuf rpc: DeriveSharedKey(signrpc.SharedKeyRequest) returns (signrpc.SharedKeyResponse);
|
||||
*/
|
||||
deriveSharedKey(input: SharedKeyRequest, options?: RpcOptions): UnaryCall<SharedKeyRequest, SharedKeyResponse> {
|
||||
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<SharedKeyRequest, SharedKeyResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* MuSig2CombineKeys (experimental!) is a stateless helper RPC that can be used
|
||||
* to calculate the combined MuSig2 public key from a list of all participating
|
||||
* signers' public keys. This RPC is completely stateless and deterministic and
|
||||
* does not create any signing session. It can be used to determine the Taproot
|
||||
* public key that should be put in an on-chain output once all public keys are
|
||||
* known. A signing session is only needed later when that output should be
|
||||
* _spent_ again.
|
||||
*
|
||||
* NOTE: The MuSig2 BIP is not final yet and therefore this API must be
|
||||
* considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming
|
||||
* releases. Backward compatibility is not guaranteed!
|
||||
*
|
||||
* @generated from protobuf rpc: MuSig2CombineKeys(signrpc.MuSig2CombineKeysRequest) returns (signrpc.MuSig2CombineKeysResponse);
|
||||
*/
|
||||
muSig2CombineKeys(input: MuSig2CombineKeysRequest, options?: RpcOptions): UnaryCall<MuSig2CombineKeysRequest, MuSig2CombineKeysResponse> {
|
||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<MuSig2CombineKeysRequest, MuSig2CombineKeysResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* MuSig2CreateSession (experimental!) creates a new MuSig2 signing session
|
||||
* using the local key identified by the key locator. The complete list of all
|
||||
* public keys of all signing parties must be provided, including the public
|
||||
* key of the local signing key. If nonces of other parties are already known,
|
||||
* they can be submitted as well to reduce the number of RPC calls necessary
|
||||
* later on.
|
||||
*
|
||||
* NOTE: The MuSig2 BIP is not final yet and therefore this API must be
|
||||
* considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming
|
||||
* releases. Backward compatibility is not guaranteed!
|
||||
*
|
||||
* @generated from protobuf rpc: MuSig2CreateSession(signrpc.MuSig2SessionRequest) returns (signrpc.MuSig2SessionResponse);
|
||||
*/
|
||||
muSig2CreateSession(input: MuSig2SessionRequest, options?: RpcOptions): UnaryCall<MuSig2SessionRequest, MuSig2SessionResponse> {
|
||||
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<MuSig2SessionRequest, MuSig2SessionResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* MuSig2RegisterNonces (experimental!) registers one or more public nonces of
|
||||
* other signing participants for a session identified by its ID. This RPC can
|
||||
* be called multiple times until all nonces are registered.
|
||||
*
|
||||
* NOTE: The MuSig2 BIP is not final yet and therefore this API must be
|
||||
* considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming
|
||||
* releases. Backward compatibility is not guaranteed!
|
||||
*
|
||||
* @generated from protobuf rpc: MuSig2RegisterNonces(signrpc.MuSig2RegisterNoncesRequest) returns (signrpc.MuSig2RegisterNoncesResponse);
|
||||
*/
|
||||
muSig2RegisterNonces(input: MuSig2RegisterNoncesRequest, options?: RpcOptions): UnaryCall<MuSig2RegisterNoncesRequest, MuSig2RegisterNoncesResponse> {
|
||||
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<MuSig2RegisterNoncesRequest, MuSig2RegisterNoncesResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* MuSig2Sign (experimental!) creates a partial signature using the local
|
||||
* signing key that was specified when the session was created. This can only
|
||||
* be called when all public nonces of all participants are known and have been
|
||||
* registered with the session. If this node isn't responsible for combining
|
||||
* all the partial signatures, then the cleanup flag should be set, indicating
|
||||
* that the session can be removed from memory once the signature was produced.
|
||||
*
|
||||
* NOTE: The MuSig2 BIP is not final yet and therefore this API must be
|
||||
* considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming
|
||||
* releases. Backward compatibility is not guaranteed!
|
||||
*
|
||||
* @generated from protobuf rpc: MuSig2Sign(signrpc.MuSig2SignRequest) returns (signrpc.MuSig2SignResponse);
|
||||
*/
|
||||
muSig2Sign(input: MuSig2SignRequest, options?: RpcOptions): UnaryCall<MuSig2SignRequest, MuSig2SignResponse> {
|
||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<MuSig2SignRequest, MuSig2SignResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* MuSig2CombineSig (experimental!) combines the given partial signature(s)
|
||||
* with the local one, if it already exists. Once a partial signature of all
|
||||
* participants is registered, the final signature will be combined and
|
||||
* returned.
|
||||
*
|
||||
* NOTE: The MuSig2 BIP is not final yet and therefore this API must be
|
||||
* considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming
|
||||
* releases. Backward compatibility is not guaranteed!
|
||||
*
|
||||
* @generated from protobuf rpc: MuSig2CombineSig(signrpc.MuSig2CombineSigRequest) returns (signrpc.MuSig2CombineSigResponse);
|
||||
*/
|
||||
muSig2CombineSig(input: MuSig2CombineSigRequest, options?: RpcOptions): UnaryCall<MuSig2CombineSigRequest, MuSig2CombineSigResponse> {
|
||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<MuSig2CombineSigRequest, MuSig2CombineSigResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* MuSig2Cleanup (experimental!) allows a caller to clean up a session early in
|
||||
* cases where it's obvious that the signing session won't succeed and the
|
||||
* resources can be released.
|
||||
*
|
||||
* NOTE: The MuSig2 BIP is not final yet and therefore this API must be
|
||||
* considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming
|
||||
* releases. Backward compatibility is not guaranteed!
|
||||
*
|
||||
* @generated from protobuf rpc: MuSig2Cleanup(signrpc.MuSig2CleanupRequest) returns (signrpc.MuSig2CleanupResponse);
|
||||
*/
|
||||
muSig2Cleanup(input: MuSig2CleanupRequest, options?: RpcOptions): UnaryCall<MuSig2CleanupRequest, MuSig2CleanupResponse> {
|
||||
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<MuSig2CleanupRequest, MuSig2CleanupResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
2502
proto/lnd/signer.ts
Normal file
2502
proto/lnd/signer.ts
Normal file
File diff suppressed because it is too large
Load diff
958
proto/lnd/walletkit.client.ts
Normal file
958
proto/lnd/walletkit.client.ts
Normal file
|
|
@ -0,0 +1,958 @@
|
|||
// @generated by protobuf-ts 2.8.1
|
||||
// @generated from protobuf file "walletkit.proto" (package "walletrpc", syntax proto3)
|
||||
// tslint:disable
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||
import { WalletKit } from "./walletkit";
|
||||
import type { FinalizePsbtResponse } from "./walletkit";
|
||||
import type { FinalizePsbtRequest } from "./walletkit";
|
||||
import type { SignPsbtResponse } from "./walletkit";
|
||||
import type { SignPsbtRequest } from "./walletkit";
|
||||
import type { FundPsbtResponse } from "./walletkit";
|
||||
import type { FundPsbtRequest } from "./walletkit";
|
||||
import type { LabelTransactionResponse } from "./walletkit";
|
||||
import type { LabelTransactionRequest } from "./walletkit";
|
||||
import type { ListSweepsResponse } from "./walletkit";
|
||||
import type { ListSweepsRequest } from "./walletkit";
|
||||
import type { BumpForceCloseFeeResponse } from "./walletkit";
|
||||
import type { BumpForceCloseFeeRequest } from "./walletkit";
|
||||
import type { BumpFeeResponse } from "./walletkit";
|
||||
import type { BumpFeeRequest } from "./walletkit";
|
||||
import type { PendingSweepsResponse } from "./walletkit";
|
||||
import type { PendingSweepsRequest } from "./walletkit";
|
||||
import type { EstimateFeeResponse } from "./walletkit";
|
||||
import type { EstimateFeeRequest } from "./walletkit";
|
||||
import type { SendOutputsResponse } from "./walletkit";
|
||||
import type { SendOutputsRequest } from "./walletkit";
|
||||
import type { RemoveTransactionResponse } from "./walletkit";
|
||||
import type { PublishResponse } from "./walletkit";
|
||||
import type { Transaction as Transaction$ } from "./walletkit";
|
||||
import type { ImportTapscriptResponse } from "./walletkit";
|
||||
import type { ImportTapscriptRequest } from "./walletkit";
|
||||
import type { ImportPublicKeyResponse } from "./walletkit";
|
||||
import type { ImportPublicKeyRequest } from "./walletkit";
|
||||
import type { ImportAccountResponse } from "./walletkit";
|
||||
import type { ImportAccountRequest } from "./walletkit";
|
||||
import type { VerifyMessageWithAddrResponse } from "./walletkit";
|
||||
import type { VerifyMessageWithAddrRequest } from "./walletkit";
|
||||
import type { SignMessageWithAddrResponse } from "./walletkit";
|
||||
import type { SignMessageWithAddrRequest } from "./walletkit";
|
||||
import type { ListAddressesResponse } from "./walletkit";
|
||||
import type { ListAddressesRequest } from "./walletkit";
|
||||
import type { RequiredReserveResponse } from "./walletkit";
|
||||
import type { RequiredReserveRequest } from "./walletkit";
|
||||
import type { ListAccountsResponse } from "./walletkit";
|
||||
import type { ListAccountsRequest } from "./walletkit";
|
||||
import type { Transaction } from "./lightning";
|
||||
import type { GetTransactionRequest } from "./walletkit";
|
||||
import type { AddrResponse } from "./walletkit";
|
||||
import type { AddrRequest } from "./walletkit";
|
||||
import type { KeyLocator } from "./signer";
|
||||
import type { KeyDescriptor } from "./signer";
|
||||
import type { KeyReq } from "./walletkit";
|
||||
import type { ListLeasesResponse } from "./walletkit";
|
||||
import type { ListLeasesRequest } from "./walletkit";
|
||||
import type { ReleaseOutputResponse } from "./walletkit";
|
||||
import type { ReleaseOutputRequest } from "./walletkit";
|
||||
import type { LeaseOutputResponse } from "./walletkit";
|
||||
import type { LeaseOutputRequest } from "./walletkit";
|
||||
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
||||
import type { ListUnspentResponse } from "./walletkit";
|
||||
import type { ListUnspentRequest } from "./walletkit";
|
||||
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
||||
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
||||
//
|
||||
// Comments in this file will be directly parsed into the API
|
||||
// Documentation as descriptions of the associated method, message, or field.
|
||||
// These descriptions should go right above the definition of the object, and
|
||||
// can be in either block or // comment format.
|
||||
//
|
||||
// An RPC method can be matched to an lncli command by placing a line in the
|
||||
// beginning of the description in exactly the following format:
|
||||
// lncli: `methodname`
|
||||
//
|
||||
// Failure to specify the exact name of the command will cause documentation
|
||||
// generation to fail.
|
||||
//
|
||||
// More information on how exactly the gRPC documentation is generated from
|
||||
// this proto file can be found here:
|
||||
// https://github.com/lightninglabs/lightning-api
|
||||
|
||||
/**
|
||||
* WalletKit is a service that gives access to the core functionalities of the
|
||||
* daemon's wallet.
|
||||
*
|
||||
* @generated from protobuf service walletrpc.WalletKit
|
||||
*/
|
||||
export interface IWalletKitClient {
|
||||
/**
|
||||
*
|
||||
* ListUnspent returns a list of all utxos spendable by the wallet with a
|
||||
* number of confirmations between the specified minimum and maximum. By
|
||||
* default, all utxos are listed. To list only the unconfirmed utxos, set
|
||||
* the unconfirmed_only to true.
|
||||
*
|
||||
* @generated from protobuf rpc: ListUnspent(walletrpc.ListUnspentRequest) returns (walletrpc.ListUnspentResponse);
|
||||
*/
|
||||
listUnspent(input: ListUnspentRequest, options?: RpcOptions): UnaryCall<ListUnspentRequest, ListUnspentResponse>;
|
||||
/**
|
||||
* lncli: `wallet leaseoutput`
|
||||
* LeaseOutput locks an output to the given ID, preventing it from being
|
||||
* available for any future coin selection attempts. The absolute time of the
|
||||
* lock's expiration is returned. The expiration of the lock can be extended by
|
||||
* successive invocations of this RPC. Outputs can be unlocked before their
|
||||
* expiration through `ReleaseOutput`.
|
||||
*
|
||||
* @generated from protobuf rpc: LeaseOutput(walletrpc.LeaseOutputRequest) returns (walletrpc.LeaseOutputResponse);
|
||||
*/
|
||||
leaseOutput(input: LeaseOutputRequest, options?: RpcOptions): UnaryCall<LeaseOutputRequest, LeaseOutputResponse>;
|
||||
/**
|
||||
* lncli: `wallet releaseoutput`
|
||||
* ReleaseOutput unlocks an output, allowing it to be available for coin
|
||||
* selection if it remains unspent. The ID should match the one used to
|
||||
* originally lock the output.
|
||||
*
|
||||
* @generated from protobuf rpc: ReleaseOutput(walletrpc.ReleaseOutputRequest) returns (walletrpc.ReleaseOutputResponse);
|
||||
*/
|
||||
releaseOutput(input: ReleaseOutputRequest, options?: RpcOptions): UnaryCall<ReleaseOutputRequest, ReleaseOutputResponse>;
|
||||
/**
|
||||
* lncli: `wallet listleases`
|
||||
* ListLeases lists all currently locked utxos.
|
||||
*
|
||||
* @generated from protobuf rpc: ListLeases(walletrpc.ListLeasesRequest) returns (walletrpc.ListLeasesResponse);
|
||||
*/
|
||||
listLeases(input: ListLeasesRequest, options?: RpcOptions): UnaryCall<ListLeasesRequest, ListLeasesResponse>;
|
||||
/**
|
||||
*
|
||||
* DeriveNextKey attempts to derive the *next* key within the key family
|
||||
* (account in BIP43) specified. This method should return the next external
|
||||
* child within this branch.
|
||||
*
|
||||
* @generated from protobuf rpc: DeriveNextKey(walletrpc.KeyReq) returns (signrpc.KeyDescriptor);
|
||||
*/
|
||||
deriveNextKey(input: KeyReq, options?: RpcOptions): UnaryCall<KeyReq, KeyDescriptor>;
|
||||
/**
|
||||
*
|
||||
* DeriveKey attempts to derive an arbitrary key specified by the passed
|
||||
* KeyLocator.
|
||||
*
|
||||
* @generated from protobuf rpc: DeriveKey(signrpc.KeyLocator) returns (signrpc.KeyDescriptor);
|
||||
*/
|
||||
deriveKey(input: KeyLocator, options?: RpcOptions): UnaryCall<KeyLocator, KeyDescriptor>;
|
||||
/**
|
||||
*
|
||||
* NextAddr returns the next unused address within the wallet.
|
||||
*
|
||||
* @generated from protobuf rpc: NextAddr(walletrpc.AddrRequest) returns (walletrpc.AddrResponse);
|
||||
*/
|
||||
nextAddr(input: AddrRequest, options?: RpcOptions): UnaryCall<AddrRequest, AddrResponse>;
|
||||
/**
|
||||
* lncli: `wallet gettx`
|
||||
* GetTransaction returns details for a transaction found in the wallet.
|
||||
*
|
||||
* @generated from protobuf rpc: GetTransaction(walletrpc.GetTransactionRequest) returns (lnrpc.Transaction);
|
||||
*/
|
||||
getTransaction(input: GetTransactionRequest, options?: RpcOptions): UnaryCall<GetTransactionRequest, 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
|
||||
* wallet accounts and return only those matching.
|
||||
*
|
||||
* @generated from protobuf rpc: ListAccounts(walletrpc.ListAccountsRequest) returns (walletrpc.ListAccountsResponse);
|
||||
*/
|
||||
listAccounts(input: ListAccountsRequest, options?: RpcOptions): UnaryCall<ListAccountsRequest, ListAccountsResponse>;
|
||||
/**
|
||||
* lncli: `wallet requiredreserve`
|
||||
* RequiredReserve returns the minimum amount of satoshis that should be kept
|
||||
* in the wallet in order to fee bump anchor channels if necessary. The value
|
||||
* scales with the number of public anchor channels but is capped at a maximum.
|
||||
*
|
||||
* @generated from protobuf rpc: RequiredReserve(walletrpc.RequiredReserveRequest) returns (walletrpc.RequiredReserveResponse);
|
||||
*/
|
||||
requiredReserve(input: RequiredReserveRequest, options?: RpcOptions): UnaryCall<RequiredReserveRequest, RequiredReserveResponse>;
|
||||
/**
|
||||
* lncli: `wallet addresses list`
|
||||
* ListAddresses retrieves all the addresses along with their balance. An
|
||||
* account name filter can be provided to filter through all of the
|
||||
* wallet accounts and return the addresses of only those matching.
|
||||
*
|
||||
* @generated from protobuf rpc: ListAddresses(walletrpc.ListAddressesRequest) returns (walletrpc.ListAddressesResponse);
|
||||
*/
|
||||
listAddresses(input: ListAddressesRequest, options?: RpcOptions): UnaryCall<ListAddressesRequest, ListAddressesResponse>;
|
||||
/**
|
||||
* lncli: `wallet addresses signmessage`
|
||||
* SignMessageWithAddr returns the compact signature (base64 encoded) created
|
||||
* with the private key of the provided address. This requires the address
|
||||
* to be solely based on a public key lock (no scripts). Obviously the internal
|
||||
* lnd wallet has to possess the private key of the address otherwise
|
||||
* an error is returned.
|
||||
*
|
||||
* This method aims to provide full compatibility with the bitcoin-core and
|
||||
* btcd implementation. Bitcoin-core's algorithm is not specified in a
|
||||
* BIP and only applicable for legacy addresses. This method enhances the
|
||||
* signing for additional address types: P2WKH, NP2WKH, P2TR.
|
||||
* For P2TR addresses this represents a special case. ECDSA is used to create
|
||||
* a compact signature which makes the public key of the signature recoverable.
|
||||
*
|
||||
* @generated from protobuf rpc: SignMessageWithAddr(walletrpc.SignMessageWithAddrRequest) returns (walletrpc.SignMessageWithAddrResponse);
|
||||
*/
|
||||
signMessageWithAddr(input: SignMessageWithAddrRequest, options?: RpcOptions): UnaryCall<SignMessageWithAddrRequest, SignMessageWithAddrResponse>;
|
||||
/**
|
||||
* lncli: `wallet addresses verifymessage`
|
||||
* VerifyMessageWithAddr returns the validity and the recovered public key of
|
||||
* the provided compact signature (base64 encoded). The verification is
|
||||
* twofold. First the validity of the signature itself is checked and then
|
||||
* it is verified that the recovered public key of the signature equals
|
||||
* the public key of the provided address. There is no dependence on the
|
||||
* private key of the address therefore also external addresses are allowed
|
||||
* to verify signatures.
|
||||
* Supported address types are P2PKH, P2WKH, NP2WKH, P2TR.
|
||||
*
|
||||
* This method is the counterpart of the related signing method
|
||||
* (SignMessageWithAddr) and aims to provide full compatibility to
|
||||
* bitcoin-core's implementation. Although bitcoin-core/btcd only provide
|
||||
* this functionality for legacy addresses this function enhances it to
|
||||
* the address types: P2PKH, P2WKH, NP2WKH, P2TR.
|
||||
*
|
||||
* The verification for P2TR addresses is a special case and requires the
|
||||
* ECDSA compact signature to compare the reovered public key to the internal
|
||||
* taproot key. The compact ECDSA signature format was used because there
|
||||
* are still no known compact signature schemes for schnorr signatures.
|
||||
*
|
||||
* @generated from protobuf rpc: VerifyMessageWithAddr(walletrpc.VerifyMessageWithAddrRequest) returns (walletrpc.VerifyMessageWithAddrResponse);
|
||||
*/
|
||||
verifyMessageWithAddr(input: VerifyMessageWithAddrRequest, options?: RpcOptions): UnaryCall<VerifyMessageWithAddrRequest, VerifyMessageWithAddrResponse>;
|
||||
/**
|
||||
* lncli: `wallet accounts import`
|
||||
* ImportAccount imports an account backed by an account extended public key.
|
||||
* The master key fingerprint denotes the fingerprint of the root key
|
||||
* corresponding to the account public key (also known as the key with
|
||||
* derivation path m/). This may be required by some hardware wallets for
|
||||
* proper identification and signing.
|
||||
*
|
||||
* The address type can usually be inferred from the key's version, but may be
|
||||
* required for certain keys to map them into the proper scope.
|
||||
*
|
||||
* For BIP-0044 keys, an address type must be specified as we intend to not
|
||||
* support importing BIP-0044 keys into the wallet using the legacy
|
||||
* pay-to-pubkey-hash (P2PKH) scheme. A nested witness address type will force
|
||||
* the standard BIP-0049 derivation scheme, while a witness address type will
|
||||
* force the standard BIP-0084 derivation scheme.
|
||||
*
|
||||
* For BIP-0049 keys, an address type must also be specified to make a
|
||||
* distinction between the standard BIP-0049 address schema (nested witness
|
||||
* pubkeys everywhere) and our own BIP-0049Plus address schema (nested pubkeys
|
||||
* externally, witness pubkeys internally).
|
||||
*
|
||||
* NOTE: Events (deposits/spends) for keys derived from an account will only be
|
||||
* detected by lnd if they happen after the import. Rescans to detect past
|
||||
* events will be supported later on.
|
||||
*
|
||||
* @generated from protobuf rpc: ImportAccount(walletrpc.ImportAccountRequest) returns (walletrpc.ImportAccountResponse);
|
||||
*/
|
||||
importAccount(input: ImportAccountRequest, options?: RpcOptions): UnaryCall<ImportAccountRequest, ImportAccountResponse>;
|
||||
/**
|
||||
* lncli: `wallet accounts import-pubkey`
|
||||
* ImportPublicKey imports a public key as watch-only into the wallet. The
|
||||
* public key is converted into a simple address of the given type and that
|
||||
* address script is watched on chain. For Taproot keys, this will only watch
|
||||
* the BIP-0086 style output script. Use ImportTapscript for more advanced key
|
||||
* spend or script spend outputs.
|
||||
*
|
||||
* NOTE: Events (deposits/spends) for a key will only be detected by lnd if
|
||||
* they happen after the import. Rescans to detect past events will be
|
||||
* supported later on.
|
||||
*
|
||||
* @generated from protobuf rpc: ImportPublicKey(walletrpc.ImportPublicKeyRequest) returns (walletrpc.ImportPublicKeyResponse);
|
||||
*/
|
||||
importPublicKey(input: ImportPublicKeyRequest, options?: RpcOptions): UnaryCall<ImportPublicKeyRequest, ImportPublicKeyResponse>;
|
||||
/**
|
||||
*
|
||||
* ImportTapscript imports a Taproot script and internal key and adds the
|
||||
* resulting Taproot output key as a watch-only output script into the wallet.
|
||||
* For BIP-0086 style Taproot keys (no root hash commitment and no script spend
|
||||
* path) use ImportPublicKey.
|
||||
*
|
||||
* NOTE: Events (deposits/spends) for a key will only be detected by lnd if
|
||||
* they happen after the import. Rescans to detect past events will be
|
||||
* supported later on.
|
||||
*
|
||||
* NOTE: Taproot keys imported through this RPC currently _cannot_ be used for
|
||||
* funding PSBTs. Only tracking the balance and UTXOs is currently supported.
|
||||
*
|
||||
* @generated from protobuf rpc: ImportTapscript(walletrpc.ImportTapscriptRequest) returns (walletrpc.ImportTapscriptResponse);
|
||||
*/
|
||||
importTapscript(input: ImportTapscriptRequest, options?: RpcOptions): UnaryCall<ImportTapscriptRequest, ImportTapscriptResponse>;
|
||||
/**
|
||||
* lncli: `wallet publishtx`
|
||||
* PublishTransaction attempts to publish the passed transaction to the
|
||||
* network. Once this returns without an error, the wallet will continually
|
||||
* attempt to re-broadcast the transaction on start up, until it enters the
|
||||
* chain.
|
||||
*
|
||||
* @generated from protobuf rpc: PublishTransaction(walletrpc.Transaction) returns (walletrpc.PublishResponse);
|
||||
*/
|
||||
publishTransaction(input: Transaction$, options?: RpcOptions): UnaryCall<Transaction$, PublishResponse>;
|
||||
/**
|
||||
* lncli: `wallet removetx`
|
||||
* RemoveTransaction attempts to remove the provided transaction from the
|
||||
* internal transaction store of the wallet.
|
||||
*
|
||||
* @generated from protobuf rpc: RemoveTransaction(walletrpc.GetTransactionRequest) returns (walletrpc.RemoveTransactionResponse);
|
||||
*/
|
||||
removeTransaction(input: GetTransactionRequest, options?: RpcOptions): UnaryCall<GetTransactionRequest, RemoveTransactionResponse>;
|
||||
/**
|
||||
*
|
||||
* SendOutputs is similar to the existing sendmany call in Bitcoind, and
|
||||
* allows the caller to create a transaction that sends to several outputs at
|
||||
* once. This is ideal when wanting to batch create a set of transactions.
|
||||
*
|
||||
* @generated from protobuf rpc: SendOutputs(walletrpc.SendOutputsRequest) returns (walletrpc.SendOutputsResponse);
|
||||
*/
|
||||
sendOutputs(input: SendOutputsRequest, options?: RpcOptions): UnaryCall<SendOutputsRequest, SendOutputsResponse>;
|
||||
/**
|
||||
* lncli: `wallet estimatefeerate`
|
||||
* EstimateFee attempts to query the internal fee estimator of the wallet to
|
||||
* determine the fee (in sat/kw) to attach to a transaction in order to
|
||||
* achieve the confirmation target.
|
||||
*
|
||||
* @generated from protobuf rpc: EstimateFee(walletrpc.EstimateFeeRequest) returns (walletrpc.EstimateFeeResponse);
|
||||
*/
|
||||
estimateFee(input: EstimateFeeRequest, options?: RpcOptions): UnaryCall<EstimateFeeRequest, EstimateFeeResponse>;
|
||||
/**
|
||||
* lncli: `wallet pendingsweeps`
|
||||
* PendingSweeps returns lists of on-chain outputs that lnd is currently
|
||||
* attempting to sweep within its central batching engine. Outputs with similar
|
||||
* fee rates are batched together in order to sweep them within a single
|
||||
* transaction.
|
||||
*
|
||||
* NOTE: Some of the fields within PendingSweepsRequest are not guaranteed to
|
||||
* remain supported. This is an advanced API that depends on the internals of
|
||||
* the UtxoSweeper, so things may change.
|
||||
*
|
||||
* @generated from protobuf rpc: PendingSweeps(walletrpc.PendingSweepsRequest) returns (walletrpc.PendingSweepsResponse);
|
||||
*/
|
||||
pendingSweeps(input: PendingSweepsRequest, options?: RpcOptions): UnaryCall<PendingSweepsRequest, PendingSweepsResponse>;
|
||||
/**
|
||||
* lncli: `wallet bumpfee`
|
||||
* BumpFee is an endpoint that allows users to interact with lnd's sweeper
|
||||
* directly. It takes an outpoint from an unconfirmed transaction and sends it
|
||||
* to the sweeper for potential fee bumping. Depending on whether the outpoint
|
||||
* has been registered in the sweeper (an existing input, e.g., an anchor
|
||||
* output) or not (a new input, e.g., an unconfirmed wallet utxo), this will
|
||||
* either be an RBF or CPFP attempt.
|
||||
*
|
||||
* When receiving an input, lnd’s sweeper needs to understand its time
|
||||
* sensitivity to make economical fee bumps - internally a fee function is
|
||||
* created using the deadline and budget to guide the process. When the
|
||||
* deadline is approaching, the fee function will increase the fee rate and
|
||||
* perform an RBF.
|
||||
*
|
||||
* When a force close happens, all the outputs from the force closing
|
||||
* transaction will be registered in the sweeper. The sweeper will then handle
|
||||
* the creation, publish, and fee bumping of the sweeping transactions.
|
||||
* Everytime a new block comes in, unless the sweeping transaction is
|
||||
* confirmed, an RBF is attempted. To interfere with this automatic process,
|
||||
* users can use BumpFee to specify customized fee rate, budget, deadline, and
|
||||
* whether the sweep should happen immediately. It's recommended to call
|
||||
* `ListSweeps` to understand the shape of the existing sweeping transaction
|
||||
* first - depending on the number of inputs in this transaction, the RBF
|
||||
* requirements can be quite different.
|
||||
*
|
||||
* This RPC also serves useful when wanting to perform a Child-Pays-For-Parent
|
||||
* (CPFP), where the child transaction pays for its parent's fee. This can be
|
||||
* done by specifying an outpoint within the low fee transaction that is under
|
||||
* the control of the wallet.
|
||||
*
|
||||
* @generated from protobuf rpc: BumpFee(walletrpc.BumpFeeRequest) returns (walletrpc.BumpFeeResponse);
|
||||
*/
|
||||
bumpFee(input: BumpFeeRequest, options?: RpcOptions): UnaryCall<BumpFeeRequest, BumpFeeResponse>;
|
||||
/**
|
||||
* lncli: `wallet bumpforceclosefee`
|
||||
* BumpForceCloseFee is an endpoint that allows users to bump the fee of a
|
||||
* channel force close. This only works for channels with option_anchors.
|
||||
*
|
||||
* @generated from protobuf rpc: BumpForceCloseFee(walletrpc.BumpForceCloseFeeRequest) returns (walletrpc.BumpForceCloseFeeResponse);
|
||||
*/
|
||||
bumpForceCloseFee(input: BumpForceCloseFeeRequest, options?: RpcOptions): UnaryCall<BumpForceCloseFeeRequest, BumpForceCloseFeeResponse>;
|
||||
/**
|
||||
* lncli: `wallet listsweeps`
|
||||
* ListSweeps returns a list of the sweep transactions our node has produced.
|
||||
* Note that these sweeps may not be confirmed yet, as we record sweeps on
|
||||
* broadcast, not confirmation.
|
||||
*
|
||||
* @generated from protobuf rpc: ListSweeps(walletrpc.ListSweepsRequest) returns (walletrpc.ListSweepsResponse);
|
||||
*/
|
||||
listSweeps(input: ListSweepsRequest, options?: RpcOptions): UnaryCall<ListSweepsRequest, ListSweepsResponse>;
|
||||
/**
|
||||
* lncli: `wallet labeltx`
|
||||
* LabelTransaction adds a label to a transaction. If the transaction already
|
||||
* has a label the call will fail unless the overwrite bool is set. This will
|
||||
* overwrite the existing transaction label. Labels must not be empty, and
|
||||
* cannot exceed 500 characters.
|
||||
*
|
||||
* @generated from protobuf rpc: LabelTransaction(walletrpc.LabelTransactionRequest) returns (walletrpc.LabelTransactionResponse);
|
||||
*/
|
||||
labelTransaction(input: LabelTransactionRequest, options?: RpcOptions): UnaryCall<LabelTransactionRequest, LabelTransactionResponse>;
|
||||
/**
|
||||
* lncli: `wallet psbt fund`
|
||||
* FundPsbt creates a fully populated PSBT that contains enough inputs to fund
|
||||
* the outputs specified in the template. There are three ways a user can
|
||||
* specify what we call the template (a list of inputs and outputs to use in
|
||||
* the PSBT): Either as a PSBT packet directly with no coin selection (using
|
||||
* the legacy "psbt" field), a PSBT with advanced coin selection support (using
|
||||
* the new "coin_select" field) or as a raw RPC message (using the "raw"
|
||||
* field).
|
||||
* The legacy "psbt" and "raw" modes, the following restrictions apply:
|
||||
* 1. If there are no inputs specified in the template, coin selection is
|
||||
* performed automatically.
|
||||
* 2. If the template does contain any inputs, it is assumed that full
|
||||
* coin selection happened externally and no additional inputs are added. If
|
||||
* the specified inputs aren't enough to fund the outputs with the given fee
|
||||
* rate, an error is returned.
|
||||
*
|
||||
* The new "coin_select" mode does not have these restrictions and allows the
|
||||
* user to specify a PSBT with inputs and outputs and still perform coin
|
||||
* selection on top of that.
|
||||
* For all modes this RPC requires any inputs that are specified to be locked
|
||||
* by the user (if they belong to this node in the first place).
|
||||
*
|
||||
* After either selecting or verifying the inputs, all input UTXOs are locked
|
||||
* with an internal app ID.
|
||||
*
|
||||
* NOTE: If this method returns without an error, it is the caller's
|
||||
* responsibility to either spend the locked UTXOs (by finalizing and then
|
||||
* publishing the transaction) or to unlock/release the locked UTXOs in case of
|
||||
* an error on the caller's side.
|
||||
*
|
||||
* @generated from protobuf rpc: FundPsbt(walletrpc.FundPsbtRequest) returns (walletrpc.FundPsbtResponse);
|
||||
*/
|
||||
fundPsbt(input: FundPsbtRequest, options?: RpcOptions): UnaryCall<FundPsbtRequest, FundPsbtResponse>;
|
||||
/**
|
||||
*
|
||||
* SignPsbt expects a partial transaction with all inputs and outputs fully
|
||||
* declared and tries to sign all unsigned inputs that have all required fields
|
||||
* (UTXO information, BIP32 derivation information, witness or sig scripts)
|
||||
* set.
|
||||
* If no error is returned, the PSBT is ready to be given to the next signer or
|
||||
* to be finalized if lnd was the last signer.
|
||||
*
|
||||
* NOTE: This RPC only signs inputs (and only those it can sign), it does not
|
||||
* perform any other tasks (such as coin selection, UTXO locking or
|
||||
* input/output/fee value validation, PSBT finalization). Any input that is
|
||||
* incomplete will be skipped.
|
||||
*
|
||||
* @generated from protobuf rpc: SignPsbt(walletrpc.SignPsbtRequest) returns (walletrpc.SignPsbtResponse);
|
||||
*/
|
||||
signPsbt(input: SignPsbtRequest, options?: RpcOptions): UnaryCall<SignPsbtRequest, SignPsbtResponse>;
|
||||
/**
|
||||
* lncli: `wallet psbt finalize`
|
||||
* FinalizePsbt expects a partial transaction with all inputs and outputs fully
|
||||
* declared and tries to sign all inputs that belong to the wallet. Lnd must be
|
||||
* the last signer of the transaction. That means, if there are any unsigned
|
||||
* non-witness inputs or inputs without UTXO information attached or inputs
|
||||
* without witness data that do not belong to lnd's wallet, this method will
|
||||
* fail. If no error is returned, the PSBT is ready to be extracted and the
|
||||
* final TX within to be broadcast.
|
||||
*
|
||||
* NOTE: This method does NOT publish the transaction once finalized. It is the
|
||||
* caller's responsibility to either publish the transaction on success or
|
||||
* unlock/release any locked UTXOs in case of an error in this method.
|
||||
*
|
||||
* @generated from protobuf rpc: FinalizePsbt(walletrpc.FinalizePsbtRequest) returns (walletrpc.FinalizePsbtResponse);
|
||||
*/
|
||||
finalizePsbt(input: FinalizePsbtRequest, options?: RpcOptions): UnaryCall<FinalizePsbtRequest, FinalizePsbtResponse>;
|
||||
}
|
||||
//
|
||||
// Comments in this file will be directly parsed into the API
|
||||
// Documentation as descriptions of the associated method, message, or field.
|
||||
// These descriptions should go right above the definition of the object, and
|
||||
// can be in either block or // comment format.
|
||||
//
|
||||
// An RPC method can be matched to an lncli command by placing a line in the
|
||||
// beginning of the description in exactly the following format:
|
||||
// lncli: `methodname`
|
||||
//
|
||||
// Failure to specify the exact name of the command will cause documentation
|
||||
// generation to fail.
|
||||
//
|
||||
// More information on how exactly the gRPC documentation is generated from
|
||||
// this proto file can be found here:
|
||||
// https://github.com/lightninglabs/lightning-api
|
||||
|
||||
/**
|
||||
* WalletKit is a service that gives access to the core functionalities of the
|
||||
* daemon's wallet.
|
||||
*
|
||||
* @generated from protobuf service walletrpc.WalletKit
|
||||
*/
|
||||
export class WalletKitClient implements IWalletKitClient, ServiceInfo {
|
||||
typeName = WalletKit.typeName;
|
||||
methods = WalletKit.methods;
|
||||
options = WalletKit.options;
|
||||
constructor(private readonly _transport: RpcTransport) {
|
||||
}
|
||||
/**
|
||||
*
|
||||
* ListUnspent returns a list of all utxos spendable by the wallet with a
|
||||
* number of confirmations between the specified minimum and maximum. By
|
||||
* default, all utxos are listed. To list only the unconfirmed utxos, set
|
||||
* the unconfirmed_only to true.
|
||||
*
|
||||
* @generated from protobuf rpc: ListUnspent(walletrpc.ListUnspentRequest) returns (walletrpc.ListUnspentResponse);
|
||||
*/
|
||||
listUnspent(input: ListUnspentRequest, options?: RpcOptions): UnaryCall<ListUnspentRequest, ListUnspentResponse> {
|
||||
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListUnspentRequest, ListUnspentResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* lncli: `wallet leaseoutput`
|
||||
* LeaseOutput locks an output to the given ID, preventing it from being
|
||||
* available for any future coin selection attempts. The absolute time of the
|
||||
* lock's expiration is returned. The expiration of the lock can be extended by
|
||||
* successive invocations of this RPC. Outputs can be unlocked before their
|
||||
* expiration through `ReleaseOutput`.
|
||||
*
|
||||
* @generated from protobuf rpc: LeaseOutput(walletrpc.LeaseOutputRequest) returns (walletrpc.LeaseOutputResponse);
|
||||
*/
|
||||
leaseOutput(input: LeaseOutputRequest, options?: RpcOptions): UnaryCall<LeaseOutputRequest, LeaseOutputResponse> {
|
||||
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<LeaseOutputRequest, LeaseOutputResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* lncli: `wallet releaseoutput`
|
||||
* ReleaseOutput unlocks an output, allowing it to be available for coin
|
||||
* selection if it remains unspent. The ID should match the one used to
|
||||
* originally lock the output.
|
||||
*
|
||||
* @generated from protobuf rpc: ReleaseOutput(walletrpc.ReleaseOutputRequest) returns (walletrpc.ReleaseOutputResponse);
|
||||
*/
|
||||
releaseOutput(input: ReleaseOutputRequest, options?: RpcOptions): UnaryCall<ReleaseOutputRequest, ReleaseOutputResponse> {
|
||||
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ReleaseOutputRequest, ReleaseOutputResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* lncli: `wallet listleases`
|
||||
* ListLeases lists all currently locked utxos.
|
||||
*
|
||||
* @generated from protobuf rpc: ListLeases(walletrpc.ListLeasesRequest) returns (walletrpc.ListLeasesResponse);
|
||||
*/
|
||||
listLeases(input: ListLeasesRequest, options?: RpcOptions): UnaryCall<ListLeasesRequest, ListLeasesResponse> {
|
||||
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListLeasesRequest, ListLeasesResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* DeriveNextKey attempts to derive the *next* key within the key family
|
||||
* (account in BIP43) specified. This method should return the next external
|
||||
* child within this branch.
|
||||
*
|
||||
* @generated from protobuf rpc: DeriveNextKey(walletrpc.KeyReq) returns (signrpc.KeyDescriptor);
|
||||
*/
|
||||
deriveNextKey(input: KeyReq, options?: RpcOptions): UnaryCall<KeyReq, KeyDescriptor> {
|
||||
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<KeyReq, KeyDescriptor>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* DeriveKey attempts to derive an arbitrary key specified by the passed
|
||||
* KeyLocator.
|
||||
*
|
||||
* @generated from protobuf rpc: DeriveKey(signrpc.KeyLocator) returns (signrpc.KeyDescriptor);
|
||||
*/
|
||||
deriveKey(input: KeyLocator, options?: RpcOptions): UnaryCall<KeyLocator, KeyDescriptor> {
|
||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<KeyLocator, KeyDescriptor>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* NextAddr returns the next unused address within the wallet.
|
||||
*
|
||||
* @generated from protobuf rpc: NextAddr(walletrpc.AddrRequest) returns (walletrpc.AddrResponse);
|
||||
*/
|
||||
nextAddr(input: AddrRequest, options?: RpcOptions): UnaryCall<AddrRequest, AddrResponse> {
|
||||
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AddrRequest, AddrResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* lncli: `wallet gettx`
|
||||
* GetTransaction returns details for a transaction found in the wallet.
|
||||
*
|
||||
* @generated from protobuf rpc: GetTransaction(walletrpc.GetTransactionRequest) returns (lnrpc.Transaction);
|
||||
*/
|
||||
getTransaction(input: GetTransactionRequest, options?: RpcOptions): UnaryCall<GetTransactionRequest, Transaction> {
|
||||
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetTransactionRequest, Transaction>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* 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
|
||||
* wallet accounts and return only those matching.
|
||||
*
|
||||
* @generated from protobuf rpc: ListAccounts(walletrpc.ListAccountsRequest) returns (walletrpc.ListAccountsResponse);
|
||||
*/
|
||||
listAccounts(input: ListAccountsRequest, options?: RpcOptions): UnaryCall<ListAccountsRequest, ListAccountsResponse> {
|
||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListAccountsRequest, ListAccountsResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* lncli: `wallet requiredreserve`
|
||||
* RequiredReserve returns the minimum amount of satoshis that should be kept
|
||||
* in the wallet in order to fee bump anchor channels if necessary. The value
|
||||
* scales with the number of public anchor channels but is capped at a maximum.
|
||||
*
|
||||
* @generated from protobuf rpc: RequiredReserve(walletrpc.RequiredReserveRequest) returns (walletrpc.RequiredReserveResponse);
|
||||
*/
|
||||
requiredReserve(input: RequiredReserveRequest, options?: RpcOptions): UnaryCall<RequiredReserveRequest, RequiredReserveResponse> {
|
||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<RequiredReserveRequest, RequiredReserveResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* lncli: `wallet addresses list`
|
||||
* ListAddresses retrieves all the addresses along with their balance. An
|
||||
* account name filter can be provided to filter through all of the
|
||||
* wallet accounts and return the addresses of only those matching.
|
||||
*
|
||||
* @generated from protobuf rpc: ListAddresses(walletrpc.ListAddressesRequest) returns (walletrpc.ListAddressesResponse);
|
||||
*/
|
||||
listAddresses(input: ListAddressesRequest, options?: RpcOptions): UnaryCall<ListAddressesRequest, ListAddressesResponse> {
|
||||
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListAddressesRequest, ListAddressesResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* lncli: `wallet addresses signmessage`
|
||||
* SignMessageWithAddr returns the compact signature (base64 encoded) created
|
||||
* with the private key of the provided address. This requires the address
|
||||
* to be solely based on a public key lock (no scripts). Obviously the internal
|
||||
* lnd wallet has to possess the private key of the address otherwise
|
||||
* an error is returned.
|
||||
*
|
||||
* This method aims to provide full compatibility with the bitcoin-core and
|
||||
* btcd implementation. Bitcoin-core's algorithm is not specified in a
|
||||
* BIP and only applicable for legacy addresses. This method enhances the
|
||||
* signing for additional address types: P2WKH, NP2WKH, P2TR.
|
||||
* For P2TR addresses this represents a special case. ECDSA is used to create
|
||||
* a compact signature which makes the public key of the signature recoverable.
|
||||
*
|
||||
* @generated from protobuf rpc: SignMessageWithAddr(walletrpc.SignMessageWithAddrRequest) returns (walletrpc.SignMessageWithAddrResponse);
|
||||
*/
|
||||
signMessageWithAddr(input: SignMessageWithAddrRequest, options?: RpcOptions): UnaryCall<SignMessageWithAddrRequest, SignMessageWithAddrResponse> {
|
||||
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<SignMessageWithAddrRequest, SignMessageWithAddrResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* lncli: `wallet addresses verifymessage`
|
||||
* VerifyMessageWithAddr returns the validity and the recovered public key of
|
||||
* the provided compact signature (base64 encoded). The verification is
|
||||
* twofold. First the validity of the signature itself is checked and then
|
||||
* it is verified that the recovered public key of the signature equals
|
||||
* the public key of the provided address. There is no dependence on the
|
||||
* private key of the address therefore also external addresses are allowed
|
||||
* to verify signatures.
|
||||
* Supported address types are P2PKH, P2WKH, NP2WKH, P2TR.
|
||||
*
|
||||
* This method is the counterpart of the related signing method
|
||||
* (SignMessageWithAddr) and aims to provide full compatibility to
|
||||
* bitcoin-core's implementation. Although bitcoin-core/btcd only provide
|
||||
* this functionality for legacy addresses this function enhances it to
|
||||
* the address types: P2PKH, P2WKH, NP2WKH, P2TR.
|
||||
*
|
||||
* The verification for P2TR addresses is a special case and requires the
|
||||
* ECDSA compact signature to compare the reovered public key to the internal
|
||||
* taproot key. The compact ECDSA signature format was used because there
|
||||
* are still no known compact signature schemes for schnorr signatures.
|
||||
*
|
||||
* @generated from protobuf rpc: VerifyMessageWithAddr(walletrpc.VerifyMessageWithAddrRequest) returns (walletrpc.VerifyMessageWithAddrResponse);
|
||||
*/
|
||||
verifyMessageWithAddr(input: VerifyMessageWithAddrRequest, options?: RpcOptions): UnaryCall<VerifyMessageWithAddrRequest, VerifyMessageWithAddrResponse> {
|
||||
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<VerifyMessageWithAddrRequest, VerifyMessageWithAddrResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* lncli: `wallet accounts import`
|
||||
* ImportAccount imports an account backed by an account extended public key.
|
||||
* The master key fingerprint denotes the fingerprint of the root key
|
||||
* corresponding to the account public key (also known as the key with
|
||||
* derivation path m/). This may be required by some hardware wallets for
|
||||
* proper identification and signing.
|
||||
*
|
||||
* The address type can usually be inferred from the key's version, but may be
|
||||
* required for certain keys to map them into the proper scope.
|
||||
*
|
||||
* For BIP-0044 keys, an address type must be specified as we intend to not
|
||||
* support importing BIP-0044 keys into the wallet using the legacy
|
||||
* pay-to-pubkey-hash (P2PKH) scheme. A nested witness address type will force
|
||||
* the standard BIP-0049 derivation scheme, while a witness address type will
|
||||
* force the standard BIP-0084 derivation scheme.
|
||||
*
|
||||
* For BIP-0049 keys, an address type must also be specified to make a
|
||||
* distinction between the standard BIP-0049 address schema (nested witness
|
||||
* pubkeys everywhere) and our own BIP-0049Plus address schema (nested pubkeys
|
||||
* externally, witness pubkeys internally).
|
||||
*
|
||||
* NOTE: Events (deposits/spends) for keys derived from an account will only be
|
||||
* detected by lnd if they happen after the import. Rescans to detect past
|
||||
* events will be supported later on.
|
||||
*
|
||||
* @generated from protobuf rpc: ImportAccount(walletrpc.ImportAccountRequest) returns (walletrpc.ImportAccountResponse);
|
||||
*/
|
||||
importAccount(input: ImportAccountRequest, options?: RpcOptions): UnaryCall<ImportAccountRequest, ImportAccountResponse> {
|
||||
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ImportAccountRequest, ImportAccountResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* lncli: `wallet accounts import-pubkey`
|
||||
* ImportPublicKey imports a public key as watch-only into the wallet. The
|
||||
* public key is converted into a simple address of the given type and that
|
||||
* address script is watched on chain. For Taproot keys, this will only watch
|
||||
* the BIP-0086 style output script. Use ImportTapscript for more advanced key
|
||||
* spend or script spend outputs.
|
||||
*
|
||||
* NOTE: Events (deposits/spends) for a key will only be detected by lnd if
|
||||
* they happen after the import. Rescans to detect past events will be
|
||||
* supported later on.
|
||||
*
|
||||
* @generated from protobuf rpc: ImportPublicKey(walletrpc.ImportPublicKeyRequest) returns (walletrpc.ImportPublicKeyResponse);
|
||||
*/
|
||||
importPublicKey(input: ImportPublicKeyRequest, options?: RpcOptions): UnaryCall<ImportPublicKeyRequest, ImportPublicKeyResponse> {
|
||||
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ImportPublicKeyRequest, ImportPublicKeyResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* ImportTapscript imports a Taproot script and internal key and adds the
|
||||
* resulting Taproot output key as a watch-only output script into the wallet.
|
||||
* For BIP-0086 style Taproot keys (no root hash commitment and no script spend
|
||||
* path) use ImportPublicKey.
|
||||
*
|
||||
* NOTE: Events (deposits/spends) for a key will only be detected by lnd if
|
||||
* they happen after the import. Rescans to detect past events will be
|
||||
* supported later on.
|
||||
*
|
||||
* NOTE: Taproot keys imported through this RPC currently _cannot_ be used for
|
||||
* funding PSBTs. Only tracking the balance and UTXOs is currently supported.
|
||||
*
|
||||
* @generated from protobuf rpc: ImportTapscript(walletrpc.ImportTapscriptRequest) returns (walletrpc.ImportTapscriptResponse);
|
||||
*/
|
||||
importTapscript(input: ImportTapscriptRequest, options?: RpcOptions): UnaryCall<ImportTapscriptRequest, ImportTapscriptResponse> {
|
||||
const method = this.methods[15], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ImportTapscriptRequest, ImportTapscriptResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* lncli: `wallet publishtx`
|
||||
* PublishTransaction attempts to publish the passed transaction to the
|
||||
* network. Once this returns without an error, the wallet will continually
|
||||
* attempt to re-broadcast the transaction on start up, until it enters the
|
||||
* chain.
|
||||
*
|
||||
* @generated from protobuf rpc: PublishTransaction(walletrpc.Transaction) returns (walletrpc.PublishResponse);
|
||||
*/
|
||||
publishTransaction(input: Transaction$, options?: RpcOptions): UnaryCall<Transaction$, PublishResponse> {
|
||||
const method = this.methods[16], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<Transaction$, PublishResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* lncli: `wallet removetx`
|
||||
* RemoveTransaction attempts to remove the provided transaction from the
|
||||
* internal transaction store of the wallet.
|
||||
*
|
||||
* @generated from protobuf rpc: RemoveTransaction(walletrpc.GetTransactionRequest) returns (walletrpc.RemoveTransactionResponse);
|
||||
*/
|
||||
removeTransaction(input: GetTransactionRequest, options?: RpcOptions): UnaryCall<GetTransactionRequest, RemoveTransactionResponse> {
|
||||
const method = this.methods[17], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetTransactionRequest, RemoveTransactionResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* SendOutputs is similar to the existing sendmany call in Bitcoind, and
|
||||
* allows the caller to create a transaction that sends to several outputs at
|
||||
* once. This is ideal when wanting to batch create a set of transactions.
|
||||
*
|
||||
* @generated from protobuf rpc: SendOutputs(walletrpc.SendOutputsRequest) returns (walletrpc.SendOutputsResponse);
|
||||
*/
|
||||
sendOutputs(input: SendOutputsRequest, options?: RpcOptions): UnaryCall<SendOutputsRequest, SendOutputsResponse> {
|
||||
const method = this.methods[18], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<SendOutputsRequest, SendOutputsResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* lncli: `wallet estimatefeerate`
|
||||
* EstimateFee attempts to query the internal fee estimator of the wallet to
|
||||
* determine the fee (in sat/kw) to attach to a transaction in order to
|
||||
* achieve the confirmation target.
|
||||
*
|
||||
* @generated from protobuf rpc: EstimateFee(walletrpc.EstimateFeeRequest) returns (walletrpc.EstimateFeeResponse);
|
||||
*/
|
||||
estimateFee(input: EstimateFeeRequest, options?: RpcOptions): UnaryCall<EstimateFeeRequest, EstimateFeeResponse> {
|
||||
const method = this.methods[19], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<EstimateFeeRequest, EstimateFeeResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* lncli: `wallet pendingsweeps`
|
||||
* PendingSweeps returns lists of on-chain outputs that lnd is currently
|
||||
* attempting to sweep within its central batching engine. Outputs with similar
|
||||
* fee rates are batched together in order to sweep them within a single
|
||||
* transaction.
|
||||
*
|
||||
* NOTE: Some of the fields within PendingSweepsRequest are not guaranteed to
|
||||
* remain supported. This is an advanced API that depends on the internals of
|
||||
* the UtxoSweeper, so things may change.
|
||||
*
|
||||
* @generated from protobuf rpc: PendingSweeps(walletrpc.PendingSweepsRequest) returns (walletrpc.PendingSweepsResponse);
|
||||
*/
|
||||
pendingSweeps(input: PendingSweepsRequest, options?: RpcOptions): UnaryCall<PendingSweepsRequest, PendingSweepsResponse> {
|
||||
const method = this.methods[20], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<PendingSweepsRequest, PendingSweepsResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* lncli: `wallet bumpfee`
|
||||
* BumpFee is an endpoint that allows users to interact with lnd's sweeper
|
||||
* directly. It takes an outpoint from an unconfirmed transaction and sends it
|
||||
* to the sweeper for potential fee bumping. Depending on whether the outpoint
|
||||
* has been registered in the sweeper (an existing input, e.g., an anchor
|
||||
* output) or not (a new input, e.g., an unconfirmed wallet utxo), this will
|
||||
* either be an RBF or CPFP attempt.
|
||||
*
|
||||
* When receiving an input, lnd’s sweeper needs to understand its time
|
||||
* sensitivity to make economical fee bumps - internally a fee function is
|
||||
* created using the deadline and budget to guide the process. When the
|
||||
* deadline is approaching, the fee function will increase the fee rate and
|
||||
* perform an RBF.
|
||||
*
|
||||
* When a force close happens, all the outputs from the force closing
|
||||
* transaction will be registered in the sweeper. The sweeper will then handle
|
||||
* the creation, publish, and fee bumping of the sweeping transactions.
|
||||
* Everytime a new block comes in, unless the sweeping transaction is
|
||||
* confirmed, an RBF is attempted. To interfere with this automatic process,
|
||||
* users can use BumpFee to specify customized fee rate, budget, deadline, and
|
||||
* whether the sweep should happen immediately. It's recommended to call
|
||||
* `ListSweeps` to understand the shape of the existing sweeping transaction
|
||||
* first - depending on the number of inputs in this transaction, the RBF
|
||||
* requirements can be quite different.
|
||||
*
|
||||
* This RPC also serves useful when wanting to perform a Child-Pays-For-Parent
|
||||
* (CPFP), where the child transaction pays for its parent's fee. This can be
|
||||
* done by specifying an outpoint within the low fee transaction that is under
|
||||
* the control of the wallet.
|
||||
*
|
||||
* @generated from protobuf rpc: BumpFee(walletrpc.BumpFeeRequest) returns (walletrpc.BumpFeeResponse);
|
||||
*/
|
||||
bumpFee(input: BumpFeeRequest, options?: RpcOptions): UnaryCall<BumpFeeRequest, BumpFeeResponse> {
|
||||
const method = this.methods[21], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<BumpFeeRequest, BumpFeeResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* lncli: `wallet bumpforceclosefee`
|
||||
* BumpForceCloseFee is an endpoint that allows users to bump the fee of a
|
||||
* channel force close. This only works for channels with option_anchors.
|
||||
*
|
||||
* @generated from protobuf rpc: BumpForceCloseFee(walletrpc.BumpForceCloseFeeRequest) returns (walletrpc.BumpForceCloseFeeResponse);
|
||||
*/
|
||||
bumpForceCloseFee(input: BumpForceCloseFeeRequest, options?: RpcOptions): UnaryCall<BumpForceCloseFeeRequest, BumpForceCloseFeeResponse> {
|
||||
const method = this.methods[22], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<BumpForceCloseFeeRequest, BumpForceCloseFeeResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* lncli: `wallet listsweeps`
|
||||
* ListSweeps returns a list of the sweep transactions our node has produced.
|
||||
* Note that these sweeps may not be confirmed yet, as we record sweeps on
|
||||
* broadcast, not confirmation.
|
||||
*
|
||||
* @generated from protobuf rpc: ListSweeps(walletrpc.ListSweepsRequest) returns (walletrpc.ListSweepsResponse);
|
||||
*/
|
||||
listSweeps(input: ListSweepsRequest, options?: RpcOptions): UnaryCall<ListSweepsRequest, ListSweepsResponse> {
|
||||
const method = this.methods[23], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListSweepsRequest, ListSweepsResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* lncli: `wallet labeltx`
|
||||
* LabelTransaction adds a label to a transaction. If the transaction already
|
||||
* has a label the call will fail unless the overwrite bool is set. This will
|
||||
* overwrite the existing transaction label. Labels must not be empty, and
|
||||
* cannot exceed 500 characters.
|
||||
*
|
||||
* @generated from protobuf rpc: LabelTransaction(walletrpc.LabelTransactionRequest) returns (walletrpc.LabelTransactionResponse);
|
||||
*/
|
||||
labelTransaction(input: LabelTransactionRequest, options?: RpcOptions): UnaryCall<LabelTransactionRequest, LabelTransactionResponse> {
|
||||
const method = this.methods[24], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<LabelTransactionRequest, LabelTransactionResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* lncli: `wallet psbt fund`
|
||||
* FundPsbt creates a fully populated PSBT that contains enough inputs to fund
|
||||
* the outputs specified in the template. There are three ways a user can
|
||||
* specify what we call the template (a list of inputs and outputs to use in
|
||||
* the PSBT): Either as a PSBT packet directly with no coin selection (using
|
||||
* the legacy "psbt" field), a PSBT with advanced coin selection support (using
|
||||
* the new "coin_select" field) or as a raw RPC message (using the "raw"
|
||||
* field).
|
||||
* The legacy "psbt" and "raw" modes, the following restrictions apply:
|
||||
* 1. If there are no inputs specified in the template, coin selection is
|
||||
* performed automatically.
|
||||
* 2. If the template does contain any inputs, it is assumed that full
|
||||
* coin selection happened externally and no additional inputs are added. If
|
||||
* the specified inputs aren't enough to fund the outputs with the given fee
|
||||
* rate, an error is returned.
|
||||
*
|
||||
* The new "coin_select" mode does not have these restrictions and allows the
|
||||
* user to specify a PSBT with inputs and outputs and still perform coin
|
||||
* selection on top of that.
|
||||
* For all modes this RPC requires any inputs that are specified to be locked
|
||||
* by the user (if they belong to this node in the first place).
|
||||
*
|
||||
* After either selecting or verifying the inputs, all input UTXOs are locked
|
||||
* with an internal app ID.
|
||||
*
|
||||
* NOTE: If this method returns without an error, it is the caller's
|
||||
* responsibility to either spend the locked UTXOs (by finalizing and then
|
||||
* publishing the transaction) or to unlock/release the locked UTXOs in case of
|
||||
* an error on the caller's side.
|
||||
*
|
||||
* @generated from protobuf rpc: FundPsbt(walletrpc.FundPsbtRequest) returns (walletrpc.FundPsbtResponse);
|
||||
*/
|
||||
fundPsbt(input: FundPsbtRequest, options?: RpcOptions): UnaryCall<FundPsbtRequest, FundPsbtResponse> {
|
||||
const method = this.methods[25], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<FundPsbtRequest, FundPsbtResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* SignPsbt expects a partial transaction with all inputs and outputs fully
|
||||
* declared and tries to sign all unsigned inputs that have all required fields
|
||||
* (UTXO information, BIP32 derivation information, witness or sig scripts)
|
||||
* set.
|
||||
* If no error is returned, the PSBT is ready to be given to the next signer or
|
||||
* to be finalized if lnd was the last signer.
|
||||
*
|
||||
* NOTE: This RPC only signs inputs (and only those it can sign), it does not
|
||||
* perform any other tasks (such as coin selection, UTXO locking or
|
||||
* input/output/fee value validation, PSBT finalization). Any input that is
|
||||
* incomplete will be skipped.
|
||||
*
|
||||
* @generated from protobuf rpc: SignPsbt(walletrpc.SignPsbtRequest) returns (walletrpc.SignPsbtResponse);
|
||||
*/
|
||||
signPsbt(input: SignPsbtRequest, options?: RpcOptions): UnaryCall<SignPsbtRequest, SignPsbtResponse> {
|
||||
const method = this.methods[26], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<SignPsbtRequest, SignPsbtResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* lncli: `wallet psbt finalize`
|
||||
* FinalizePsbt expects a partial transaction with all inputs and outputs fully
|
||||
* declared and tries to sign all inputs that belong to the wallet. Lnd must be
|
||||
* the last signer of the transaction. That means, if there are any unsigned
|
||||
* non-witness inputs or inputs without UTXO information attached or inputs
|
||||
* without witness data that do not belong to lnd's wallet, this method will
|
||||
* fail. If no error is returned, the PSBT is ready to be extracted and the
|
||||
* final TX within to be broadcast.
|
||||
*
|
||||
* NOTE: This method does NOT publish the transaction once finalized. It is the
|
||||
* caller's responsibility to either publish the transaction on success or
|
||||
* unlock/release any locked UTXOs in case of an error in this method.
|
||||
*
|
||||
* @generated from protobuf rpc: FinalizePsbt(walletrpc.FinalizePsbtRequest) returns (walletrpc.FinalizePsbtResponse);
|
||||
*/
|
||||
finalizePsbt(input: FinalizePsbtRequest, options?: RpcOptions): UnaryCall<FinalizePsbtRequest, FinalizePsbtResponse> {
|
||||
const method = this.methods[27], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<FinalizePsbtRequest, FinalizePsbtResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
5641
proto/lnd/walletkit.ts
Normal file
5641
proto/lnd/walletkit.ts
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -3,16 +3,16 @@
|
|||
// tslint:disable
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||
import { WalletUnlocker } from "./walletunlocker.js";
|
||||
import type { ChangePasswordResponse } from "./walletunlocker.js";
|
||||
import type { ChangePasswordRequest } from "./walletunlocker.js";
|
||||
import type { UnlockWalletResponse } from "./walletunlocker.js";
|
||||
import type { UnlockWalletRequest } from "./walletunlocker.js";
|
||||
import type { InitWalletResponse } from "./walletunlocker.js";
|
||||
import type { InitWalletRequest } from "./walletunlocker.js";
|
||||
import { WalletUnlocker } from "./walletunlocker";
|
||||
import type { ChangePasswordResponse } from "./walletunlocker";
|
||||
import type { ChangePasswordRequest } from "./walletunlocker";
|
||||
import type { UnlockWalletResponse } from "./walletunlocker";
|
||||
import type { UnlockWalletRequest } from "./walletunlocker";
|
||||
import type { InitWalletResponse } from "./walletunlocker";
|
||||
import type { InitWalletRequest } from "./walletunlocker";
|
||||
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
||||
import type { GenSeedResponse } from "./walletunlocker.js";
|
||||
import type { GenSeedRequest } from "./walletunlocker.js";
|
||||
import type { GenSeedResponse } from "./walletunlocker";
|
||||
import type { GenSeedRequest } from "./walletunlocker";
|
||||
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
||||
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
||||
//
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
|
|||
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
||||
import { MESSAGE_TYPE } from "@protobuf-ts/runtime";
|
||||
import { MessageType } from "@protobuf-ts/runtime";
|
||||
import { ChanBackupSnapshot } from "./lightning.js";
|
||||
import { ChanBackupSnapshot } from "./lightning";
|
||||
/**
|
||||
* @generated from protobuf message lnrpc.GenSeedRequest
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue