Documentation ¶
Overview ¶
Package lnrpc is a generated protocol buffer package.
It is generated from these files:
rpc.proto
It has these top-level messages:
GenSeedRequest GenSeedResponse InitWalletRequest InitWalletResponse UnlockWalletRequest UnlockWalletResponse ChangePasswordRequest ChangePasswordResponse Transaction GetTransactionsRequest TransactionDetails FeeLimit SendRequest SendResponse SendToRouteRequest ChannelPoint LightningAddress SendManyRequest SendManyResponse SendCoinsRequest SendCoinsResponse NewAddressRequest NewAddressResponse SignMessageRequest SignMessageResponse VerifyMessageRequest VerifyMessageResponse ConnectPeerRequest ConnectPeerResponse DisconnectPeerRequest DisconnectPeerResponse HTLC Channel ListChannelsRequest ListChannelsResponse ChannelCloseSummary ClosedChannelsRequest ClosedChannelsResponse Peer ListPeersRequest ListPeersResponse GetInfoRequest GetInfoResponse ConfirmationUpdate ChannelOpenUpdate ChannelCloseUpdate CloseChannelRequest CloseStatusUpdate PendingUpdate OpenChannelRequest OpenStatusUpdate PendingHTLC PendingChannelsRequest PendingChannelsResponse WalletBalanceRequest WalletBalanceResponse ChannelBalanceRequest ChannelBalanceResponse QueryRoutesRequest QueryRoutesResponse Hop Route NodeInfoRequest NodeInfo LightningNode NodeAddress RoutingPolicy ChannelEdge ChannelGraphRequest ChannelGraph ChanInfoRequest NetworkInfoRequest NetworkInfo StopRequest StopResponse GraphTopologySubscription GraphTopologyUpdate NodeUpdate ChannelEdgeUpdate ClosedChannelUpdate HopHint RouteHint Invoice AddInvoiceResponse PaymentHash ListInvoiceRequest ListInvoiceResponse InvoiceSubscription Payment ListPaymentsRequest ListPaymentsResponse DeleteAllPaymentsRequest DeleteAllPaymentsResponse AbandonChannelRequest AbandonChannelResponse DebugLevelRequest DebugLevelResponse PayReqString PayReq FeeReportRequest ChannelFeeReport FeeReportResponse PolicyUpdateRequest PolicyUpdateResponse ForwardingHistoryRequest ForwardingEvent ForwardingHistoryResponse
Package lnrpc is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterLightningHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterLightningHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterLightningServer(s *grpc.Server, srv LightningServer)
- func RegisterWalletUnlockerHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterWalletUnlockerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterWalletUnlockerServer(s *grpc.Server, srv WalletUnlockerServer)
- type AbandonChannelRequest
- type AbandonChannelResponse
- type AddInvoiceResponse
- func (*AddInvoiceResponse) Descriptor() ([]byte, []int)
- func (m *AddInvoiceResponse) GetAddIndex() uint64
- func (m *AddInvoiceResponse) GetPaymentRequest() string
- func (m *AddInvoiceResponse) GetRHash() []byte
- func (*AddInvoiceResponse) ProtoMessage()
- func (m *AddInvoiceResponse) Reset()
- func (m *AddInvoiceResponse) String() string
- type ChanInfoRequest
- type ChangePasswordRequest
- func (*ChangePasswordRequest) Descriptor() ([]byte, []int)
- func (m *ChangePasswordRequest) GetCurrentPassword() []byte
- func (m *ChangePasswordRequest) GetNewPassword() []byte
- func (*ChangePasswordRequest) ProtoMessage()
- func (m *ChangePasswordRequest) Reset()
- func (m *ChangePasswordRequest) String() string
- type ChangePasswordResponse
- type Channel
- func (*Channel) Descriptor() ([]byte, []int)
- func (m *Channel) GetActive() bool
- func (m *Channel) GetCapacity() int64
- func (m *Channel) GetChanId() uint64
- func (m *Channel) GetChannelPoint() string
- func (m *Channel) GetCommitFee() int64
- func (m *Channel) GetCommitWeight() int64
- func (m *Channel) GetCsvDelay() uint32
- func (m *Channel) GetFeePerKw() int64
- func (m *Channel) GetLocalBalance() int64
- func (m *Channel) GetNumUpdates() uint64
- func (m *Channel) GetPendingHtlcs() []*HTLC
- func (m *Channel) GetPrivate() bool
- func (m *Channel) GetRemoteBalance() int64
- func (m *Channel) GetRemotePubkey() string
- func (m *Channel) GetTotalSatoshisReceived() int64
- func (m *Channel) GetTotalSatoshisSent() int64
- func (m *Channel) GetUnsettledBalance() int64
- func (*Channel) ProtoMessage()
- func (m *Channel) Reset()
- func (m *Channel) String() string
- type ChannelBalanceRequest
- type ChannelBalanceResponse
- func (*ChannelBalanceResponse) Descriptor() ([]byte, []int)
- func (m *ChannelBalanceResponse) GetBalance() int64
- func (m *ChannelBalanceResponse) GetPendingOpenBalance() int64
- func (*ChannelBalanceResponse) ProtoMessage()
- func (m *ChannelBalanceResponse) Reset()
- func (m *ChannelBalanceResponse) String() string
- type ChannelCloseSummary
- func (*ChannelCloseSummary) Descriptor() ([]byte, []int)
- func (m *ChannelCloseSummary) GetCapacity() int64
- func (m *ChannelCloseSummary) GetChainHash() string
- func (m *ChannelCloseSummary) GetChanId() uint64
- func (m *ChannelCloseSummary) GetChannelPoint() string
- func (m *ChannelCloseSummary) GetCloseHeight() uint32
- func (m *ChannelCloseSummary) GetCloseType() ChannelCloseSummary_ClosureType
- func (m *ChannelCloseSummary) GetClosingTxHash() string
- func (m *ChannelCloseSummary) GetRemotePubkey() string
- func (m *ChannelCloseSummary) GetSettledBalance() int64
- func (m *ChannelCloseSummary) GetTimeLockedBalance() int64
- func (*ChannelCloseSummary) ProtoMessage()
- func (m *ChannelCloseSummary) Reset()
- func (m *ChannelCloseSummary) String() string
- type ChannelCloseSummary_ClosureType
- type ChannelCloseUpdate
- type ChannelEdge
- func (*ChannelEdge) Descriptor() ([]byte, []int)
- func (m *ChannelEdge) GetCapacity() int64
- func (m *ChannelEdge) GetChanPoint() string
- func (m *ChannelEdge) GetChannelId() uint64
- func (m *ChannelEdge) GetLastUpdate() uint32
- func (m *ChannelEdge) GetNode1Policy() *RoutingPolicy
- func (m *ChannelEdge) GetNode1Pub() string
- func (m *ChannelEdge) GetNode2Policy() *RoutingPolicy
- func (m *ChannelEdge) GetNode2Pub() string
- func (*ChannelEdge) ProtoMessage()
- func (m *ChannelEdge) Reset()
- func (m *ChannelEdge) String() string
- type ChannelEdgeUpdate
- func (*ChannelEdgeUpdate) Descriptor() ([]byte, []int)
- func (m *ChannelEdgeUpdate) GetAdvertisingNode() string
- func (m *ChannelEdgeUpdate) GetCapacity() int64
- func (m *ChannelEdgeUpdate) GetChanId() uint64
- func (m *ChannelEdgeUpdate) GetChanPoint() *ChannelPoint
- func (m *ChannelEdgeUpdate) GetConnectingNode() string
- func (m *ChannelEdgeUpdate) GetRoutingPolicy() *RoutingPolicy
- func (*ChannelEdgeUpdate) ProtoMessage()
- func (m *ChannelEdgeUpdate) Reset()
- func (m *ChannelEdgeUpdate) String() string
- type ChannelFeeReport
- func (*ChannelFeeReport) Descriptor() ([]byte, []int)
- func (m *ChannelFeeReport) GetBaseFeeMsat() int64
- func (m *ChannelFeeReport) GetChanPoint() string
- func (m *ChannelFeeReport) GetFeePerMil() int64
- func (m *ChannelFeeReport) GetFeeRate() float64
- func (*ChannelFeeReport) ProtoMessage()
- func (m *ChannelFeeReport) Reset()
- func (m *ChannelFeeReport) String() string
- type ChannelGraph
- type ChannelGraphRequest
- type ChannelOpenUpdate
- type ChannelPoint
- func (*ChannelPoint) Descriptor() ([]byte, []int)
- func (m *ChannelPoint) GetFundingTxid() isChannelPoint_FundingTxid
- func (m *ChannelPoint) GetFundingTxidBytes() []byte
- func (m *ChannelPoint) GetFundingTxidStr() string
- func (m *ChannelPoint) GetOutputIndex() uint32
- func (*ChannelPoint) ProtoMessage()
- func (m *ChannelPoint) Reset()
- func (m *ChannelPoint) String() string
- func (*ChannelPoint) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type ChannelPoint_FundingTxidBytes
- type ChannelPoint_FundingTxidStr
- type CloseChannelRequest
- func (*CloseChannelRequest) Descriptor() ([]byte, []int)
- func (m *CloseChannelRequest) GetChannelPoint() *ChannelPoint
- func (m *CloseChannelRequest) GetForce() bool
- func (m *CloseChannelRequest) GetSatPerByte() int64
- func (m *CloseChannelRequest) GetTargetConf() int32
- func (*CloseChannelRequest) ProtoMessage()
- func (m *CloseChannelRequest) Reset()
- func (m *CloseChannelRequest) String() string
- type CloseStatusUpdate
- func (*CloseStatusUpdate) Descriptor() ([]byte, []int)
- func (m *CloseStatusUpdate) GetChanClose() *ChannelCloseUpdate
- func (m *CloseStatusUpdate) GetClosePending() *PendingUpdate
- func (m *CloseStatusUpdate) GetConfirmation() *ConfirmationUpdate
- func (m *CloseStatusUpdate) GetUpdate() isCloseStatusUpdate_Update
- func (*CloseStatusUpdate) ProtoMessage()
- func (m *CloseStatusUpdate) Reset()
- func (m *CloseStatusUpdate) String() string
- func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type CloseStatusUpdate_ChanClose
- type CloseStatusUpdate_ClosePending
- type CloseStatusUpdate_Confirmation
- type ClosedChannelUpdate
- func (*ClosedChannelUpdate) Descriptor() ([]byte, []int)
- func (m *ClosedChannelUpdate) GetCapacity() int64
- func (m *ClosedChannelUpdate) GetChanId() uint64
- func (m *ClosedChannelUpdate) GetChanPoint() *ChannelPoint
- func (m *ClosedChannelUpdate) GetClosedHeight() uint32
- func (*ClosedChannelUpdate) ProtoMessage()
- func (m *ClosedChannelUpdate) Reset()
- func (m *ClosedChannelUpdate) String() string
- type ClosedChannelsRequest
- func (*ClosedChannelsRequest) Descriptor() ([]byte, []int)
- func (m *ClosedChannelsRequest) GetAbandoned() bool
- func (m *ClosedChannelsRequest) GetBreach() bool
- func (m *ClosedChannelsRequest) GetCooperative() bool
- func (m *ClosedChannelsRequest) GetFundingCanceled() bool
- func (m *ClosedChannelsRequest) GetLocalForce() bool
- func (m *ClosedChannelsRequest) GetRemoteForce() bool
- func (*ClosedChannelsRequest) ProtoMessage()
- func (m *ClosedChannelsRequest) Reset()
- func (m *ClosedChannelsRequest) String() string
- type ClosedChannelsResponse
- type ConfirmationUpdate
- func (*ConfirmationUpdate) Descriptor() ([]byte, []int)
- func (m *ConfirmationUpdate) GetBlockHeight() int32
- func (m *ConfirmationUpdate) GetBlockSha() []byte
- func (m *ConfirmationUpdate) GetNumConfsLeft() uint32
- func (*ConfirmationUpdate) ProtoMessage()
- func (m *ConfirmationUpdate) Reset()
- func (m *ConfirmationUpdate) String() string
- type ConnectPeerRequest
- type ConnectPeerResponse
- type DebugLevelRequest
- type DebugLevelResponse
- type DeleteAllPaymentsRequest
- type DeleteAllPaymentsResponse
- type DisconnectPeerRequest
- type DisconnectPeerResponse
- type FeeLimit
- func (*FeeLimit) Descriptor() ([]byte, []int)
- func (m *FeeLimit) GetFixed() int64
- func (m *FeeLimit) GetLimit() isFeeLimit_Limit
- func (m *FeeLimit) GetPercent() int64
- func (*FeeLimit) ProtoMessage()
- func (m *FeeLimit) Reset()
- func (m *FeeLimit) String() string
- func (*FeeLimit) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type FeeLimit_Fixed
- type FeeLimit_Percent
- type FeeReportRequest
- type FeeReportResponse
- func (*FeeReportResponse) Descriptor() ([]byte, []int)
- func (m *FeeReportResponse) GetChannelFees() []*ChannelFeeReport
- func (m *FeeReportResponse) GetDayFeeSum() uint64
- func (m *FeeReportResponse) GetMonthFeeSum() uint64
- func (m *FeeReportResponse) GetWeekFeeSum() uint64
- func (*FeeReportResponse) ProtoMessage()
- func (m *FeeReportResponse) Reset()
- func (m *FeeReportResponse) String() string
- type ForwardingEvent
- func (*ForwardingEvent) Descriptor() ([]byte, []int)
- func (m *ForwardingEvent) GetAmtIn() uint64
- func (m *ForwardingEvent) GetAmtOut() uint64
- func (m *ForwardingEvent) GetChanIdIn() uint64
- func (m *ForwardingEvent) GetChanIdOut() uint64
- func (m *ForwardingEvent) GetFee() uint64
- func (m *ForwardingEvent) GetTimestamp() uint64
- func (*ForwardingEvent) ProtoMessage()
- func (m *ForwardingEvent) Reset()
- func (m *ForwardingEvent) String() string
- type ForwardingHistoryRequest
- func (*ForwardingHistoryRequest) Descriptor() ([]byte, []int)
- func (m *ForwardingHistoryRequest) GetEndTime() uint64
- func (m *ForwardingHistoryRequest) GetIndexOffset() uint32
- func (m *ForwardingHistoryRequest) GetNumMaxEvents() uint32
- func (m *ForwardingHistoryRequest) GetStartTime() uint64
- func (*ForwardingHistoryRequest) ProtoMessage()
- func (m *ForwardingHistoryRequest) Reset()
- func (m *ForwardingHistoryRequest) String() string
- type ForwardingHistoryResponse
- func (*ForwardingHistoryResponse) Descriptor() ([]byte, []int)
- func (m *ForwardingHistoryResponse) GetForwardingEvents() []*ForwardingEvent
- func (m *ForwardingHistoryResponse) GetLastOffsetIndex() uint32
- func (*ForwardingHistoryResponse) ProtoMessage()
- func (m *ForwardingHistoryResponse) Reset()
- func (m *ForwardingHistoryResponse) String() string
- type GenSeedRequest
- type GenSeedResponse
- type GetInfoRequest
- type GetInfoResponse
- func (*GetInfoResponse) Descriptor() ([]byte, []int)
- func (m *GetInfoResponse) GetAlias() string
- func (m *GetInfoResponse) GetBestHeaderTimestamp() int64
- func (m *GetInfoResponse) GetBlockHash() string
- func (m *GetInfoResponse) GetBlockHeight() uint32
- func (m *GetInfoResponse) GetChains() []string
- func (m *GetInfoResponse) GetIdentityPubkey() string
- func (m *GetInfoResponse) GetNumActiveChannels() uint32
- func (m *GetInfoResponse) GetNumInactiveChannels() uint32
- func (m *GetInfoResponse) GetNumPeers() uint32
- func (m *GetInfoResponse) GetNumPendingChannels() uint32
- func (m *GetInfoResponse) GetSyncedToChain() bool
- func (m *GetInfoResponse) GetTestnet() bool
- func (m *GetInfoResponse) GetUris() []string
- func (m *GetInfoResponse) GetVersion() string
- func (*GetInfoResponse) ProtoMessage()
- func (m *GetInfoResponse) Reset()
- func (m *GetInfoResponse) String() string
- type GetTransactionsRequest
- type GraphTopologySubscription
- type GraphTopologyUpdate
- func (*GraphTopologyUpdate) Descriptor() ([]byte, []int)
- func (m *GraphTopologyUpdate) GetChannelUpdates() []*ChannelEdgeUpdate
- func (m *GraphTopologyUpdate) GetClosedChans() []*ClosedChannelUpdate
- func (m *GraphTopologyUpdate) GetNodeUpdates() []*NodeUpdate
- func (*GraphTopologyUpdate) ProtoMessage()
- func (m *GraphTopologyUpdate) Reset()
- func (m *GraphTopologyUpdate) String() string
- type HTLC
- type Hop
- func (*Hop) Descriptor() ([]byte, []int)
- func (m *Hop) GetAmtToForward() int64
- func (m *Hop) GetAmtToForwardMsat() int64
- func (m *Hop) GetChanCapacity() int64
- func (m *Hop) GetChanId() uint64
- func (m *Hop) GetExpiry() uint32
- func (m *Hop) GetFee() int64
- func (m *Hop) GetFeeMsat() int64
- func (m *Hop) GetPubKey() string
- func (*Hop) ProtoMessage()
- func (m *Hop) Reset()
- func (m *Hop) String() string
- type HopHint
- func (*HopHint) Descriptor() ([]byte, []int)
- func (m *HopHint) GetChanId() uint64
- func (m *HopHint) GetCltvExpiryDelta() uint32
- func (m *HopHint) GetFeeBaseMsat() uint32
- func (m *HopHint) GetFeeProportionalMillionths() uint32
- func (m *HopHint) GetNodeId() string
- func (*HopHint) ProtoMessage()
- func (m *HopHint) Reset()
- func (m *HopHint) String() string
- type InitWalletRequest
- func (*InitWalletRequest) Descriptor() ([]byte, []int)
- func (m *InitWalletRequest) GetAezeedPassphrase() []byte
- func (m *InitWalletRequest) GetCipherSeedMnemonic() []string
- func (m *InitWalletRequest) GetRecoveryWindow() int32
- func (m *InitWalletRequest) GetWalletPassword() []byte
- func (*InitWalletRequest) ProtoMessage()
- func (m *InitWalletRequest) Reset()
- func (m *InitWalletRequest) String() string
- type InitWalletResponse
- type Invoice
- func (*Invoice) Descriptor() ([]byte, []int)
- func (m *Invoice) GetAddIndex() uint64
- func (m *Invoice) GetAmtPaid() int64
- func (m *Invoice) GetAmtPaidMsat() int64
- func (m *Invoice) GetAmtPaidSat() int64
- func (m *Invoice) GetCltvExpiry() uint64
- func (m *Invoice) GetCreationDate() int64
- func (m *Invoice) GetDescriptionHash() []byte
- func (m *Invoice) GetExpiry() int64
- func (m *Invoice) GetFallbackAddr() string
- func (m *Invoice) GetMemo() string
- func (m *Invoice) GetPaymentRequest() string
- func (m *Invoice) GetPrivate() bool
- func (m *Invoice) GetRHash() []byte
- func (m *Invoice) GetRPreimage() []byte
- func (m *Invoice) GetReceipt() []byte
- func (m *Invoice) GetRouteHints() []*RouteHint
- func (m *Invoice) GetSettleDate() int64
- func (m *Invoice) GetSettleIndex() uint64
- func (m *Invoice) GetSettled() bool
- func (m *Invoice) GetValue() int64
- func (*Invoice) ProtoMessage()
- func (m *Invoice) Reset()
- func (m *Invoice) String() string
- type InvoiceSubscription
- type LightningAddress
- type LightningClient
- type LightningNode
- func (*LightningNode) Descriptor() ([]byte, []int)
- func (m *LightningNode) GetAddresses() []*NodeAddress
- func (m *LightningNode) GetAlias() string
- func (m *LightningNode) GetColor() string
- func (m *LightningNode) GetLastUpdate() uint32
- func (m *LightningNode) GetPubKey() string
- func (*LightningNode) ProtoMessage()
- func (m *LightningNode) Reset()
- func (m *LightningNode) String() string
- type LightningServer
- type Lightning_CloseChannelClient
- type Lightning_CloseChannelServer
- type Lightning_OpenChannelClient
- type Lightning_OpenChannelServer
- type Lightning_SendPaymentClient
- type Lightning_SendPaymentServer
- type Lightning_SendToRouteClient
- type Lightning_SendToRouteServer
- type Lightning_SubscribeChannelGraphClient
- type Lightning_SubscribeChannelGraphServer
- type Lightning_SubscribeInvoicesClient
- type Lightning_SubscribeInvoicesServer
- type Lightning_SubscribeTransactionsClient
- type Lightning_SubscribeTransactionsServer
- type ListChannelsRequest
- func (*ListChannelsRequest) Descriptor() ([]byte, []int)
- func (m *ListChannelsRequest) GetActiveOnly() bool
- func (m *ListChannelsRequest) GetInactiveOnly() bool
- func (m *ListChannelsRequest) GetPrivateOnly() bool
- func (m *ListChannelsRequest) GetPublicOnly() bool
- func (*ListChannelsRequest) ProtoMessage()
- func (m *ListChannelsRequest) Reset()
- func (m *ListChannelsRequest) String() string
- type ListChannelsResponse
- type ListInvoiceRequest
- func (*ListInvoiceRequest) Descriptor() ([]byte, []int)
- func (m *ListInvoiceRequest) GetIndexOffset() uint64
- func (m *ListInvoiceRequest) GetNumMaxInvoices() uint64
- func (m *ListInvoiceRequest) GetPendingOnly() bool
- func (m *ListInvoiceRequest) GetReversed() bool
- func (*ListInvoiceRequest) ProtoMessage()
- func (m *ListInvoiceRequest) Reset()
- func (m *ListInvoiceRequest) String() string
- type ListInvoiceResponse
- func (*ListInvoiceResponse) Descriptor() ([]byte, []int)
- func (m *ListInvoiceResponse) GetFirstIndexOffset() uint64
- func (m *ListInvoiceResponse) GetInvoices() []*Invoice
- func (m *ListInvoiceResponse) GetLastIndexOffset() uint64
- func (*ListInvoiceResponse) ProtoMessage()
- func (m *ListInvoiceResponse) Reset()
- func (m *ListInvoiceResponse) String() string
- type ListPaymentsRequest
- type ListPaymentsResponse
- type ListPeersRequest
- type ListPeersResponse
- type NetworkInfo
- func (*NetworkInfo) Descriptor() ([]byte, []int)
- func (m *NetworkInfo) GetAvgChannelSize() float64
- func (m *NetworkInfo) GetAvgOutDegree() float64
- func (m *NetworkInfo) GetGraphDiameter() uint32
- func (m *NetworkInfo) GetMaxChannelSize() int64
- func (m *NetworkInfo) GetMaxOutDegree() uint32
- func (m *NetworkInfo) GetMinChannelSize() int64
- func (m *NetworkInfo) GetNumChannels() uint32
- func (m *NetworkInfo) GetNumNodes() uint32
- func (m *NetworkInfo) GetTotalNetworkCapacity() int64
- func (*NetworkInfo) ProtoMessage()
- func (m *NetworkInfo) Reset()
- func (m *NetworkInfo) String() string
- type NetworkInfoRequest
- type NewAddressRequest
- type NewAddressRequest_AddressType
- type NewAddressResponse
- type NodeAddress
- type NodeInfo
- type NodeInfoRequest
- type NodeUpdate
- func (*NodeUpdate) Descriptor() ([]byte, []int)
- func (m *NodeUpdate) GetAddresses() []string
- func (m *NodeUpdate) GetAlias() string
- func (m *NodeUpdate) GetGlobalFeatures() []byte
- func (m *NodeUpdate) GetIdentityKey() string
- func (*NodeUpdate) ProtoMessage()
- func (m *NodeUpdate) Reset()
- func (m *NodeUpdate) String() string
- type OpenChannelRequest
- func (*OpenChannelRequest) Descriptor() ([]byte, []int)
- func (m *OpenChannelRequest) GetLocalFundingAmount() int64
- func (m *OpenChannelRequest) GetMinConfs() int32
- func (m *OpenChannelRequest) GetMinHtlcMsat() int64
- func (m *OpenChannelRequest) GetNodePubkey() []byte
- func (m *OpenChannelRequest) GetNodePubkeyString() string
- func (m *OpenChannelRequest) GetPrivate() bool
- func (m *OpenChannelRequest) GetPushSat() int64
- func (m *OpenChannelRequest) GetRemoteCsvDelay() uint32
- func (m *OpenChannelRequest) GetSatPerByte() int64
- func (m *OpenChannelRequest) GetSpendUnconfirmed() bool
- func (m *OpenChannelRequest) GetTargetConf() int32
- func (*OpenChannelRequest) ProtoMessage()
- func (m *OpenChannelRequest) Reset()
- func (m *OpenChannelRequest) String() string
- type OpenStatusUpdate
- func (*OpenStatusUpdate) Descriptor() ([]byte, []int)
- func (m *OpenStatusUpdate) GetChanOpen() *ChannelOpenUpdate
- func (m *OpenStatusUpdate) GetChanPending() *PendingUpdate
- func (m *OpenStatusUpdate) GetConfirmation() *ConfirmationUpdate
- func (m *OpenStatusUpdate) GetUpdate() isOpenStatusUpdate_Update
- func (*OpenStatusUpdate) ProtoMessage()
- func (m *OpenStatusUpdate) Reset()
- func (m *OpenStatusUpdate) String() string
- func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type OpenStatusUpdate_ChanOpen
- type OpenStatusUpdate_ChanPending
- type OpenStatusUpdate_Confirmation
- type PayReq
- func (*PayReq) Descriptor() ([]byte, []int)
- func (m *PayReq) GetCltvExpiry() int64
- func (m *PayReq) GetDescription() string
- func (m *PayReq) GetDescriptionHash() string
- func (m *PayReq) GetDestination() string
- func (m *PayReq) GetExpiry() int64
- func (m *PayReq) GetFallbackAddr() string
- func (m *PayReq) GetNumSatoshis() int64
- func (m *PayReq) GetPaymentHash() string
- func (m *PayReq) GetRouteHints() []*RouteHint
- func (m *PayReq) GetTimestamp() int64
- func (*PayReq) ProtoMessage()
- func (m *PayReq) Reset()
- func (m *PayReq) String() string
- type PayReqString
- type Payment
- func (*Payment) Descriptor() ([]byte, []int)
- func (m *Payment) GetCreationDate() int64
- func (m *Payment) GetFee() int64
- func (m *Payment) GetPath() []string
- func (m *Payment) GetPaymentHash() string
- func (m *Payment) GetPaymentPreimage() string
- func (m *Payment) GetValue() int64
- func (m *Payment) GetValueMsat() int64
- func (m *Payment) GetValueSat() int64
- func (*Payment) ProtoMessage()
- func (m *Payment) Reset()
- func (m *Payment) String() string
- type PaymentHash
- type Peer
- func (*Peer) Descriptor() ([]byte, []int)
- func (m *Peer) GetAddress() string
- func (m *Peer) GetBytesRecv() uint64
- func (m *Peer) GetBytesSent() uint64
- func (m *Peer) GetInbound() bool
- func (m *Peer) GetPingTime() int64
- func (m *Peer) GetPubKey() string
- func (m *Peer) GetSatRecv() int64
- func (m *Peer) GetSatSent() int64
- func (*Peer) ProtoMessage()
- func (m *Peer) Reset()
- func (m *Peer) String() string
- type PendingChannelsRequest
- type PendingChannelsResponse
- func (*PendingChannelsResponse) Descriptor() ([]byte, []int)
- func (m *PendingChannelsResponse) GetPendingClosingChannels() []*PendingChannelsResponse_ClosedChannel
- func (m *PendingChannelsResponse) GetPendingForceClosingChannels() []*PendingChannelsResponse_ForceClosedChannel
- func (m *PendingChannelsResponse) GetPendingOpenChannels() []*PendingChannelsResponse_PendingOpenChannel
- func (m *PendingChannelsResponse) GetTotalLimboBalance() int64
- func (m *PendingChannelsResponse) GetWaitingCloseChannels() []*PendingChannelsResponse_WaitingCloseChannel
- func (*PendingChannelsResponse) ProtoMessage()
- func (m *PendingChannelsResponse) Reset()
- func (m *PendingChannelsResponse) String() string
- type PendingChannelsResponse_ClosedChannel
- func (*PendingChannelsResponse_ClosedChannel) Descriptor() ([]byte, []int)
- func (m *PendingChannelsResponse_ClosedChannel) GetChannel() *PendingChannelsResponse_PendingChannel
- func (m *PendingChannelsResponse_ClosedChannel) GetClosingTxid() string
- func (*PendingChannelsResponse_ClosedChannel) ProtoMessage()
- func (m *PendingChannelsResponse_ClosedChannel) Reset()
- func (m *PendingChannelsResponse_ClosedChannel) String() string
- type PendingChannelsResponse_ForceClosedChannel
- func (*PendingChannelsResponse_ForceClosedChannel) Descriptor() ([]byte, []int)
- func (m *PendingChannelsResponse_ForceClosedChannel) GetBlocksTilMaturity() int32
- func (m *PendingChannelsResponse_ForceClosedChannel) GetChannel() *PendingChannelsResponse_PendingChannel
- func (m *PendingChannelsResponse_ForceClosedChannel) GetClosingTxid() string
- func (m *PendingChannelsResponse_ForceClosedChannel) GetLimboBalance() int64
- func (m *PendingChannelsResponse_ForceClosedChannel) GetMaturityHeight() uint32
- func (m *PendingChannelsResponse_ForceClosedChannel) GetPendingHtlcs() []*PendingHTLC
- func (m *PendingChannelsResponse_ForceClosedChannel) GetRecoveredBalance() int64
- func (*PendingChannelsResponse_ForceClosedChannel) ProtoMessage()
- func (m *PendingChannelsResponse_ForceClosedChannel) Reset()
- func (m *PendingChannelsResponse_ForceClosedChannel) String() string
- type PendingChannelsResponse_PendingChannel
- func (*PendingChannelsResponse_PendingChannel) Descriptor() ([]byte, []int)
- func (m *PendingChannelsResponse_PendingChannel) GetCapacity() int64
- func (m *PendingChannelsResponse_PendingChannel) GetChannelPoint() string
- func (m *PendingChannelsResponse_PendingChannel) GetLocalBalance() int64
- func (m *PendingChannelsResponse_PendingChannel) GetRemoteBalance() int64
- func (m *PendingChannelsResponse_PendingChannel) GetRemoteNodePub() string
- func (*PendingChannelsResponse_PendingChannel) ProtoMessage()
- func (m *PendingChannelsResponse_PendingChannel) Reset()
- func (m *PendingChannelsResponse_PendingChannel) String() string
- type PendingChannelsResponse_PendingOpenChannel
- func (*PendingChannelsResponse_PendingOpenChannel) Descriptor() ([]byte, []int)
- func (m *PendingChannelsResponse_PendingOpenChannel) GetChannel() *PendingChannelsResponse_PendingChannel
- func (m *PendingChannelsResponse_PendingOpenChannel) GetCommitFee() int64
- func (m *PendingChannelsResponse_PendingOpenChannel) GetCommitWeight() int64
- func (m *PendingChannelsResponse_PendingOpenChannel) GetConfirmationHeight() uint32
- func (m *PendingChannelsResponse_PendingOpenChannel) GetFeePerKw() int64
- func (*PendingChannelsResponse_PendingOpenChannel) ProtoMessage()
- func (m *PendingChannelsResponse_PendingOpenChannel) Reset()
- func (m *PendingChannelsResponse_PendingOpenChannel) String() string
- type PendingChannelsResponse_WaitingCloseChannel
- func (*PendingChannelsResponse_WaitingCloseChannel) Descriptor() ([]byte, []int)
- func (m *PendingChannelsResponse_WaitingCloseChannel) GetChannel() *PendingChannelsResponse_PendingChannel
- func (m *PendingChannelsResponse_WaitingCloseChannel) GetLimboBalance() int64
- func (*PendingChannelsResponse_WaitingCloseChannel) ProtoMessage()
- func (m *PendingChannelsResponse_WaitingCloseChannel) Reset()
- func (m *PendingChannelsResponse_WaitingCloseChannel) String() string
- type PendingHTLC
- func (*PendingHTLC) Descriptor() ([]byte, []int)
- func (m *PendingHTLC) GetAmount() int64
- func (m *PendingHTLC) GetBlocksTilMaturity() int32
- func (m *PendingHTLC) GetIncoming() bool
- func (m *PendingHTLC) GetMaturityHeight() uint32
- func (m *PendingHTLC) GetOutpoint() string
- func (m *PendingHTLC) GetStage() uint32
- func (*PendingHTLC) ProtoMessage()
- func (m *PendingHTLC) Reset()
- func (m *PendingHTLC) String() string
- type PendingUpdate
- type PolicyUpdateRequest
- func (*PolicyUpdateRequest) Descriptor() ([]byte, []int)
- func (m *PolicyUpdateRequest) GetBaseFeeMsat() int64
- func (m *PolicyUpdateRequest) GetChanPoint() *ChannelPoint
- func (m *PolicyUpdateRequest) GetFeeRate() float64
- func (m *PolicyUpdateRequest) GetGlobal() bool
- func (m *PolicyUpdateRequest) GetScope() isPolicyUpdateRequest_Scope
- func (m *PolicyUpdateRequest) GetTimeLockDelta() uint32
- func (*PolicyUpdateRequest) ProtoMessage()
- func (m *PolicyUpdateRequest) Reset()
- func (m *PolicyUpdateRequest) String() string
- func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type PolicyUpdateRequest_ChanPoint
- type PolicyUpdateRequest_Global
- type PolicyUpdateResponse
- type QueryRoutesRequest
- func (*QueryRoutesRequest) Descriptor() ([]byte, []int)
- func (m *QueryRoutesRequest) GetAmt() int64
- func (m *QueryRoutesRequest) GetFeeLimit() *FeeLimit
- func (m *QueryRoutesRequest) GetFinalCltvDelta() int32
- func (m *QueryRoutesRequest) GetNumRoutes() int32
- func (m *QueryRoutesRequest) GetPubKey() string
- func (*QueryRoutesRequest) ProtoMessage()
- func (m *QueryRoutesRequest) Reset()
- func (m *QueryRoutesRequest) String() string
- type QueryRoutesResponse
- type Route
- func (*Route) Descriptor() ([]byte, []int)
- func (m *Route) GetHops() []*Hop
- func (m *Route) GetTotalAmt() int64
- func (m *Route) GetTotalAmtMsat() int64
- func (m *Route) GetTotalFees() int64
- func (m *Route) GetTotalFeesMsat() int64
- func (m *Route) GetTotalTimeLock() uint32
- func (*Route) ProtoMessage()
- func (m *Route) Reset()
- func (m *Route) String() string
- type RouteHint
- type RoutingPolicy
- func (*RoutingPolicy) Descriptor() ([]byte, []int)
- func (m *RoutingPolicy) GetDisabled() bool
- func (m *RoutingPolicy) GetFeeBaseMsat() int64
- func (m *RoutingPolicy) GetFeeRateMilliMsat() int64
- func (m *RoutingPolicy) GetMinHtlc() int64
- func (m *RoutingPolicy) GetTimeLockDelta() uint32
- func (*RoutingPolicy) ProtoMessage()
- func (m *RoutingPolicy) Reset()
- func (m *RoutingPolicy) String() string
- type SendCoinsRequest
- func (*SendCoinsRequest) Descriptor() ([]byte, []int)
- func (m *SendCoinsRequest) GetAddr() string
- func (m *SendCoinsRequest) GetAmount() int64
- func (m *SendCoinsRequest) GetSatPerByte() int64
- func (m *SendCoinsRequest) GetTargetConf() int32
- func (*SendCoinsRequest) ProtoMessage()
- func (m *SendCoinsRequest) Reset()
- func (m *SendCoinsRequest) String() string
- type SendCoinsResponse
- type SendManyRequest
- func (*SendManyRequest) Descriptor() ([]byte, []int)
- func (m *SendManyRequest) GetAddrToAmount() map[string]int64
- func (m *SendManyRequest) GetSatPerByte() int64
- func (m *SendManyRequest) GetTargetConf() int32
- func (*SendManyRequest) ProtoMessage()
- func (m *SendManyRequest) Reset()
- func (m *SendManyRequest) String() string
- type SendManyResponse
- type SendRequest
- func (*SendRequest) Descriptor() ([]byte, []int)
- func (m *SendRequest) GetAmt() int64
- func (m *SendRequest) GetDest() []byte
- func (m *SendRequest) GetDestString() string
- func (m *SendRequest) GetFeeLimit() *FeeLimit
- func (m *SendRequest) GetFinalCltvDelta() int32
- func (m *SendRequest) GetPaymentHash() []byte
- func (m *SendRequest) GetPaymentHashString() string
- func (m *SendRequest) GetPaymentRequest() string
- func (*SendRequest) ProtoMessage()
- func (m *SendRequest) Reset()
- func (m *SendRequest) String() string
- type SendResponse
- func (*SendResponse) Descriptor() ([]byte, []int)
- func (m *SendResponse) GetPaymentError() string
- func (m *SendResponse) GetPaymentPreimage() []byte
- func (m *SendResponse) GetPaymentRoute() *Route
- func (*SendResponse) ProtoMessage()
- func (m *SendResponse) Reset()
- func (m *SendResponse) String() string
- type SendToRouteRequest
- func (*SendToRouteRequest) Descriptor() ([]byte, []int)
- func (m *SendToRouteRequest) GetPaymentHash() []byte
- func (m *SendToRouteRequest) GetPaymentHashString() string
- func (m *SendToRouteRequest) GetRoutes() []*Route
- func (*SendToRouteRequest) ProtoMessage()
- func (m *SendToRouteRequest) Reset()
- func (m *SendToRouteRequest) String() string
- type SignMessageRequest
- type SignMessageResponse
- type StopRequest
- type StopResponse
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)
- func (m *Transaction) GetAmount() int64
- func (m *Transaction) GetBlockHash() string
- func (m *Transaction) GetBlockHeight() int32
- func (m *Transaction) GetDestAddresses() []string
- func (m *Transaction) GetNumConfirmations() int32
- func (m *Transaction) GetTimeStamp() int64
- func (m *Transaction) GetTotalFees() int64
- func (m *Transaction) GetTxHash() string
- func (*Transaction) ProtoMessage()
- func (m *Transaction) Reset()
- func (m *Transaction) String() string
- type TransactionDetails
- type UnlockWalletRequest
- type UnlockWalletResponse
- type VerifyMessageRequest
- type VerifyMessageResponse
- type WalletBalanceRequest
- type WalletBalanceResponse
- func (*WalletBalanceResponse) Descriptor() ([]byte, []int)
- func (m *WalletBalanceResponse) GetConfirmedBalance() int64
- func (m *WalletBalanceResponse) GetTotalBalance() int64
- func (m *WalletBalanceResponse) GetUnconfirmedBalance() int64
- func (*WalletBalanceResponse) ProtoMessage()
- func (m *WalletBalanceResponse) Reset()
- func (m *WalletBalanceResponse) String() string
- type WalletUnlockerClient
- type WalletUnlockerServer
Constants ¶
This section is empty.
Variables ¶
var ChannelCloseSummary_ClosureType_name = map[int32]string{
0: "COOPERATIVE_CLOSE",
1: "LOCAL_FORCE_CLOSE",
2: "REMOTE_FORCE_CLOSE",
3: "BREACH_CLOSE",
4: "FUNDING_CANCELED",
5: "ABANDONED",
}
var ChannelCloseSummary_ClosureType_value = map[string]int32{
"COOPERATIVE_CLOSE": 0,
"LOCAL_FORCE_CLOSE": 1,
"REMOTE_FORCE_CLOSE": 2,
"BREACH_CLOSE": 3,
"FUNDING_CANCELED": 4,
"ABANDONED": 5,
}
var NewAddressRequest_AddressType_name = map[int32]string{
0: "WITNESS_PUBKEY_HASH",
1: "NESTED_PUBKEY_HASH",
}
var NewAddressRequest_AddressType_value = map[string]int32{
"WITNESS_PUBKEY_HASH": 0,
"NESTED_PUBKEY_HASH": 1,
}
Functions ¶
func RegisterLightningHandler ¶
func RegisterLightningHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterLightningHandler registers the http handlers for service Lightning to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterLightningHandlerFromEndpoint ¶
func RegisterLightningHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterLightningHandlerFromEndpoint is same as RegisterLightningHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterLightningServer ¶
func RegisterLightningServer(s *grpc.Server, srv LightningServer)
func RegisterWalletUnlockerHandler ¶
func RegisterWalletUnlockerHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterWalletUnlockerHandler registers the http handlers for service WalletUnlocker to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterWalletUnlockerHandlerFromEndpoint ¶
func RegisterWalletUnlockerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterWalletUnlockerHandlerFromEndpoint is same as RegisterWalletUnlockerHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterWalletUnlockerServer ¶
func RegisterWalletUnlockerServer(s *grpc.Server, srv WalletUnlockerServer)
Types ¶
type AbandonChannelRequest ¶
type AbandonChannelRequest struct {
ChannelPoint *ChannelPoint `protobuf:"bytes,1,opt,name=channel_point,json=channelPoint" json:"channel_point,omitempty"`
}
func (*AbandonChannelRequest) Descriptor ¶
func (*AbandonChannelRequest) Descriptor() ([]byte, []int)
func (*AbandonChannelRequest) GetChannelPoint ¶
func (m *AbandonChannelRequest) GetChannelPoint() *ChannelPoint
func (*AbandonChannelRequest) ProtoMessage ¶
func (*AbandonChannelRequest) ProtoMessage()
func (*AbandonChannelRequest) Reset ¶
func (m *AbandonChannelRequest) Reset()
func (*AbandonChannelRequest) String ¶
func (m *AbandonChannelRequest) String() string
type AbandonChannelResponse ¶
type AbandonChannelResponse struct { }
func (*AbandonChannelResponse) Descriptor ¶
func (*AbandonChannelResponse) Descriptor() ([]byte, []int)
func (*AbandonChannelResponse) ProtoMessage ¶
func (*AbandonChannelResponse) ProtoMessage()
func (*AbandonChannelResponse) Reset ¶
func (m *AbandonChannelResponse) Reset()
func (*AbandonChannelResponse) String ¶
func (m *AbandonChannelResponse) String() string
type AddInvoiceResponse ¶
type AddInvoiceResponse struct { RHash []byte `protobuf:"bytes,1,opt,name=r_hash,proto3" json:"r_hash,omitempty"` // * // A bare-bones invoice for a payment within the Lightning Network. With the // details of the invoice, the sender has all the data necessary to send a // payment to the recipient. PaymentRequest string `protobuf:"bytes,2,opt,name=payment_request" json:"payment_request,omitempty"` // * // The "add" index of this invoice. Each newly created invoice will increment // this index making it monotonically increasing. Callers to the // SubscribeInvoices call can use this to instantly get notified of all added // invoices with an add_index greater than this one. AddIndex uint64 `protobuf:"varint,16,opt,name=add_index" json:"add_index,omitempty"` }
func (*AddInvoiceResponse) Descriptor ¶
func (*AddInvoiceResponse) Descriptor() ([]byte, []int)
func (*AddInvoiceResponse) GetAddIndex ¶
func (m *AddInvoiceResponse) GetAddIndex() uint64
func (*AddInvoiceResponse) GetPaymentRequest ¶
func (m *AddInvoiceResponse) GetPaymentRequest() string
func (*AddInvoiceResponse) GetRHash ¶
func (m *AddInvoiceResponse) GetRHash() []byte
func (*AddInvoiceResponse) ProtoMessage ¶
func (*AddInvoiceResponse) ProtoMessage()
func (*AddInvoiceResponse) Reset ¶
func (m *AddInvoiceResponse) Reset()
func (*AddInvoiceResponse) String ¶
func (m *AddInvoiceResponse) String() string
type ChanInfoRequest ¶
type ChanInfoRequest struct { // * // The unique channel ID for the channel. The first 3 bytes are the block // height, the next 3 the index within the block, and the last 2 bytes are the // output index for the channel. ChanId uint64 `protobuf:"varint,1,opt,name=chan_id,json=chanId" json:"chan_id,omitempty"` }
func (*ChanInfoRequest) Descriptor ¶
func (*ChanInfoRequest) Descriptor() ([]byte, []int)
func (*ChanInfoRequest) GetChanId ¶
func (m *ChanInfoRequest) GetChanId() uint64
func (*ChanInfoRequest) ProtoMessage ¶
func (*ChanInfoRequest) ProtoMessage()
func (*ChanInfoRequest) Reset ¶
func (m *ChanInfoRequest) Reset()
func (*ChanInfoRequest) String ¶
func (m *ChanInfoRequest) String() string
type ChangePasswordRequest ¶
type ChangePasswordRequest struct { // * // current_password should be the current valid passphrase used to unlock the // daemon. CurrentPassword []byte `protobuf:"bytes,1,opt,name=current_password,json=currentPassword,proto3" json:"current_password,omitempty"` // * // new_password should be the new passphrase that will be needed to unlock the // daemon. NewPassword []byte `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` }
func (*ChangePasswordRequest) Descriptor ¶
func (*ChangePasswordRequest) Descriptor() ([]byte, []int)
func (*ChangePasswordRequest) GetCurrentPassword ¶
func (m *ChangePasswordRequest) GetCurrentPassword() []byte
func (*ChangePasswordRequest) GetNewPassword ¶
func (m *ChangePasswordRequest) GetNewPassword() []byte
func (*ChangePasswordRequest) ProtoMessage ¶
func (*ChangePasswordRequest) ProtoMessage()
func (*ChangePasswordRequest) Reset ¶
func (m *ChangePasswordRequest) Reset()
func (*ChangePasswordRequest) String ¶
func (m *ChangePasswordRequest) String() string
type ChangePasswordResponse ¶
type ChangePasswordResponse struct { }
func (*ChangePasswordResponse) Descriptor ¶
func (*ChangePasswordResponse) Descriptor() ([]byte, []int)
func (*ChangePasswordResponse) ProtoMessage ¶
func (*ChangePasswordResponse) ProtoMessage()
func (*ChangePasswordResponse) Reset ¶
func (m *ChangePasswordResponse) Reset()
func (*ChangePasswordResponse) String ¶
func (m *ChangePasswordResponse) String() string
type Channel ¶
type Channel struct { // / Whether this channel is active or not Active bool `protobuf:"varint,1,opt,name=active" json:"active,omitempty"` // / The identity pubkey of the remote node RemotePubkey string `protobuf:"bytes,2,opt,name=remote_pubkey" json:"remote_pubkey,omitempty"` // * // The outpoint (txid:index) of the funding transaction. With this value, Bob // will be able to generate a signature for Alice's version of the commitment // transaction. ChannelPoint string `protobuf:"bytes,3,opt,name=channel_point" json:"channel_point,omitempty"` // * // The unique channel ID for the channel. The first 3 bytes are the block // height, the next 3 the index within the block, and the last 2 bytes are the // output index for the channel. ChanId uint64 `protobuf:"varint,4,opt,name=chan_id" json:"chan_id,omitempty"` // / The total amount of funds held in this channel Capacity int64 `protobuf:"varint,5,opt,name=capacity" json:"capacity,omitempty"` // / This node's current balance in this channel LocalBalance int64 `protobuf:"varint,6,opt,name=local_balance" json:"local_balance,omitempty"` // / The counterparty's current balance in this channel RemoteBalance int64 `protobuf:"varint,7,opt,name=remote_balance" json:"remote_balance,omitempty"` // * // The amount calculated to be paid in fees for the current set of commitment // transactions. The fee amount is persisted with the channel in order to // allow the fee amount to be removed and recalculated with each channel state // update, including updates that happen after a system restart. CommitFee int64 `protobuf:"varint,8,opt,name=commit_fee" json:"commit_fee,omitempty"` // / The weight of the commitment transaction CommitWeight int64 `protobuf:"varint,9,opt,name=commit_weight" json:"commit_weight,omitempty"` // * // The required number of satoshis per kilo-weight that the requester will pay // at all times, for both the funding transaction and commitment transaction. // This value can later be updated once the channel is open. FeePerKw int64 `protobuf:"varint,10,opt,name=fee_per_kw" json:"fee_per_kw,omitempty"` // / The unsettled balance in this channel UnsettledBalance int64 `protobuf:"varint,11,opt,name=unsettled_balance" json:"unsettled_balance,omitempty"` // * // The total number of satoshis we've sent within this channel. TotalSatoshisSent int64 `protobuf:"varint,12,opt,name=total_satoshis_sent" json:"total_satoshis_sent,omitempty"` // * // The total number of satoshis we've received within this channel. TotalSatoshisReceived int64 `protobuf:"varint,13,opt,name=total_satoshis_received" json:"total_satoshis_received,omitempty"` // * // The total number of updates conducted within this channel. NumUpdates uint64 `protobuf:"varint,14,opt,name=num_updates" json:"num_updates,omitempty"` // * // The list of active, uncleared HTLCs currently pending within the channel. PendingHtlcs []*HTLC `protobuf:"bytes,15,rep,name=pending_htlcs" json:"pending_htlcs,omitempty"` // * // The CSV delay expressed in relative blocks. If the channel is force // closed, we'll need to wait for this many blocks before we can regain our // funds. CsvDelay uint32 `protobuf:"varint,16,opt,name=csv_delay" json:"csv_delay,omitempty"` // / Whether this channel is advertised to the network or not Private bool `protobuf:"varint,17,opt,name=private" json:"private,omitempty"` }
func (*Channel) Descriptor ¶
func (*Channel) GetCapacity ¶
func (*Channel) GetChannelPoint ¶
func (*Channel) GetCommitFee ¶
func (*Channel) GetCommitWeight ¶
func (*Channel) GetCsvDelay ¶
func (*Channel) GetFeePerKw ¶
func (*Channel) GetLocalBalance ¶
func (*Channel) GetNumUpdates ¶
func (*Channel) GetPendingHtlcs ¶
func (*Channel) GetPrivate ¶
func (*Channel) GetRemoteBalance ¶
func (*Channel) GetRemotePubkey ¶
func (*Channel) GetTotalSatoshisReceived ¶
func (*Channel) GetTotalSatoshisSent ¶
func (*Channel) GetUnsettledBalance ¶
func (*Channel) ProtoMessage ¶
func (*Channel) ProtoMessage()
type ChannelBalanceRequest ¶
type ChannelBalanceRequest struct { }
func (*ChannelBalanceRequest) Descriptor ¶
func (*ChannelBalanceRequest) Descriptor() ([]byte, []int)
func (*ChannelBalanceRequest) ProtoMessage ¶
func (*ChannelBalanceRequest) ProtoMessage()
func (*ChannelBalanceRequest) Reset ¶
func (m *ChannelBalanceRequest) Reset()
func (*ChannelBalanceRequest) String ¶
func (m *ChannelBalanceRequest) String() string
type ChannelBalanceResponse ¶
type ChannelBalanceResponse struct { // / Sum of channels balances denominated in satoshis Balance int64 `protobuf:"varint,1,opt,name=balance" json:"balance,omitempty"` // / Sum of channels pending balances denominated in satoshis PendingOpenBalance int64 `protobuf:"varint,2,opt,name=pending_open_balance" json:"pending_open_balance,omitempty"` }
func (*ChannelBalanceResponse) Descriptor ¶
func (*ChannelBalanceResponse) Descriptor() ([]byte, []int)
func (*ChannelBalanceResponse) GetBalance ¶
func (m *ChannelBalanceResponse) GetBalance() int64
func (*ChannelBalanceResponse) GetPendingOpenBalance ¶
func (m *ChannelBalanceResponse) GetPendingOpenBalance() int64
func (*ChannelBalanceResponse) ProtoMessage ¶
func (*ChannelBalanceResponse) ProtoMessage()
func (*ChannelBalanceResponse) Reset ¶
func (m *ChannelBalanceResponse) Reset()
func (*ChannelBalanceResponse) String ¶
func (m *ChannelBalanceResponse) String() string
type ChannelCloseSummary ¶
type ChannelCloseSummary struct { // / The outpoint (txid:index) of the funding transaction. ChannelPoint string `protobuf:"bytes,1,opt,name=channel_point" json:"channel_point,omitempty"` // / The unique channel ID for the channel. ChanId uint64 `protobuf:"varint,2,opt,name=chan_id" json:"chan_id,omitempty"` // / The hash of the genesis block that this channel resides within. ChainHash string `protobuf:"bytes,3,opt,name=chain_hash" json:"chain_hash,omitempty"` // / The txid of the transaction which ultimately closed this channel. ClosingTxHash string `protobuf:"bytes,4,opt,name=closing_tx_hash" json:"closing_tx_hash,omitempty"` // / Public key of the remote peer that we formerly had a channel with. RemotePubkey string `protobuf:"bytes,5,opt,name=remote_pubkey" json:"remote_pubkey,omitempty"` // / Total capacity of the channel. Capacity int64 `protobuf:"varint,6,opt,name=capacity" json:"capacity,omitempty"` // / Height at which the funding transaction was spent. CloseHeight uint32 `protobuf:"varint,7,opt,name=close_height" json:"close_height,omitempty"` // / Settled balance at the time of channel closure SettledBalance int64 `protobuf:"varint,8,opt,name=settled_balance" json:"settled_balance,omitempty"` // / The sum of all the time-locked outputs at the time of channel closure TimeLockedBalance int64 `protobuf:"varint,9,opt,name=time_locked_balance" json:"time_locked_balance,omitempty"` // / Details on how the channel was closed. CloseType ChannelCloseSummary_ClosureType `protobuf:"varint,10,opt,name=close_type,enum=lnrpc.ChannelCloseSummary_ClosureType" json:"close_type,omitempty"` }
func (*ChannelCloseSummary) Descriptor ¶
func (*ChannelCloseSummary) Descriptor() ([]byte, []int)
func (*ChannelCloseSummary) GetCapacity ¶
func (m *ChannelCloseSummary) GetCapacity() int64
func (*ChannelCloseSummary) GetChainHash ¶
func (m *ChannelCloseSummary) GetChainHash() string
func (*ChannelCloseSummary) GetChanId ¶
func (m *ChannelCloseSummary) GetChanId() uint64
func (*ChannelCloseSummary) GetChannelPoint ¶
func (m *ChannelCloseSummary) GetChannelPoint() string
func (*ChannelCloseSummary) GetCloseHeight ¶
func (m *ChannelCloseSummary) GetCloseHeight() uint32
func (*ChannelCloseSummary) GetCloseType ¶
func (m *ChannelCloseSummary) GetCloseType() ChannelCloseSummary_ClosureType
func (*ChannelCloseSummary) GetClosingTxHash ¶
func (m *ChannelCloseSummary) GetClosingTxHash() string
func (*ChannelCloseSummary) GetRemotePubkey ¶
func (m *ChannelCloseSummary) GetRemotePubkey() string
func (*ChannelCloseSummary) GetSettledBalance ¶
func (m *ChannelCloseSummary) GetSettledBalance() int64
func (*ChannelCloseSummary) GetTimeLockedBalance ¶
func (m *ChannelCloseSummary) GetTimeLockedBalance() int64
func (*ChannelCloseSummary) ProtoMessage ¶
func (*ChannelCloseSummary) ProtoMessage()
func (*ChannelCloseSummary) Reset ¶
func (m *ChannelCloseSummary) Reset()
func (*ChannelCloseSummary) String ¶
func (m *ChannelCloseSummary) String() string
type ChannelCloseSummary_ClosureType ¶
type ChannelCloseSummary_ClosureType int32
const ( ChannelCloseSummary_COOPERATIVE_CLOSE ChannelCloseSummary_ClosureType = 0 ChannelCloseSummary_LOCAL_FORCE_CLOSE ChannelCloseSummary_ClosureType = 1 ChannelCloseSummary_REMOTE_FORCE_CLOSE ChannelCloseSummary_ClosureType = 2 ChannelCloseSummary_BREACH_CLOSE ChannelCloseSummary_ClosureType = 3 ChannelCloseSummary_FUNDING_CANCELED ChannelCloseSummary_ClosureType = 4 ChannelCloseSummary_ABANDONED ChannelCloseSummary_ClosureType = 5 )
func (ChannelCloseSummary_ClosureType) EnumDescriptor ¶
func (ChannelCloseSummary_ClosureType) EnumDescriptor() ([]byte, []int)
func (ChannelCloseSummary_ClosureType) String ¶
func (x ChannelCloseSummary_ClosureType) String() string
type ChannelCloseUpdate ¶
type ChannelCloseUpdate struct { ClosingTxid []byte `protobuf:"bytes,1,opt,name=closing_txid,proto3" json:"closing_txid,omitempty"` Success bool `protobuf:"varint,2,opt,name=success" json:"success,omitempty"` }
func (*ChannelCloseUpdate) Descriptor ¶
func (*ChannelCloseUpdate) Descriptor() ([]byte, []int)
func (*ChannelCloseUpdate) GetClosingTxid ¶
func (m *ChannelCloseUpdate) GetClosingTxid() []byte
func (*ChannelCloseUpdate) GetSuccess ¶
func (m *ChannelCloseUpdate) GetSuccess() bool
func (*ChannelCloseUpdate) ProtoMessage ¶
func (*ChannelCloseUpdate) ProtoMessage()
func (*ChannelCloseUpdate) Reset ¶
func (m *ChannelCloseUpdate) Reset()
func (*ChannelCloseUpdate) String ¶
func (m *ChannelCloseUpdate) String() string
type ChannelEdge ¶
type ChannelEdge struct { // * // The unique channel ID for the channel. The first 3 bytes are the block // height, the next 3 the index within the block, and the last 2 bytes are the // output index for the channel. ChannelId uint64 `protobuf:"varint,1,opt,name=channel_id" json:"channel_id,omitempty"` ChanPoint string `protobuf:"bytes,2,opt,name=chan_point" json:"chan_point,omitempty"` LastUpdate uint32 `protobuf:"varint,3,opt,name=last_update" json:"last_update,omitempty"` Node1Pub string `protobuf:"bytes,4,opt,name=node1_pub" json:"node1_pub,omitempty"` Node2Pub string `protobuf:"bytes,5,opt,name=node2_pub" json:"node2_pub,omitempty"` Capacity int64 `protobuf:"varint,6,opt,name=capacity" json:"capacity,omitempty"` Node1Policy *RoutingPolicy `protobuf:"bytes,7,opt,name=node1_policy" json:"node1_policy,omitempty"` Node2Policy *RoutingPolicy `protobuf:"bytes,8,opt,name=node2_policy" json:"node2_policy,omitempty"` }
* A fully authenticated channel along with all its unique attributes. Once an authenticated channel announcement has been processed on the network, then an instance of ChannelEdgeInfo encapsulating the channels attributes is stored. The other portions relevant to routing policy of a channel are stored within a ChannelEdgePolicy for each direction of the channel.
func (*ChannelEdge) Descriptor ¶
func (*ChannelEdge) Descriptor() ([]byte, []int)
func (*ChannelEdge) GetCapacity ¶
func (m *ChannelEdge) GetCapacity() int64
func (*ChannelEdge) GetChanPoint ¶
func (m *ChannelEdge) GetChanPoint() string
func (*ChannelEdge) GetChannelId ¶
func (m *ChannelEdge) GetChannelId() uint64
func (*ChannelEdge) GetLastUpdate ¶
func (m *ChannelEdge) GetLastUpdate() uint32
func (*ChannelEdge) GetNode1Policy ¶
func (m *ChannelEdge) GetNode1Policy() *RoutingPolicy
func (*ChannelEdge) GetNode1Pub ¶
func (m *ChannelEdge) GetNode1Pub() string
func (*ChannelEdge) GetNode2Policy ¶
func (m *ChannelEdge) GetNode2Policy() *RoutingPolicy
func (*ChannelEdge) GetNode2Pub ¶
func (m *ChannelEdge) GetNode2Pub() string
func (*ChannelEdge) ProtoMessage ¶
func (*ChannelEdge) ProtoMessage()
func (*ChannelEdge) Reset ¶
func (m *ChannelEdge) Reset()
func (*ChannelEdge) String ¶
func (m *ChannelEdge) String() string
type ChannelEdgeUpdate ¶
type ChannelEdgeUpdate struct { // * // The unique channel ID for the channel. The first 3 bytes are the block // height, the next 3 the index within the block, and the last 2 bytes are the // output index for the channel. ChanId uint64 `protobuf:"varint,1,opt,name=chan_id,json=chanId" json:"chan_id,omitempty"` ChanPoint *ChannelPoint `protobuf:"bytes,2,opt,name=chan_point,json=chanPoint" json:"chan_point,omitempty"` Capacity int64 `protobuf:"varint,3,opt,name=capacity" json:"capacity,omitempty"` RoutingPolicy *RoutingPolicy `protobuf:"bytes,4,opt,name=routing_policy,json=routingPolicy" json:"routing_policy,omitempty"` AdvertisingNode string `protobuf:"bytes,5,opt,name=advertising_node,json=advertisingNode" json:"advertising_node,omitempty"` ConnectingNode string `protobuf:"bytes,6,opt,name=connecting_node,json=connectingNode" json:"connecting_node,omitempty"` }
func (*ChannelEdgeUpdate) Descriptor ¶
func (*ChannelEdgeUpdate) Descriptor() ([]byte, []int)
func (*ChannelEdgeUpdate) GetAdvertisingNode ¶
func (m *ChannelEdgeUpdate) GetAdvertisingNode() string
func (*ChannelEdgeUpdate) GetCapacity ¶
func (m *ChannelEdgeUpdate) GetCapacity() int64
func (*ChannelEdgeUpdate) GetChanId ¶
func (m *ChannelEdgeUpdate) GetChanId() uint64
func (*ChannelEdgeUpdate) GetChanPoint ¶
func (m *ChannelEdgeUpdate) GetChanPoint() *ChannelPoint
func (*ChannelEdgeUpdate) GetConnectingNode ¶
func (m *ChannelEdgeUpdate) GetConnectingNode() string
func (*ChannelEdgeUpdate) GetRoutingPolicy ¶
func (m *ChannelEdgeUpdate) GetRoutingPolicy() *RoutingPolicy
func (*ChannelEdgeUpdate) ProtoMessage ¶
func (*ChannelEdgeUpdate) ProtoMessage()
func (*ChannelEdgeUpdate) Reset ¶
func (m *ChannelEdgeUpdate) Reset()
func (*ChannelEdgeUpdate) String ¶
func (m *ChannelEdgeUpdate) String() string
type ChannelFeeReport ¶
type ChannelFeeReport struct { // / The channel that this fee report belongs to. ChanPoint string `protobuf:"bytes,1,opt,name=chan_point,json=channel_point" json:"chan_point,omitempty"` // / The base fee charged regardless of the number of milli-satoshis sent. BaseFeeMsat int64 `protobuf:"varint,2,opt,name=base_fee_msat" json:"base_fee_msat,omitempty"` // / The amount charged per milli-satoshis transferred expressed in millionths of a satoshi. FeePerMil int64 `protobuf:"varint,3,opt,name=fee_per_mil" json:"fee_per_mil,omitempty"` // / The effective fee rate in milli-satoshis. Computed by dividing the fee_per_mil value by 1 million. FeeRate float64 `protobuf:"fixed64,4,opt,name=fee_rate" json:"fee_rate,omitempty"` }
func (*ChannelFeeReport) Descriptor ¶
func (*ChannelFeeReport) Descriptor() ([]byte, []int)
func (*ChannelFeeReport) GetBaseFeeMsat ¶
func (m *ChannelFeeReport) GetBaseFeeMsat() int64
func (*ChannelFeeReport) GetChanPoint ¶
func (m *ChannelFeeReport) GetChanPoint() string
func (*ChannelFeeReport) GetFeePerMil ¶
func (m *ChannelFeeReport) GetFeePerMil() int64
func (*ChannelFeeReport) GetFeeRate ¶
func (m *ChannelFeeReport) GetFeeRate() float64
func (*ChannelFeeReport) ProtoMessage ¶
func (*ChannelFeeReport) ProtoMessage()
func (*ChannelFeeReport) Reset ¶
func (m *ChannelFeeReport) Reset()
func (*ChannelFeeReport) String ¶
func (m *ChannelFeeReport) String() string
type ChannelGraph ¶
type ChannelGraph struct { // / The list of `LightningNode`s in this channel graph Nodes []*LightningNode `protobuf:"bytes,1,rep,name=nodes" json:"nodes,omitempty"` // / The list of `ChannelEdge`s in this channel graph Edges []*ChannelEdge `protobuf:"bytes,2,rep,name=edges" json:"edges,omitempty"` }
/ Returns a new instance of the directed channel graph.
func (*ChannelGraph) Descriptor ¶
func (*ChannelGraph) Descriptor() ([]byte, []int)
func (*ChannelGraph) GetEdges ¶
func (m *ChannelGraph) GetEdges() []*ChannelEdge
func (*ChannelGraph) GetNodes ¶
func (m *ChannelGraph) GetNodes() []*LightningNode
func (*ChannelGraph) ProtoMessage ¶
func (*ChannelGraph) ProtoMessage()
func (*ChannelGraph) Reset ¶
func (m *ChannelGraph) Reset()
func (*ChannelGraph) String ¶
func (m *ChannelGraph) String() string
type ChannelGraphRequest ¶
type ChannelGraphRequest struct { // * // Whether unannounced channels are included in the response or not. If set, // unannounced channels are included. Unannounced channels are both private // channels, and public channels that are not yet announced to the network. IncludeUnannounced bool `protobuf:"varint,1,opt,name=include_unannounced" json:"include_unannounced,omitempty"` }
func (*ChannelGraphRequest) Descriptor ¶
func (*ChannelGraphRequest) Descriptor() ([]byte, []int)
func (*ChannelGraphRequest) GetIncludeUnannounced ¶
func (m *ChannelGraphRequest) GetIncludeUnannounced() bool
func (*ChannelGraphRequest) ProtoMessage ¶
func (*ChannelGraphRequest) ProtoMessage()
func (*ChannelGraphRequest) Reset ¶
func (m *ChannelGraphRequest) Reset()
func (*ChannelGraphRequest) String ¶
func (m *ChannelGraphRequest) String() string
type ChannelOpenUpdate ¶
type ChannelOpenUpdate struct {
ChannelPoint *ChannelPoint `protobuf:"bytes,1,opt,name=channel_point" json:"channel_point,omitempty"`
}
func (*ChannelOpenUpdate) Descriptor ¶
func (*ChannelOpenUpdate) Descriptor() ([]byte, []int)
func (*ChannelOpenUpdate) GetChannelPoint ¶
func (m *ChannelOpenUpdate) GetChannelPoint() *ChannelPoint
func (*ChannelOpenUpdate) ProtoMessage ¶
func (*ChannelOpenUpdate) ProtoMessage()
func (*ChannelOpenUpdate) Reset ¶
func (m *ChannelOpenUpdate) Reset()
func (*ChannelOpenUpdate) String ¶
func (m *ChannelOpenUpdate) String() string
type ChannelPoint ¶
type ChannelPoint struct { // Types that are valid to be assigned to FundingTxid: // *ChannelPoint_FundingTxidBytes // *ChannelPoint_FundingTxidStr FundingTxid isChannelPoint_FundingTxid `protobuf_oneof:"funding_txid"` // / The index of the output of the funding transaction OutputIndex uint32 `protobuf:"varint,3,opt,name=output_index" json:"output_index,omitempty"` }
func (*ChannelPoint) Descriptor ¶
func (*ChannelPoint) Descriptor() ([]byte, []int)
func (*ChannelPoint) GetFundingTxid ¶
func (m *ChannelPoint) GetFundingTxid() isChannelPoint_FundingTxid
func (*ChannelPoint) GetFundingTxidBytes ¶
func (m *ChannelPoint) GetFundingTxidBytes() []byte
func (*ChannelPoint) GetFundingTxidStr ¶
func (m *ChannelPoint) GetFundingTxidStr() string
func (*ChannelPoint) GetOutputIndex ¶
func (m *ChannelPoint) GetOutputIndex() uint32
func (*ChannelPoint) ProtoMessage ¶
func (*ChannelPoint) ProtoMessage()
func (*ChannelPoint) Reset ¶
func (m *ChannelPoint) Reset()
func (*ChannelPoint) String ¶
func (m *ChannelPoint) String() string
func (*ChannelPoint) XXX_OneofFuncs ¶
func (*ChannelPoint) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type ChannelPoint_FundingTxidBytes ¶
type ChannelPoint_FundingTxidBytes struct {
FundingTxidBytes []byte `protobuf:"bytes,1,opt,name=funding_txid_bytes,proto3,oneof"`
}
type ChannelPoint_FundingTxidStr ¶
type ChannelPoint_FundingTxidStr struct {
FundingTxidStr string `protobuf:"bytes,2,opt,name=funding_txid_str,oneof"`
}
type CloseChannelRequest ¶
type CloseChannelRequest struct { // * // The outpoint (txid:index) of the funding transaction. With this value, Bob // will be able to generate a signature for Alice's version of the commitment // transaction. ChannelPoint *ChannelPoint `protobuf:"bytes,1,opt,name=channel_point,json=channelPoint" json:"channel_point,omitempty"` // / If true, then the channel will be closed forcibly. This means the current commitment transaction will be signed and broadcast. Force bool `protobuf:"varint,2,opt,name=force" json:"force,omitempty"` // / The target number of blocks that the closure transaction should be confirmed by. TargetConf int32 `protobuf:"varint,3,opt,name=target_conf,json=targetConf" json:"target_conf,omitempty"` // / A manual fee rate set in sat/byte that should be used when crafting the closure transaction. SatPerByte int64 `protobuf:"varint,4,opt,name=sat_per_byte,json=satPerByte" json:"sat_per_byte,omitempty"` }
func (*CloseChannelRequest) Descriptor ¶
func (*CloseChannelRequest) Descriptor() ([]byte, []int)
func (*CloseChannelRequest) GetChannelPoint ¶
func (m *CloseChannelRequest) GetChannelPoint() *ChannelPoint
func (*CloseChannelRequest) GetForce ¶
func (m *CloseChannelRequest) GetForce() bool
func (*CloseChannelRequest) GetSatPerByte ¶
func (m *CloseChannelRequest) GetSatPerByte() int64
func (*CloseChannelRequest) GetTargetConf ¶
func (m *CloseChannelRequest) GetTargetConf() int32
func (*CloseChannelRequest) ProtoMessage ¶
func (*CloseChannelRequest) ProtoMessage()
func (*CloseChannelRequest) Reset ¶
func (m *CloseChannelRequest) Reset()
func (*CloseChannelRequest) String ¶
func (m *CloseChannelRequest) String() string
type CloseStatusUpdate ¶
type CloseStatusUpdate struct { // Types that are valid to be assigned to Update: // *CloseStatusUpdate_ClosePending // *CloseStatusUpdate_Confirmation // *CloseStatusUpdate_ChanClose Update isCloseStatusUpdate_Update `protobuf_oneof:"update"` }
func (*CloseStatusUpdate) Descriptor ¶
func (*CloseStatusUpdate) Descriptor() ([]byte, []int)
func (*CloseStatusUpdate) GetChanClose ¶
func (m *CloseStatusUpdate) GetChanClose() *ChannelCloseUpdate
func (*CloseStatusUpdate) GetClosePending ¶
func (m *CloseStatusUpdate) GetClosePending() *PendingUpdate
func (*CloseStatusUpdate) GetConfirmation ¶
func (m *CloseStatusUpdate) GetConfirmation() *ConfirmationUpdate
func (*CloseStatusUpdate) GetUpdate ¶
func (m *CloseStatusUpdate) GetUpdate() isCloseStatusUpdate_Update
func (*CloseStatusUpdate) ProtoMessage ¶
func (*CloseStatusUpdate) ProtoMessage()
func (*CloseStatusUpdate) Reset ¶
func (m *CloseStatusUpdate) Reset()
func (*CloseStatusUpdate) String ¶
func (m *CloseStatusUpdate) String() string
func (*CloseStatusUpdate) XXX_OneofFuncs ¶
func (*CloseStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type CloseStatusUpdate_ChanClose ¶
type CloseStatusUpdate_ChanClose struct {
ChanClose *ChannelCloseUpdate `protobuf:"bytes,3,opt,name=chan_close,oneof"`
}
type CloseStatusUpdate_ClosePending ¶
type CloseStatusUpdate_ClosePending struct {
ClosePending *PendingUpdate `protobuf:"bytes,1,opt,name=close_pending,oneof"`
}
type CloseStatusUpdate_Confirmation ¶
type CloseStatusUpdate_Confirmation struct {
Confirmation *ConfirmationUpdate `protobuf:"bytes,2,opt,name=confirmation,oneof"`
}
type ClosedChannelUpdate ¶
type ClosedChannelUpdate struct { // * // The unique channel ID for the channel. The first 3 bytes are the block // height, the next 3 the index within the block, and the last 2 bytes are the // output index for the channel. ChanId uint64 `protobuf:"varint,1,opt,name=chan_id,json=chanId" json:"chan_id,omitempty"` Capacity int64 `protobuf:"varint,2,opt,name=capacity" json:"capacity,omitempty"` ClosedHeight uint32 `protobuf:"varint,3,opt,name=closed_height,json=closedHeight" json:"closed_height,omitempty"` ChanPoint *ChannelPoint `protobuf:"bytes,4,opt,name=chan_point,json=chanPoint" json:"chan_point,omitempty"` }
func (*ClosedChannelUpdate) Descriptor ¶
func (*ClosedChannelUpdate) Descriptor() ([]byte, []int)
func (*ClosedChannelUpdate) GetCapacity ¶
func (m *ClosedChannelUpdate) GetCapacity() int64
func (*ClosedChannelUpdate) GetChanId ¶
func (m *ClosedChannelUpdate) GetChanId() uint64
func (*ClosedChannelUpdate) GetChanPoint ¶
func (m *ClosedChannelUpdate) GetChanPoint() *ChannelPoint
func (*ClosedChannelUpdate) GetClosedHeight ¶
func (m *ClosedChannelUpdate) GetClosedHeight() uint32
func (*ClosedChannelUpdate) ProtoMessage ¶
func (*ClosedChannelUpdate) ProtoMessage()
func (*ClosedChannelUpdate) Reset ¶
func (m *ClosedChannelUpdate) Reset()
func (*ClosedChannelUpdate) String ¶
func (m *ClosedChannelUpdate) String() string
type ClosedChannelsRequest ¶
type ClosedChannelsRequest struct { Cooperative bool `protobuf:"varint,1,opt,name=cooperative" json:"cooperative,omitempty"` LocalForce bool `protobuf:"varint,2,opt,name=local_force,json=localForce" json:"local_force,omitempty"` RemoteForce bool `protobuf:"varint,3,opt,name=remote_force,json=remoteForce" json:"remote_force,omitempty"` Breach bool `protobuf:"varint,4,opt,name=breach" json:"breach,omitempty"` FundingCanceled bool `protobuf:"varint,5,opt,name=funding_canceled,json=fundingCanceled" json:"funding_canceled,omitempty"` Abandoned bool `protobuf:"varint,6,opt,name=abandoned" json:"abandoned,omitempty"` }
func (*ClosedChannelsRequest) Descriptor ¶
func (*ClosedChannelsRequest) Descriptor() ([]byte, []int)
func (*ClosedChannelsRequest) GetAbandoned ¶
func (m *ClosedChannelsRequest) GetAbandoned() bool
func (*ClosedChannelsRequest) GetBreach ¶
func (m *ClosedChannelsRequest) GetBreach() bool
func (*ClosedChannelsRequest) GetCooperative ¶
func (m *ClosedChannelsRequest) GetCooperative() bool
func (*ClosedChannelsRequest) GetFundingCanceled ¶
func (m *ClosedChannelsRequest) GetFundingCanceled() bool
func (*ClosedChannelsRequest) GetLocalForce ¶
func (m *ClosedChannelsRequest) GetLocalForce() bool
func (*ClosedChannelsRequest) GetRemoteForce ¶
func (m *ClosedChannelsRequest) GetRemoteForce() bool
func (*ClosedChannelsRequest) ProtoMessage ¶
func (*ClosedChannelsRequest) ProtoMessage()
func (*ClosedChannelsRequest) Reset ¶
func (m *ClosedChannelsRequest) Reset()
func (*ClosedChannelsRequest) String ¶
func (m *ClosedChannelsRequest) String() string
type ClosedChannelsResponse ¶
type ClosedChannelsResponse struct {
Channels []*ChannelCloseSummary `protobuf:"bytes,1,rep,name=channels" json:"channels,omitempty"`
}
func (*ClosedChannelsResponse) Descriptor ¶
func (*ClosedChannelsResponse) Descriptor() ([]byte, []int)
func (*ClosedChannelsResponse) GetChannels ¶
func (m *ClosedChannelsResponse) GetChannels() []*ChannelCloseSummary
func (*ClosedChannelsResponse) ProtoMessage ¶
func (*ClosedChannelsResponse) ProtoMessage()
func (*ClosedChannelsResponse) Reset ¶
func (m *ClosedChannelsResponse) Reset()
func (*ClosedChannelsResponse) String ¶
func (m *ClosedChannelsResponse) String() string
type ConfirmationUpdate ¶
type ConfirmationUpdate struct { BlockSha []byte `protobuf:"bytes,1,opt,name=block_sha,json=blockSha,proto3" json:"block_sha,omitempty"` BlockHeight int32 `protobuf:"varint,2,opt,name=block_height,json=blockHeight" json:"block_height,omitempty"` NumConfsLeft uint32 `protobuf:"varint,3,opt,name=num_confs_left,json=numConfsLeft" json:"num_confs_left,omitempty"` }
func (*ConfirmationUpdate) Descriptor ¶
func (*ConfirmationUpdate) Descriptor() ([]byte, []int)
func (*ConfirmationUpdate) GetBlockHeight ¶
func (m *ConfirmationUpdate) GetBlockHeight() int32
func (*ConfirmationUpdate) GetBlockSha ¶
func (m *ConfirmationUpdate) GetBlockSha() []byte
func (*ConfirmationUpdate) GetNumConfsLeft ¶
func (m *ConfirmationUpdate) GetNumConfsLeft() uint32
func (*ConfirmationUpdate) ProtoMessage ¶
func (*ConfirmationUpdate) ProtoMessage()
func (*ConfirmationUpdate) Reset ¶
func (m *ConfirmationUpdate) Reset()
func (*ConfirmationUpdate) String ¶
func (m *ConfirmationUpdate) String() string
type ConnectPeerRequest ¶
type ConnectPeerRequest struct { // / Lightning address of the peer, in the format `<pubkey>@host` Addr *LightningAddress `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"` // * If set, the daemon will attempt to persistently connect to the target // peer. Otherwise, the call will be synchronous. Perm bool `protobuf:"varint,2,opt,name=perm" json:"perm,omitempty"` }
func (*ConnectPeerRequest) Descriptor ¶
func (*ConnectPeerRequest) Descriptor() ([]byte, []int)
func (*ConnectPeerRequest) GetAddr ¶
func (m *ConnectPeerRequest) GetAddr() *LightningAddress
func (*ConnectPeerRequest) GetPerm ¶
func (m *ConnectPeerRequest) GetPerm() bool
func (*ConnectPeerRequest) ProtoMessage ¶
func (*ConnectPeerRequest) ProtoMessage()
func (*ConnectPeerRequest) Reset ¶
func (m *ConnectPeerRequest) Reset()
func (*ConnectPeerRequest) String ¶
func (m *ConnectPeerRequest) String() string
type ConnectPeerResponse ¶
type ConnectPeerResponse struct { }
func (*ConnectPeerResponse) Descriptor ¶
func (*ConnectPeerResponse) Descriptor() ([]byte, []int)
func (*ConnectPeerResponse) ProtoMessage ¶
func (*ConnectPeerResponse) ProtoMessage()
func (*ConnectPeerResponse) Reset ¶
func (m *ConnectPeerResponse) Reset()
func (*ConnectPeerResponse) String ¶
func (m *ConnectPeerResponse) String() string
type DebugLevelRequest ¶
type DebugLevelRequest struct { Show bool `protobuf:"varint,1,opt,name=show" json:"show,omitempty"` LevelSpec string `protobuf:"bytes,2,opt,name=level_spec,json=levelSpec" json:"level_spec,omitempty"` }
func (*DebugLevelRequest) Descriptor ¶
func (*DebugLevelRequest) Descriptor() ([]byte, []int)
func (*DebugLevelRequest) GetLevelSpec ¶
func (m *DebugLevelRequest) GetLevelSpec() string
func (*DebugLevelRequest) GetShow ¶
func (m *DebugLevelRequest) GetShow() bool
func (*DebugLevelRequest) ProtoMessage ¶
func (*DebugLevelRequest) ProtoMessage()
func (*DebugLevelRequest) Reset ¶
func (m *DebugLevelRequest) Reset()
func (*DebugLevelRequest) String ¶
func (m *DebugLevelRequest) String() string
type DebugLevelResponse ¶
type DebugLevelResponse struct {
SubSystems string `protobuf:"bytes,1,opt,name=sub_systems" json:"sub_systems,omitempty"`
}
func (*DebugLevelResponse) Descriptor ¶
func (*DebugLevelResponse) Descriptor() ([]byte, []int)
func (*DebugLevelResponse) GetSubSystems ¶
func (m *DebugLevelResponse) GetSubSystems() string
func (*DebugLevelResponse) ProtoMessage ¶
func (*DebugLevelResponse) ProtoMessage()
func (*DebugLevelResponse) Reset ¶
func (m *DebugLevelResponse) Reset()
func (*DebugLevelResponse) String ¶
func (m *DebugLevelResponse) String() string
type DeleteAllPaymentsRequest ¶
type DeleteAllPaymentsRequest struct { }
func (*DeleteAllPaymentsRequest) Descriptor ¶
func (*DeleteAllPaymentsRequest) Descriptor() ([]byte, []int)
func (*DeleteAllPaymentsRequest) ProtoMessage ¶
func (*DeleteAllPaymentsRequest) ProtoMessage()
func (*DeleteAllPaymentsRequest) Reset ¶
func (m *DeleteAllPaymentsRequest) Reset()
func (*DeleteAllPaymentsRequest) String ¶
func (m *DeleteAllPaymentsRequest) String() string
type DeleteAllPaymentsResponse ¶
type DeleteAllPaymentsResponse struct { }
func (*DeleteAllPaymentsResponse) Descriptor ¶
func (*DeleteAllPaymentsResponse) Descriptor() ([]byte, []int)
func (*DeleteAllPaymentsResponse) ProtoMessage ¶
func (*DeleteAllPaymentsResponse) ProtoMessage()
func (*DeleteAllPaymentsResponse) Reset ¶
func (m *DeleteAllPaymentsResponse) Reset()
func (*DeleteAllPaymentsResponse) String ¶
func (m *DeleteAllPaymentsResponse) String() string
type DisconnectPeerRequest ¶
type DisconnectPeerRequest struct { // / The pubkey of the node to disconnect from PubKey string `protobuf:"bytes,1,opt,name=pub_key" json:"pub_key,omitempty"` }
func (*DisconnectPeerRequest) Descriptor ¶
func (*DisconnectPeerRequest) Descriptor() ([]byte, []int)
func (*DisconnectPeerRequest) GetPubKey ¶
func (m *DisconnectPeerRequest) GetPubKey() string
func (*DisconnectPeerRequest) ProtoMessage ¶
func (*DisconnectPeerRequest) ProtoMessage()
func (*DisconnectPeerRequest) Reset ¶
func (m *DisconnectPeerRequest) Reset()
func (*DisconnectPeerRequest) String ¶
func (m *DisconnectPeerRequest) String() string
type DisconnectPeerResponse ¶
type DisconnectPeerResponse struct { }
func (*DisconnectPeerResponse) Descriptor ¶
func (*DisconnectPeerResponse) Descriptor() ([]byte, []int)
func (*DisconnectPeerResponse) ProtoMessage ¶
func (*DisconnectPeerResponse) ProtoMessage()
func (*DisconnectPeerResponse) Reset ¶
func (m *DisconnectPeerResponse) Reset()
func (*DisconnectPeerResponse) String ¶
func (m *DisconnectPeerResponse) String() string
type FeeLimit ¶
type FeeLimit struct { // Types that are valid to be assigned to Limit: // *FeeLimit_Fixed // *FeeLimit_Percent Limit isFeeLimit_Limit `protobuf_oneof:"limit"` }
func (*FeeLimit) Descriptor ¶
func (*FeeLimit) GetPercent ¶
func (*FeeLimit) ProtoMessage ¶
func (*FeeLimit) ProtoMessage()
type FeeLimit_Fixed ¶
type FeeLimit_Fixed struct {
Fixed int64 `protobuf:"varint,1,opt,name=fixed,oneof"`
}
type FeeLimit_Percent ¶
type FeeLimit_Percent struct {
Percent int64 `protobuf:"varint,2,opt,name=percent,oneof"`
}
type FeeReportRequest ¶
type FeeReportRequest struct { }
func (*FeeReportRequest) Descriptor ¶
func (*FeeReportRequest) Descriptor() ([]byte, []int)
func (*FeeReportRequest) ProtoMessage ¶
func (*FeeReportRequest) ProtoMessage()
func (*FeeReportRequest) Reset ¶
func (m *FeeReportRequest) Reset()
func (*FeeReportRequest) String ¶
func (m *FeeReportRequest) String() string
type FeeReportResponse ¶
type FeeReportResponse struct { // / An array of channel fee reports which describes the current fee schedule for each channel. ChannelFees []*ChannelFeeReport `protobuf:"bytes,1,rep,name=channel_fees" json:"channel_fees,omitempty"` // / The total amount of fee revenue (in satoshis) the switch has collected over the past 24 hrs. DayFeeSum uint64 `protobuf:"varint,2,opt,name=day_fee_sum" json:"day_fee_sum,omitempty"` // / The total amount of fee revenue (in satoshis) the switch has collected over the past 1 week. WeekFeeSum uint64 `protobuf:"varint,3,opt,name=week_fee_sum" json:"week_fee_sum,omitempty"` // / The total amount of fee revenue (in satoshis) the switch has collected over the past 1 month. MonthFeeSum uint64 `protobuf:"varint,4,opt,name=month_fee_sum" json:"month_fee_sum,omitempty"` }
func (*FeeReportResponse) Descriptor ¶
func (*FeeReportResponse) Descriptor() ([]byte, []int)
func (*FeeReportResponse) GetChannelFees ¶
func (m *FeeReportResponse) GetChannelFees() []*ChannelFeeReport
func (*FeeReportResponse) GetDayFeeSum ¶
func (m *FeeReportResponse) GetDayFeeSum() uint64
func (*FeeReportResponse) GetMonthFeeSum ¶
func (m *FeeReportResponse) GetMonthFeeSum() uint64
func (*FeeReportResponse) GetWeekFeeSum ¶
func (m *FeeReportResponse) GetWeekFeeSum() uint64
func (*FeeReportResponse) ProtoMessage ¶
func (*FeeReportResponse) ProtoMessage()
func (*FeeReportResponse) Reset ¶
func (m *FeeReportResponse) Reset()
func (*FeeReportResponse) String ¶
func (m *FeeReportResponse) String() string
type ForwardingEvent ¶
type ForwardingEvent struct { // / Timestamp is the time (unix epoch offset) that this circuit was completed. Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp" json:"timestamp,omitempty"` // / The incoming channel ID that carried the HTLC that created the circuit. ChanIdIn uint64 `protobuf:"varint,2,opt,name=chan_id_in" json:"chan_id_in,omitempty"` // / The outgoing channel ID that carried the preimage that completed the circuit. ChanIdOut uint64 `protobuf:"varint,4,opt,name=chan_id_out" json:"chan_id_out,omitempty"` // / The total amount of the incoming HTLC that created half the circuit. AmtIn uint64 `protobuf:"varint,5,opt,name=amt_in" json:"amt_in,omitempty"` // / The total amount of the outgoign HTLC that created the second half of the circuit. AmtOut uint64 `protobuf:"varint,6,opt,name=amt_out" json:"amt_out,omitempty"` // / The total fee that this payment circuit carried. Fee uint64 `protobuf:"varint,7,opt,name=fee" json:"fee,omitempty"` }
func (*ForwardingEvent) Descriptor ¶
func (*ForwardingEvent) Descriptor() ([]byte, []int)
func (*ForwardingEvent) GetAmtIn ¶
func (m *ForwardingEvent) GetAmtIn() uint64
func (*ForwardingEvent) GetAmtOut ¶
func (m *ForwardingEvent) GetAmtOut() uint64
func (*ForwardingEvent) GetChanIdIn ¶
func (m *ForwardingEvent) GetChanIdIn() uint64
func (*ForwardingEvent) GetChanIdOut ¶
func (m *ForwardingEvent) GetChanIdOut() uint64
func (*ForwardingEvent) GetFee ¶
func (m *ForwardingEvent) GetFee() uint64
func (*ForwardingEvent) GetTimestamp ¶
func (m *ForwardingEvent) GetTimestamp() uint64
func (*ForwardingEvent) ProtoMessage ¶
func (*ForwardingEvent) ProtoMessage()
func (*ForwardingEvent) Reset ¶
func (m *ForwardingEvent) Reset()
func (*ForwardingEvent) String ¶
func (m *ForwardingEvent) String() string
type ForwardingHistoryRequest ¶
type ForwardingHistoryRequest struct { // / Start time is the starting point of the forwarding history request. All records beyond this point will be included, respecting the end time, and the index offset. StartTime uint64 `protobuf:"varint,1,opt,name=start_time" json:"start_time,omitempty"` // / End time is the end point of the forwarding history request. The response will carry at most 50k records between the start time and the end time. The index offset can be used to implement pagination. EndTime uint64 `protobuf:"varint,2,opt,name=end_time" json:"end_time,omitempty"` // / Index offset is the offset in the time series to start at. As each response can only contain 50k records, callers can use this to skip around within a packed time series. IndexOffset uint32 `protobuf:"varint,3,opt,name=index_offset" json:"index_offset,omitempty"` // / The max number of events to return in the response to this query. NumMaxEvents uint32 `protobuf:"varint,4,opt,name=num_max_events" json:"num_max_events,omitempty"` }
func (*ForwardingHistoryRequest) Descriptor ¶
func (*ForwardingHistoryRequest) Descriptor() ([]byte, []int)
func (*ForwardingHistoryRequest) GetEndTime ¶
func (m *ForwardingHistoryRequest) GetEndTime() uint64
func (*ForwardingHistoryRequest) GetIndexOffset ¶
func (m *ForwardingHistoryRequest) GetIndexOffset() uint32
func (*ForwardingHistoryRequest) GetNumMaxEvents ¶
func (m *ForwardingHistoryRequest) GetNumMaxEvents() uint32
func (*ForwardingHistoryRequest) GetStartTime ¶
func (m *ForwardingHistoryRequest) GetStartTime() uint64
func (*ForwardingHistoryRequest) ProtoMessage ¶
func (*ForwardingHistoryRequest) ProtoMessage()
func (*ForwardingHistoryRequest) Reset ¶
func (m *ForwardingHistoryRequest) Reset()
func (*ForwardingHistoryRequest) String ¶
func (m *ForwardingHistoryRequest) String() string
type ForwardingHistoryResponse ¶
type ForwardingHistoryResponse struct { // / A list of forwarding events from the time slice of the time series specified in the request. ForwardingEvents []*ForwardingEvent `protobuf:"bytes,1,rep,name=forwarding_events" json:"forwarding_events,omitempty"` // / The index of the last time in the set of returned forwarding events. Can be used to seek further, pagination style. LastOffsetIndex uint32 `protobuf:"varint,2,opt,name=last_offset_index" json:"last_offset_index,omitempty"` }
func (*ForwardingHistoryResponse) Descriptor ¶
func (*ForwardingHistoryResponse) Descriptor() ([]byte, []int)
func (*ForwardingHistoryResponse) GetForwardingEvents ¶
func (m *ForwardingHistoryResponse) GetForwardingEvents() []*ForwardingEvent
func (*ForwardingHistoryResponse) GetLastOffsetIndex ¶
func (m *ForwardingHistoryResponse) GetLastOffsetIndex() uint32
func (*ForwardingHistoryResponse) ProtoMessage ¶
func (*ForwardingHistoryResponse) ProtoMessage()
func (*ForwardingHistoryResponse) Reset ¶
func (m *ForwardingHistoryResponse) Reset()
func (*ForwardingHistoryResponse) String ¶
func (m *ForwardingHistoryResponse) String() string
type GenSeedRequest ¶
type GenSeedRequest struct { // * // aezeed_passphrase is an optional user provided passphrase that will be used // to encrypt the generated aezeed cipher seed. AezeedPassphrase []byte `protobuf:"bytes,1,opt,name=aezeed_passphrase,json=aezeedPassphrase,proto3" json:"aezeed_passphrase,omitempty"` // * // seed_entropy is an optional 16-bytes generated via CSPRNG. If not // specified, then a fresh set of randomness will be used to create the seed. SeedEntropy []byte `protobuf:"bytes,2,opt,name=seed_entropy,json=seedEntropy,proto3" json:"seed_entropy,omitempty"` }
func (*GenSeedRequest) Descriptor ¶
func (*GenSeedRequest) Descriptor() ([]byte, []int)
func (*GenSeedRequest) GetAezeedPassphrase ¶
func (m *GenSeedRequest) GetAezeedPassphrase() []byte
func (*GenSeedRequest) GetSeedEntropy ¶
func (m *GenSeedRequest) GetSeedEntropy() []byte
func (*GenSeedRequest) ProtoMessage ¶
func (*GenSeedRequest) ProtoMessage()
func (*GenSeedRequest) Reset ¶
func (m *GenSeedRequest) Reset()
func (*GenSeedRequest) String ¶
func (m *GenSeedRequest) String() string
type GenSeedResponse ¶
type GenSeedResponse struct { // * // cipher_seed_mnemonic is a 24-word mnemonic that encodes a prior aezeed // cipher seed obtained by the user. This field is optional, as if not // provided, then the daemon will generate a new cipher seed for the user. // Otherwise, then the daemon will attempt to recover the wallet state linked // to this cipher seed. CipherSeedMnemonic []string `protobuf:"bytes,1,rep,name=cipher_seed_mnemonic,json=cipherSeedMnemonic" json:"cipher_seed_mnemonic,omitempty"` // * // enciphered_seed are the raw aezeed cipher seed bytes. This is the raw // cipher text before run through our mnemonic encoding scheme. EncipheredSeed []byte `protobuf:"bytes,2,opt,name=enciphered_seed,json=encipheredSeed,proto3" json:"enciphered_seed,omitempty"` }
func (*GenSeedResponse) Descriptor ¶
func (*GenSeedResponse) Descriptor() ([]byte, []int)
func (*GenSeedResponse) GetCipherSeedMnemonic ¶
func (m *GenSeedResponse) GetCipherSeedMnemonic() []string
func (*GenSeedResponse) GetEncipheredSeed ¶
func (m *GenSeedResponse) GetEncipheredSeed() []byte
func (*GenSeedResponse) ProtoMessage ¶
func (*GenSeedResponse) ProtoMessage()
func (*GenSeedResponse) Reset ¶
func (m *GenSeedResponse) Reset()
func (*GenSeedResponse) String ¶
func (m *GenSeedResponse) String() string
type GetInfoRequest ¶
type GetInfoRequest struct { }
func (*GetInfoRequest) Descriptor ¶
func (*GetInfoRequest) Descriptor() ([]byte, []int)
func (*GetInfoRequest) ProtoMessage ¶
func (*GetInfoRequest) ProtoMessage()
func (*GetInfoRequest) Reset ¶
func (m *GetInfoRequest) Reset()
func (*GetInfoRequest) String ¶
func (m *GetInfoRequest) String() string
type GetInfoResponse ¶
type GetInfoResponse struct { // / The identity pubkey of the current node. IdentityPubkey string `protobuf:"bytes,1,opt,name=identity_pubkey" json:"identity_pubkey,omitempty"` // / If applicable, the alias of the current node, e.g. "bob" Alias string `protobuf:"bytes,2,opt,name=alias" json:"alias,omitempty"` // / Number of pending channels NumPendingChannels uint32 `protobuf:"varint,3,opt,name=num_pending_channels" json:"num_pending_channels,omitempty"` // / Number of active channels NumActiveChannels uint32 `protobuf:"varint,4,opt,name=num_active_channels" json:"num_active_channels,omitempty"` // / Number of peers NumPeers uint32 `protobuf:"varint,5,opt,name=num_peers" json:"num_peers,omitempty"` // / The node's current view of the height of the best block BlockHeight uint32 `protobuf:"varint,6,opt,name=block_height" json:"block_height,omitempty"` // / The node's current view of the hash of the best block BlockHash string `protobuf:"bytes,8,opt,name=block_hash" json:"block_hash,omitempty"` // / Whether the wallet's view is synced to the main chain SyncedToChain bool `protobuf:"varint,9,opt,name=synced_to_chain" json:"synced_to_chain,omitempty"` // / Whether the current node is connected to testnet Testnet bool `protobuf:"varint,10,opt,name=testnet" json:"testnet,omitempty"` // / A list of active chains the node is connected to Chains []string `protobuf:"bytes,11,rep,name=chains" json:"chains,omitempty"` // / The URIs of the current node. Uris []string `protobuf:"bytes,12,rep,name=uris" json:"uris,omitempty"` // / Timestamp of the block best known to the wallet BestHeaderTimestamp int64 `protobuf:"varint,13,opt,name=best_header_timestamp" json:"best_header_timestamp,omitempty"` // / The version of the LND software that the node is running. Version string `protobuf:"bytes,14,opt,name=version" json:"version,omitempty"` // / Number of inactive channels NumInactiveChannels uint32 `protobuf:"varint,15,opt,name=num_inactive_channels" json:"num_inactive_channels,omitempty"` }
func (*GetInfoResponse) Descriptor ¶
func (*GetInfoResponse) Descriptor() ([]byte, []int)
func (*GetInfoResponse) GetAlias ¶
func (m *GetInfoResponse) GetAlias() string
func (*GetInfoResponse) GetBestHeaderTimestamp ¶
func (m *GetInfoResponse) GetBestHeaderTimestamp() int64
func (*GetInfoResponse) GetBlockHash ¶
func (m *GetInfoResponse) GetBlockHash() string
func (*GetInfoResponse) GetBlockHeight ¶
func (m *GetInfoResponse) GetBlockHeight() uint32
func (*GetInfoResponse) GetChains ¶
func (m *GetInfoResponse) GetChains() []string
func (*GetInfoResponse) GetIdentityPubkey ¶
func (m *GetInfoResponse) GetIdentityPubkey() string
func (*GetInfoResponse) GetNumActiveChannels ¶
func (m *GetInfoResponse) GetNumActiveChannels() uint32
func (*GetInfoResponse) GetNumInactiveChannels ¶
func (m *GetInfoResponse) GetNumInactiveChannels() uint32
func (*GetInfoResponse) GetNumPeers ¶
func (m *GetInfoResponse) GetNumPeers() uint32
func (*GetInfoResponse) GetNumPendingChannels ¶
func (m *GetInfoResponse) GetNumPendingChannels() uint32
func (*GetInfoResponse) GetSyncedToChain ¶
func (m *GetInfoResponse) GetSyncedToChain() bool
func (*GetInfoResponse) GetTestnet ¶
func (m *GetInfoResponse) GetTestnet() bool
func (*GetInfoResponse) GetUris ¶
func (m *GetInfoResponse) GetUris() []string
func (*GetInfoResponse) GetVersion ¶
func (m *GetInfoResponse) GetVersion() string
func (*GetInfoResponse) ProtoMessage ¶
func (*GetInfoResponse) ProtoMessage()
func (*GetInfoResponse) Reset ¶
func (m *GetInfoResponse) Reset()
func (*GetInfoResponse) String ¶
func (m *GetInfoResponse) String() string
type GetTransactionsRequest ¶
type GetTransactionsRequest struct { }
func (*GetTransactionsRequest) Descriptor ¶
func (*GetTransactionsRequest) Descriptor() ([]byte, []int)
func (*GetTransactionsRequest) ProtoMessage ¶
func (*GetTransactionsRequest) ProtoMessage()
func (*GetTransactionsRequest) Reset ¶
func (m *GetTransactionsRequest) Reset()
func (*GetTransactionsRequest) String ¶
func (m *GetTransactionsRequest) String() string
type GraphTopologySubscription ¶
type GraphTopologySubscription struct { }
func (*GraphTopologySubscription) Descriptor ¶
func (*GraphTopologySubscription) Descriptor() ([]byte, []int)
func (*GraphTopologySubscription) ProtoMessage ¶
func (*GraphTopologySubscription) ProtoMessage()
func (*GraphTopologySubscription) Reset ¶
func (m *GraphTopologySubscription) Reset()
func (*GraphTopologySubscription) String ¶
func (m *GraphTopologySubscription) String() string
type GraphTopologyUpdate ¶
type GraphTopologyUpdate struct { NodeUpdates []*NodeUpdate `protobuf:"bytes,1,rep,name=node_updates,json=nodeUpdates" json:"node_updates,omitempty"` ChannelUpdates []*ChannelEdgeUpdate `protobuf:"bytes,2,rep,name=channel_updates,json=channelUpdates" json:"channel_updates,omitempty"` ClosedChans []*ClosedChannelUpdate `protobuf:"bytes,3,rep,name=closed_chans,json=closedChans" json:"closed_chans,omitempty"` }
func (*GraphTopologyUpdate) Descriptor ¶
func (*GraphTopologyUpdate) Descriptor() ([]byte, []int)
func (*GraphTopologyUpdate) GetChannelUpdates ¶
func (m *GraphTopologyUpdate) GetChannelUpdates() []*ChannelEdgeUpdate
func (*GraphTopologyUpdate) GetClosedChans ¶
func (m *GraphTopologyUpdate) GetClosedChans() []*ClosedChannelUpdate
func (*GraphTopologyUpdate) GetNodeUpdates ¶
func (m *GraphTopologyUpdate) GetNodeUpdates() []*NodeUpdate
func (*GraphTopologyUpdate) ProtoMessage ¶
func (*GraphTopologyUpdate) ProtoMessage()
func (*GraphTopologyUpdate) Reset ¶
func (m *GraphTopologyUpdate) Reset()
func (*GraphTopologyUpdate) String ¶
func (m *GraphTopologyUpdate) String() string
type HTLC ¶
type HTLC struct { Incoming bool `protobuf:"varint,1,opt,name=incoming" json:"incoming,omitempty"` Amount int64 `protobuf:"varint,2,opt,name=amount" json:"amount,omitempty"` HashLock []byte `protobuf:"bytes,3,opt,name=hash_lock,proto3" json:"hash_lock,omitempty"` ExpirationHeight uint32 `protobuf:"varint,4,opt,name=expiration_height" json:"expiration_height,omitempty"` }
func (*HTLC) Descriptor ¶
func (*HTLC) GetExpirationHeight ¶
func (*HTLC) GetHashLock ¶
func (*HTLC) GetIncoming ¶
func (*HTLC) ProtoMessage ¶
func (*HTLC) ProtoMessage()
type Hop ¶
type Hop struct { // * // The unique channel ID for the channel. The first 3 bytes are the block // height, the next 3 the index within the block, and the last 2 bytes are the // output index for the channel. ChanId uint64 `protobuf:"varint,1,opt,name=chan_id" json:"chan_id,omitempty"` ChanCapacity int64 `protobuf:"varint,2,opt,name=chan_capacity" json:"chan_capacity,omitempty"` AmtToForward int64 `protobuf:"varint,3,opt,name=amt_to_forward" json:"amt_to_forward,omitempty"` Fee int64 `protobuf:"varint,4,opt,name=fee" json:"fee,omitempty"` Expiry uint32 `protobuf:"varint,5,opt,name=expiry" json:"expiry,omitempty"` AmtToForwardMsat int64 `protobuf:"varint,6,opt,name=amt_to_forward_msat" json:"amt_to_forward_msat,omitempty"` FeeMsat int64 `protobuf:"varint,7,opt,name=fee_msat" json:"fee_msat,omitempty"` // * // An optional public key of the hop. If the public key is given, the payment // can be executed without relying on a copy of the channel graph. PubKey string `protobuf:"bytes,8,opt,name=pub_key" json:"pub_key,omitempty"` }
func (*Hop) Descriptor ¶
func (*Hop) GetAmtToForward ¶
func (*Hop) GetAmtToForwardMsat ¶
func (*Hop) GetChanCapacity ¶
func (*Hop) GetFeeMsat ¶
func (*Hop) ProtoMessage ¶
func (*Hop) ProtoMessage()
type HopHint ¶
type HopHint struct { // / The public key of the node at the start of the channel. NodeId string `protobuf:"bytes,1,opt,name=node_id" json:"node_id,omitempty"` // / The unique identifier of the channel. ChanId uint64 `protobuf:"varint,2,opt,name=chan_id" json:"chan_id,omitempty"` // / The base fee of the channel denominated in millisatoshis. FeeBaseMsat uint32 `protobuf:"varint,3,opt,name=fee_base_msat" json:"fee_base_msat,omitempty"` // * // The fee rate of the channel for sending one satoshi across it denominated in // millionths of a satoshi. FeeProportionalMillionths uint32 `protobuf:"varint,4,opt,name=fee_proportional_millionths" json:"fee_proportional_millionths,omitempty"` // / The time-lock delta of the channel. CltvExpiryDelta uint32 `protobuf:"varint,5,opt,name=cltv_expiry_delta" json:"cltv_expiry_delta,omitempty"` }
func (*HopHint) Descriptor ¶
func (*HopHint) GetCltvExpiryDelta ¶
func (*HopHint) GetFeeBaseMsat ¶
func (*HopHint) GetFeeProportionalMillionths ¶
func (*HopHint) ProtoMessage ¶
func (*HopHint) ProtoMessage()
type InitWalletRequest ¶
type InitWalletRequest struct { // * // wallet_password is the passphrase that should be used to encrypt the // wallet. This MUST be at least 8 chars in length. After creation, this // password is required to unlock the daemon. WalletPassword []byte `protobuf:"bytes,1,opt,name=wallet_password,json=walletPassword,proto3" json:"wallet_password,omitempty"` // * // cipher_seed_mnemonic is a 24-word mnemonic that encodes a prior aezeed // cipher seed obtained by the user. This may have been generated by the // GenSeed method, or be an existing seed. CipherSeedMnemonic []string `protobuf:"bytes,2,rep,name=cipher_seed_mnemonic,json=cipherSeedMnemonic" json:"cipher_seed_mnemonic,omitempty"` // * // aezeed_passphrase is an optional user provided passphrase that will be used // to encrypt the generated aezeed cipher seed. AezeedPassphrase []byte `protobuf:"bytes,3,opt,name=aezeed_passphrase,json=aezeedPassphrase,proto3" json:"aezeed_passphrase,omitempty"` // * // recovery_window is an optional argument specifying the address lookahead // when restoring a wallet seed. The recovery window applies to each // invdividual branch of the BIP44 derivation paths. Supplying a recovery // window of zero indicates that no addresses should be recovered, such after // the first initialization of the wallet. RecoveryWindow int32 `protobuf:"varint,4,opt,name=recovery_window,json=recoveryWindow" json:"recovery_window,omitempty"` }
func (*InitWalletRequest) Descriptor ¶
func (*InitWalletRequest) Descriptor() ([]byte, []int)
func (*InitWalletRequest) GetAezeedPassphrase ¶
func (m *InitWalletRequest) GetAezeedPassphrase() []byte
func (*InitWalletRequest) GetCipherSeedMnemonic ¶
func (m *InitWalletRequest) GetCipherSeedMnemonic() []string
func (*InitWalletRequest) GetRecoveryWindow ¶
func (m *InitWalletRequest) GetRecoveryWindow() int32
func (*InitWalletRequest) GetWalletPassword ¶
func (m *InitWalletRequest) GetWalletPassword() []byte
func (*InitWalletRequest) ProtoMessage ¶
func (*InitWalletRequest) ProtoMessage()
func (*InitWalletRequest) Reset ¶
func (m *InitWalletRequest) Reset()
func (*InitWalletRequest) String ¶
func (m *InitWalletRequest) String() string
type InitWalletResponse ¶
type InitWalletResponse struct { }
func (*InitWalletResponse) Descriptor ¶
func (*InitWalletResponse) Descriptor() ([]byte, []int)
func (*InitWalletResponse) ProtoMessage ¶
func (*InitWalletResponse) ProtoMessage()
func (*InitWalletResponse) Reset ¶
func (m *InitWalletResponse) Reset()
func (*InitWalletResponse) String ¶
func (m *InitWalletResponse) String() string
type Invoice ¶
type Invoice struct { // * // An optional memo to attach along with the invoice. Used for record keeping // purposes for the invoice's creator, and will also be set in the description // field of the encoded payment request if the description_hash field is not // being used. Memo string `protobuf:"bytes,1,opt,name=memo" json:"memo,omitempty"` // / An optional cryptographic receipt of payment Receipt []byte `protobuf:"bytes,2,opt,name=receipt,proto3" json:"receipt,omitempty"` // * // The hex-encoded preimage (32 byte) which will allow settling an incoming // HTLC payable to this preimage RPreimage []byte `protobuf:"bytes,3,opt,name=r_preimage,proto3" json:"r_preimage,omitempty"` // / The hash of the preimage RHash []byte `protobuf:"bytes,4,opt,name=r_hash,proto3" json:"r_hash,omitempty"` // / The value of this invoice in satoshis Value int64 `protobuf:"varint,5,opt,name=value" json:"value,omitempty"` // / Whether this invoice has been fulfilled Settled bool `protobuf:"varint,6,opt,name=settled" json:"settled,omitempty"` // / When this invoice was created CreationDate int64 `protobuf:"varint,7,opt,name=creation_date" json:"creation_date,omitempty"` // / When this invoice was settled SettleDate int64 `protobuf:"varint,8,opt,name=settle_date" json:"settle_date,omitempty"` // * // A bare-bones invoice for a payment within the Lightning Network. With the // details of the invoice, the sender has all the data necessary to send a // payment to the recipient. PaymentRequest string `protobuf:"bytes,9,opt,name=payment_request" json:"payment_request,omitempty"` // * // Hash (SHA-256) of a description of the payment. Used if the description of // payment (memo) is too long to naturally fit within the description field // of an encoded payment request. DescriptionHash []byte `protobuf:"bytes,10,opt,name=description_hash,proto3" json:"description_hash,omitempty"` // / Payment request expiry time in seconds. Default is 3600 (1 hour). Expiry int64 `protobuf:"varint,11,opt,name=expiry" json:"expiry,omitempty"` // / Fallback on-chain address. FallbackAddr string `protobuf:"bytes,12,opt,name=fallback_addr" json:"fallback_addr,omitempty"` // / Delta to use for the time-lock of the CLTV extended to the final hop. CltvExpiry uint64 `protobuf:"varint,13,opt,name=cltv_expiry" json:"cltv_expiry,omitempty"` // * // Route hints that can each be individually used to assist in reaching the // invoice's destination. RouteHints []*RouteHint `protobuf:"bytes,14,rep,name=route_hints" json:"route_hints,omitempty"` // / Whether this invoice should include routing hints for private channels. Private bool `protobuf:"varint,15,opt,name=private" json:"private,omitempty"` // * // The "add" index of this invoice. Each newly created invoice will increment // this index making it monotonically increasing. Callers to the // SubscribeInvoices call can use this to instantly get notified of all added // invoices with an add_index greater than this one. AddIndex uint64 `protobuf:"varint,16,opt,name=add_index" json:"add_index,omitempty"` // * // The "settle" index of this invoice. Each newly settled invoice will // increment this index making it monotonically increasing. Callers to the // SubscribeInvoices call can use this to instantly get notified of all // settled invoices with an settle_index greater than this one. SettleIndex uint64 `protobuf:"varint,17,opt,name=settle_index" json:"settle_index,omitempty"` // / Deprecated, use amt_paid_sat or amt_paid_msat. AmtPaid int64 `protobuf:"varint,18,opt,name=amt_paid" json:"amt_paid,omitempty"` // * // The amount that was accepted for this invoice, in satoshis. This will ONLY // be set if this invoice has been settled. We provide this field as if the // invoice was created with a zero value, then we need to record what amount // was ultimately accepted. Additionally, it's possible that the sender paid // MORE that was specified in the original invoice. So we'll record that here // as well. AmtPaidSat int64 `protobuf:"varint,19,opt,name=amt_paid_sat" json:"amt_paid_sat,omitempty"` // * // The amount that was accepted for this invoice, in millisatoshis. This will // ONLY be set if this invoice has been settled. We provide this field as if // the invoice was created with a zero value, then we need to record what // amount was ultimately accepted. Additionally, it's possible that the sender // paid MORE that was specified in the original invoice. So we'll record that // here as well. AmtPaidMsat int64 `protobuf:"varint,20,opt,name=amt_paid_msat" json:"amt_paid_msat,omitempty"` }
func (*Invoice) Descriptor ¶
func (*Invoice) GetAddIndex ¶
func (*Invoice) GetAmtPaid ¶
func (*Invoice) GetAmtPaidMsat ¶
func (*Invoice) GetAmtPaidSat ¶
func (*Invoice) GetCltvExpiry ¶
func (*Invoice) GetCreationDate ¶
func (*Invoice) GetDescriptionHash ¶
func (*Invoice) GetFallbackAddr ¶
func (*Invoice) GetPaymentRequest ¶
func (*Invoice) GetPrivate ¶
func (*Invoice) GetRPreimage ¶
func (*Invoice) GetReceipt ¶
func (*Invoice) GetRouteHints ¶
func (*Invoice) GetSettleDate ¶
func (*Invoice) GetSettleIndex ¶
func (*Invoice) GetSettled ¶
func (*Invoice) ProtoMessage ¶
func (*Invoice) ProtoMessage()
type InvoiceSubscription ¶
type InvoiceSubscription struct { // * // If specified (non-zero), then we'll first start by sending out // notifications for all added indexes with an add_index greater than this // value. This allows callers to catch up on any events they missed while they // weren't connected to the streaming RPC. AddIndex uint64 `protobuf:"varint,1,opt,name=add_index" json:"add_index,omitempty"` // * // If specified (non-zero), then we'll first start by sending out // notifications for all settled indexes with an settle_index greater than // this value. This allows callers to catch up on any events they missed while // they weren't connected to the streaming RPC. SettleIndex uint64 `protobuf:"varint,2,opt,name=settle_index" json:"settle_index,omitempty"` }
func (*InvoiceSubscription) Descriptor ¶
func (*InvoiceSubscription) Descriptor() ([]byte, []int)
func (*InvoiceSubscription) GetAddIndex ¶
func (m *InvoiceSubscription) GetAddIndex() uint64
func (*InvoiceSubscription) GetSettleIndex ¶
func (m *InvoiceSubscription) GetSettleIndex() uint64
func (*InvoiceSubscription) ProtoMessage ¶
func (*InvoiceSubscription) ProtoMessage()
func (*InvoiceSubscription) Reset ¶
func (m *InvoiceSubscription) Reset()
func (*InvoiceSubscription) String ¶
func (m *InvoiceSubscription) String() string
type LightningAddress ¶
type LightningAddress struct { // / The identity pubkey of the Lightning node Pubkey string `protobuf:"bytes,1,opt,name=pubkey" json:"pubkey,omitempty"` // / The network location of the lightning node, e.g. `69.69.69.69:1337` or `localhost:10011` Host string `protobuf:"bytes,2,opt,name=host" json:"host,omitempty"` }
func (*LightningAddress) Descriptor ¶
func (*LightningAddress) Descriptor() ([]byte, []int)
func (*LightningAddress) GetHost ¶
func (m *LightningAddress) GetHost() string
func (*LightningAddress) GetPubkey ¶
func (m *LightningAddress) GetPubkey() string
func (*LightningAddress) ProtoMessage ¶
func (*LightningAddress) ProtoMessage()
func (*LightningAddress) Reset ¶
func (m *LightningAddress) Reset()
func (*LightningAddress) String ¶
func (m *LightningAddress) String() string
type LightningClient ¶
type LightningClient interface { // * lncli: `walletbalance` // WalletBalance returns total unspent outputs(confirmed and unconfirmed), all // confirmed unspent outputs and all unconfirmed unspent outputs under control // of the wallet. WalletBalance(ctx context.Context, in *WalletBalanceRequest, opts ...grpc.CallOption) (*WalletBalanceResponse, error) // * lncli: `channelbalance` // ChannelBalance returns the total funds available across all open channels // in satoshis. ChannelBalance(ctx context.Context, in *ChannelBalanceRequest, opts ...grpc.CallOption) (*ChannelBalanceResponse, error) // * lncli: `listchaintxns` // GetTransactions returns a list describing all the known transactions // relevant to the wallet. GetTransactions(ctx context.Context, in *GetTransactionsRequest, opts ...grpc.CallOption) (*TransactionDetails, error) // * lncli: `sendcoins` // SendCoins executes a request to send coins to a particular address. Unlike // SendMany, this RPC call only allows creating a single output at a time. If // neither target_conf, or sat_per_byte are set, then the internal wallet will // consult its fee model to determine a fee for the default confirmation // target. SendCoins(ctx context.Context, in *SendCoinsRequest, opts ...grpc.CallOption) (*SendCoinsResponse, error) // * // SubscribeTransactions creates a uni-directional stream from the server to // the client in which any newly discovered transactions relevant to the // wallet are sent over. SubscribeTransactions(ctx context.Context, in *GetTransactionsRequest, opts ...grpc.CallOption) (Lightning_SubscribeTransactionsClient, error) // * lncli: `sendmany` // SendMany handles a request for a transaction that creates multiple specified // outputs in parallel. If neither target_conf, or sat_per_byte are set, then // the internal wallet will consult its fee model to determine a fee for the // default confirmation target. SendMany(ctx context.Context, in *SendManyRequest, opts ...grpc.CallOption) (*SendManyResponse, error) // * lncli: `newaddress` // NewAddress creates a new address under control of the local wallet. NewAddress(ctx context.Context, in *NewAddressRequest, opts ...grpc.CallOption) (*NewAddressResponse, error) // * lncli: `signmessage` // SignMessage signs a message with this node's private key. The returned // signature string is `zbase32` encoded and pubkey recoverable, meaning that // only the message digest and signature are needed for verification. SignMessage(ctx context.Context, in *SignMessageRequest, opts ...grpc.CallOption) (*SignMessageResponse, error) // * lncli: `verifymessage` // VerifyMessage verifies a signature over a msg. The signature must be // zbase32 encoded and signed by an active node in the resident node's // channel database. In addition to returning the validity of the signature, // VerifyMessage also returns the recovered pubkey from the signature. VerifyMessage(ctx context.Context, in *VerifyMessageRequest, opts ...grpc.CallOption) (*VerifyMessageResponse, error) // * lncli: `connect` // ConnectPeer attempts to establish a connection to a remote peer. This is at // the networking level, and is used for communication between nodes. This is // distinct from establishing a channel with a peer. ConnectPeer(ctx context.Context, in *ConnectPeerRequest, opts ...grpc.CallOption) (*ConnectPeerResponse, error) // * lncli: `disconnect` // DisconnectPeer attempts to disconnect one peer from another identified by a // given pubKey. In the case that we currently have a pending or active channel // with the target peer, then this action will be not be allowed. DisconnectPeer(ctx context.Context, in *DisconnectPeerRequest, opts ...grpc.CallOption) (*DisconnectPeerResponse, error) // * lncli: `listpeers` // ListPeers returns a verbose listing of all currently active peers. ListPeers(ctx context.Context, in *ListPeersRequest, opts ...grpc.CallOption) (*ListPeersResponse, error) // * lncli: `getinfo` // GetInfo returns general information concerning the lightning node including // it's identity pubkey, alias, the chains it is connected to, and information // concerning the number of open+pending channels. GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoResponse, error) // * lncli: `pendingchannels` // PendingChannels returns a list of all the channels that are currently // considered "pending". A channel is pending if it has finished the funding // workflow and is waiting for confirmations for the funding txn, or is in the // process of closure, either initiated cooperatively or non-cooperatively. PendingChannels(ctx context.Context, in *PendingChannelsRequest, opts ...grpc.CallOption) (*PendingChannelsResponse, error) // * lncli: `listchannels` // ListChannels returns a description of all the open channels that this node // is a participant in. ListChannels(ctx context.Context, in *ListChannelsRequest, opts ...grpc.CallOption) (*ListChannelsResponse, error) // * lncli: `closedchannels` // ClosedChannels returns a description of all the closed channels that // this node was a participant in. ClosedChannels(ctx context.Context, in *ClosedChannelsRequest, opts ...grpc.CallOption) (*ClosedChannelsResponse, error) // * // OpenChannelSync is a synchronous version of the OpenChannel RPC call. This // call is meant to be consumed by clients to the REST proxy. As with all // other sync calls, all byte slices are intended to be populated as hex // encoded strings. OpenChannelSync(ctx context.Context, in *OpenChannelRequest, opts ...grpc.CallOption) (*ChannelPoint, error) // * lncli: `openchannel` // OpenChannel attempts to open a singly funded channel specified in the // request to a remote peer. Users are able to specify a target number of // blocks that the funding transaction should be confirmed in, or a manual fee // rate to us for the funding transaction. If neither are specified, then a // lax block confirmation target is used. OpenChannel(ctx context.Context, in *OpenChannelRequest, opts ...grpc.CallOption) (Lightning_OpenChannelClient, error) // * lncli: `closechannel` // CloseChannel attempts to close an active channel identified by its channel // outpoint (ChannelPoint). The actions of this method can additionally be // augmented to attempt a force close after a timeout period in the case of an // inactive peer. If a non-force close (cooperative closure) is requested, // then the user can specify either a target number of blocks until the // closure transaction is confirmed, or a manual fee rate. If neither are // specified, then a default lax, block confirmation target is used. CloseChannel(ctx context.Context, in *CloseChannelRequest, opts ...grpc.CallOption) (Lightning_CloseChannelClient, error) // * lncli: `abandonchannel` // AbandonChannel removes all channel state from the database except for a // close summary. This method can be used to get rid of permanently unusable // channels due to bugs fixed in newer versions of lnd. Only available // when in debug builds of lnd. AbandonChannel(ctx context.Context, in *AbandonChannelRequest, opts ...grpc.CallOption) (*AbandonChannelResponse, error) // * lncli: `sendpayment` // SendPayment dispatches a bi-directional streaming RPC for sending payments // through the Lightning Network. A single RPC invocation creates a persistent // bi-directional stream allowing clients to rapidly send payments through the // Lightning Network with a single persistent connection. SendPayment(ctx context.Context, opts ...grpc.CallOption) (Lightning_SendPaymentClient, error) // * // SendPaymentSync is the synchronous non-streaming version of SendPayment. // This RPC is intended to be consumed by clients of the REST proxy. // Additionally, this RPC expects the destination's public key and the payment // hash (if any) to be encoded as hex strings. SendPaymentSync(ctx context.Context, in *SendRequest, opts ...grpc.CallOption) (*SendResponse, error) // * lncli: `sendtoroute` // SendToRoute is a bi-directional streaming RPC for sending payment through // the Lightning Network. This method differs from SendPayment in that it // allows users to specify a full route manually. This can be used for things // like rebalancing, and atomic swaps. SendToRoute(ctx context.Context, opts ...grpc.CallOption) (Lightning_SendToRouteClient, error) // * // SendToRouteSync is a synchronous version of SendToRoute. It Will block // until the payment either fails or succeeds. SendToRouteSync(ctx context.Context, in *SendToRouteRequest, opts ...grpc.CallOption) (*SendResponse, error) // * lncli: `addinvoice` // AddInvoice attempts to add a new invoice to the invoice database. Any // duplicated invoices are rejected, therefore all invoices *must* have a // unique payment preimage. AddInvoice(ctx context.Context, in *Invoice, opts ...grpc.CallOption) (*AddInvoiceResponse, error) // * lncli: `listinvoices` // ListInvoices returns a list of all the invoices currently stored within the // database. Any active debug invoices are ignored. It has full support for // paginated responses, allowing users to query for specific invoices through // their add_index. This can be done by using either the first_index_offset or // last_index_offset fields included in the response as the index_offset of the // next request. The reversed flag is set by default in order to paginate // backwards. If you wish to paginate forwards, you must explicitly set the // flag to false. If none of the parameters are specified, then the last 100 // invoices will be returned. ListInvoices(ctx context.Context, in *ListInvoiceRequest, opts ...grpc.CallOption) (*ListInvoiceResponse, error) // * lncli: `lookupinvoice` // LookupInvoice attempts to look up an invoice according to its payment hash. // The passed payment hash *must* be exactly 32 bytes, if not, an error is // returned. LookupInvoice(ctx context.Context, in *PaymentHash, opts ...grpc.CallOption) (*Invoice, error) // * // SubscribeInvoices returns a uni-directional stream (server -> client) for // notifying the client of newly added/settled invoices. The caller can // optionally specify the add_index and/or the settle_index. If the add_index // is specified, then we'll first start by sending add invoice events for all // invoices with an add_index greater than the specified value. If the // settle_index is specified, the next, we'll send out all settle events for // invoices with a settle_index greater than the specified value. One or both // of these fields can be set. If no fields are set, then we'll only send out // the latest add/settle events. SubscribeInvoices(ctx context.Context, in *InvoiceSubscription, opts ...grpc.CallOption) (Lightning_SubscribeInvoicesClient, error) // * lncli: `decodepayreq` // DecodePayReq takes an encoded payment request string and attempts to decode // it, returning a full description of the conditions encoded within the // payment request. DecodePayReq(ctx context.Context, in *PayReqString, opts ...grpc.CallOption) (*PayReq, error) // * lncli: `listpayments` // ListPayments returns a list of all outgoing payments. ListPayments(ctx context.Context, in *ListPaymentsRequest, opts ...grpc.CallOption) (*ListPaymentsResponse, error) // * // DeleteAllPayments deletes all outgoing payments from DB. DeleteAllPayments(ctx context.Context, in *DeleteAllPaymentsRequest, opts ...grpc.CallOption) (*DeleteAllPaymentsResponse, error) // * lncli: `describegraph` // DescribeGraph returns a description of the latest graph state from the // point of view of the node. The graph information is partitioned into two // components: all the nodes/vertexes, and all the edges that connect the // vertexes themselves. As this is a directed graph, the edges also contain // the node directional specific routing policy which includes: the time lock // delta, fee information, etc. DescribeGraph(ctx context.Context, in *ChannelGraphRequest, opts ...grpc.CallOption) (*ChannelGraph, error) // * lncli: `getchaninfo` // GetChanInfo returns the latest authenticated network announcement for the // given channel identified by its channel ID: an 8-byte integer which // uniquely identifies the location of transaction's funding output within the // blockchain. GetChanInfo(ctx context.Context, in *ChanInfoRequest, opts ...grpc.CallOption) (*ChannelEdge, error) // * lncli: `getnodeinfo` // GetNodeInfo returns the latest advertised, aggregated, and authenticated // channel information for the specified node identified by its public key. GetNodeInfo(ctx context.Context, in *NodeInfoRequest, opts ...grpc.CallOption) (*NodeInfo, error) // * lncli: `queryroutes` // QueryRoutes attempts to query the daemon's Channel Router for a possible // route to a target destination capable of carrying a specific amount of // satoshis. The retuned route contains the full details required to craft and // send an HTLC, also including the necessary information that should be // present within the Sphinx packet encapsulated within the HTLC. QueryRoutes(ctx context.Context, in *QueryRoutesRequest, opts ...grpc.CallOption) (*QueryRoutesResponse, error) // * lncli: `getnetworkinfo` // GetNetworkInfo returns some basic stats about the known channel graph from // the point of view of the node. GetNetworkInfo(ctx context.Context, in *NetworkInfoRequest, opts ...grpc.CallOption) (*NetworkInfo, error) // * lncli: `stop` // StopDaemon will send a shutdown request to the interrupt handler, triggering // a graceful shutdown of the daemon. StopDaemon(ctx context.Context, in *StopRequest, opts ...grpc.CallOption) (*StopResponse, error) // * // SubscribeChannelGraph launches a streaming RPC that allows the caller to // receive notifications upon any changes to the channel graph topology from // the point of view of the responding node. Events notified include: new // nodes coming online, nodes updating their authenticated attributes, new // channels being advertised, updates in the routing policy for a directional // channel edge, and when channels are closed on-chain. SubscribeChannelGraph(ctx context.Context, in *GraphTopologySubscription, opts ...grpc.CallOption) (Lightning_SubscribeChannelGraphClient, error) // * lncli: `debuglevel` // DebugLevel allows a caller to programmatically set the logging verbosity of // lnd. The logging can be targeted according to a coarse daemon-wide logging // level, or in a granular fashion to specify the logging for a target // sub-system. DebugLevel(ctx context.Context, in *DebugLevelRequest, opts ...grpc.CallOption) (*DebugLevelResponse, error) // * lncli: `feereport` // FeeReport allows the caller to obtain a report detailing the current fee // schedule enforced by the node globally for each channel. FeeReport(ctx context.Context, in *FeeReportRequest, opts ...grpc.CallOption) (*FeeReportResponse, error) // * lncli: `updatechanpolicy` // UpdateChannelPolicy allows the caller to update the fee schedule and // channel policies for all channels globally, or a particular channel. UpdateChannelPolicy(ctx context.Context, in *PolicyUpdateRequest, opts ...grpc.CallOption) (*PolicyUpdateResponse, error) // * lncli: `fwdinghistory` // ForwardingHistory allows the caller to query the htlcswitch for a record of // all HTLC's forwarded within the target time range, and integer offset // within that time range. If no time-range is specified, then the first chunk // of the past 24 hrs of forwarding history are returned. // // A list of forwarding events are returned. The size of each forwarding event // is 40 bytes, and the max message size able to be returned in gRPC is 4 MiB. // As a result each message can only contain 50k entries. Each response has // the index offset of the last entry. The index offset can be provided to the // request to allow the caller to skip a series of records. ForwardingHistory(ctx context.Context, in *ForwardingHistoryRequest, opts ...grpc.CallOption) (*ForwardingHistoryResponse, error) }
func NewLightningClient ¶
func NewLightningClient(cc *grpc.ClientConn) LightningClient
type LightningNode ¶
type LightningNode struct { LastUpdate uint32 `protobuf:"varint,1,opt,name=last_update" json:"last_update,omitempty"` PubKey string `protobuf:"bytes,2,opt,name=pub_key" json:"pub_key,omitempty"` Alias string `protobuf:"bytes,3,opt,name=alias" json:"alias,omitempty"` Addresses []*NodeAddress `protobuf:"bytes,4,rep,name=addresses" json:"addresses,omitempty"` Color string `protobuf:"bytes,5,opt,name=color" json:"color,omitempty"` }
* An individual vertex/node within the channel graph. A node is connected to other nodes by one or more channel edges emanating from it. As the graph is directed, a node will also have an incoming edge attached to it for each outgoing edge.
func (*LightningNode) Descriptor ¶
func (*LightningNode) Descriptor() ([]byte, []int)
func (*LightningNode) GetAddresses ¶
func (m *LightningNode) GetAddresses() []*NodeAddress
func (*LightningNode) GetAlias ¶
func (m *LightningNode) GetAlias() string
func (*LightningNode) GetColor ¶
func (m *LightningNode) GetColor() string
func (*LightningNode) GetLastUpdate ¶
func (m *LightningNode) GetLastUpdate() uint32
func (*LightningNode) GetPubKey ¶
func (m *LightningNode) GetPubKey() string
func (*LightningNode) ProtoMessage ¶
func (*LightningNode) ProtoMessage()
func (*LightningNode) Reset ¶
func (m *LightningNode) Reset()
func (*LightningNode) String ¶
func (m *LightningNode) String() string
type LightningServer ¶
type LightningServer interface { // * lncli: `walletbalance` // WalletBalance returns total unspent outputs(confirmed and unconfirmed), all // confirmed unspent outputs and all unconfirmed unspent outputs under control // of the wallet. WalletBalance(context.Context, *WalletBalanceRequest) (*WalletBalanceResponse, error) // * lncli: `channelbalance` // ChannelBalance returns the total funds available across all open channels // in satoshis. ChannelBalance(context.Context, *ChannelBalanceRequest) (*ChannelBalanceResponse, error) // * lncli: `listchaintxns` // GetTransactions returns a list describing all the known transactions // relevant to the wallet. GetTransactions(context.Context, *GetTransactionsRequest) (*TransactionDetails, error) // * lncli: `sendcoins` // SendCoins executes a request to send coins to a particular address. Unlike // SendMany, this RPC call only allows creating a single output at a time. If // neither target_conf, or sat_per_byte are set, then the internal wallet will // consult its fee model to determine a fee for the default confirmation // target. SendCoins(context.Context, *SendCoinsRequest) (*SendCoinsResponse, error) // * // SubscribeTransactions creates a uni-directional stream from the server to // the client in which any newly discovered transactions relevant to the // wallet are sent over. SubscribeTransactions(*GetTransactionsRequest, Lightning_SubscribeTransactionsServer) error // * lncli: `sendmany` // SendMany handles a request for a transaction that creates multiple specified // outputs in parallel. If neither target_conf, or sat_per_byte are set, then // the internal wallet will consult its fee model to determine a fee for the // default confirmation target. SendMany(context.Context, *SendManyRequest) (*SendManyResponse, error) // * lncli: `newaddress` // NewAddress creates a new address under control of the local wallet. NewAddress(context.Context, *NewAddressRequest) (*NewAddressResponse, error) // * lncli: `signmessage` // SignMessage signs a message with this node's private key. The returned // signature string is `zbase32` encoded and pubkey recoverable, meaning that // only the message digest and signature are needed for verification. SignMessage(context.Context, *SignMessageRequest) (*SignMessageResponse, error) // * lncli: `verifymessage` // VerifyMessage verifies a signature over a msg. The signature must be // zbase32 encoded and signed by an active node in the resident node's // channel database. In addition to returning the validity of the signature, // VerifyMessage also returns the recovered pubkey from the signature. VerifyMessage(context.Context, *VerifyMessageRequest) (*VerifyMessageResponse, error) // * lncli: `connect` // ConnectPeer attempts to establish a connection to a remote peer. This is at // the networking level, and is used for communication between nodes. This is // distinct from establishing a channel with a peer. ConnectPeer(context.Context, *ConnectPeerRequest) (*ConnectPeerResponse, error) // * lncli: `disconnect` // DisconnectPeer attempts to disconnect one peer from another identified by a // given pubKey. In the case that we currently have a pending or active channel // with the target peer, then this action will be not be allowed. DisconnectPeer(context.Context, *DisconnectPeerRequest) (*DisconnectPeerResponse, error) // * lncli: `listpeers` // ListPeers returns a verbose listing of all currently active peers. ListPeers(context.Context, *ListPeersRequest) (*ListPeersResponse, error) // * lncli: `getinfo` // GetInfo returns general information concerning the lightning node including // it's identity pubkey, alias, the chains it is connected to, and information // concerning the number of open+pending channels. GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error) // * lncli: `pendingchannels` // PendingChannels returns a list of all the channels that are currently // considered "pending". A channel is pending if it has finished the funding // workflow and is waiting for confirmations for the funding txn, or is in the // process of closure, either initiated cooperatively or non-cooperatively. PendingChannels(context.Context, *PendingChannelsRequest) (*PendingChannelsResponse, error) // * lncli: `listchannels` // ListChannels returns a description of all the open channels that this node // is a participant in. ListChannels(context.Context, *ListChannelsRequest) (*ListChannelsResponse, error) // * lncli: `closedchannels` // ClosedChannels returns a description of all the closed channels that // this node was a participant in. ClosedChannels(context.Context, *ClosedChannelsRequest) (*ClosedChannelsResponse, error) // * // OpenChannelSync is a synchronous version of the OpenChannel RPC call. This // call is meant to be consumed by clients to the REST proxy. As with all // other sync calls, all byte slices are intended to be populated as hex // encoded strings. OpenChannelSync(context.Context, *OpenChannelRequest) (*ChannelPoint, error) // * lncli: `openchannel` // OpenChannel attempts to open a singly funded channel specified in the // request to a remote peer. Users are able to specify a target number of // blocks that the funding transaction should be confirmed in, or a manual fee // rate to us for the funding transaction. If neither are specified, then a // lax block confirmation target is used. OpenChannel(*OpenChannelRequest, Lightning_OpenChannelServer) error // * lncli: `closechannel` // CloseChannel attempts to close an active channel identified by its channel // outpoint (ChannelPoint). The actions of this method can additionally be // augmented to attempt a force close after a timeout period in the case of an // inactive peer. If a non-force close (cooperative closure) is requested, // then the user can specify either a target number of blocks until the // closure transaction is confirmed, or a manual fee rate. If neither are // specified, then a default lax, block confirmation target is used. CloseChannel(*CloseChannelRequest, Lightning_CloseChannelServer) error // * lncli: `abandonchannel` // AbandonChannel removes all channel state from the database except for a // close summary. This method can be used to get rid of permanently unusable // channels due to bugs fixed in newer versions of lnd. Only available // when in debug builds of lnd. AbandonChannel(context.Context, *AbandonChannelRequest) (*AbandonChannelResponse, error) // * lncli: `sendpayment` // SendPayment dispatches a bi-directional streaming RPC for sending payments // through the Lightning Network. A single RPC invocation creates a persistent // bi-directional stream allowing clients to rapidly send payments through the // Lightning Network with a single persistent connection. SendPayment(Lightning_SendPaymentServer) error // * // SendPaymentSync is the synchronous non-streaming version of SendPayment. // This RPC is intended to be consumed by clients of the REST proxy. // Additionally, this RPC expects the destination's public key and the payment // hash (if any) to be encoded as hex strings. SendPaymentSync(context.Context, *SendRequest) (*SendResponse, error) // * lncli: `sendtoroute` // SendToRoute is a bi-directional streaming RPC for sending payment through // the Lightning Network. This method differs from SendPayment in that it // allows users to specify a full route manually. This can be used for things // like rebalancing, and atomic swaps. SendToRoute(Lightning_SendToRouteServer) error // * // SendToRouteSync is a synchronous version of SendToRoute. It Will block // until the payment either fails or succeeds. SendToRouteSync(context.Context, *SendToRouteRequest) (*SendResponse, error) // * lncli: `addinvoice` // AddInvoice attempts to add a new invoice to the invoice database. Any // duplicated invoices are rejected, therefore all invoices *must* have a // unique payment preimage. AddInvoice(context.Context, *Invoice) (*AddInvoiceResponse, error) // * lncli: `listinvoices` // ListInvoices returns a list of all the invoices currently stored within the // database. Any active debug invoices are ignored. It has full support for // paginated responses, allowing users to query for specific invoices through // their add_index. This can be done by using either the first_index_offset or // last_index_offset fields included in the response as the index_offset of the // next request. The reversed flag is set by default in order to paginate // backwards. If you wish to paginate forwards, you must explicitly set the // flag to false. If none of the parameters are specified, then the last 100 // invoices will be returned. ListInvoices(context.Context, *ListInvoiceRequest) (*ListInvoiceResponse, error) // * lncli: `lookupinvoice` // LookupInvoice attempts to look up an invoice according to its payment hash. // The passed payment hash *must* be exactly 32 bytes, if not, an error is // returned. LookupInvoice(context.Context, *PaymentHash) (*Invoice, error) // * // SubscribeInvoices returns a uni-directional stream (server -> client) for // notifying the client of newly added/settled invoices. The caller can // optionally specify the add_index and/or the settle_index. If the add_index // is specified, then we'll first start by sending add invoice events for all // invoices with an add_index greater than the specified value. If the // settle_index is specified, the next, we'll send out all settle events for // invoices with a settle_index greater than the specified value. One or both // of these fields can be set. If no fields are set, then we'll only send out // the latest add/settle events. SubscribeInvoices(*InvoiceSubscription, Lightning_SubscribeInvoicesServer) error // * lncli: `decodepayreq` // DecodePayReq takes an encoded payment request string and attempts to decode // it, returning a full description of the conditions encoded within the // payment request. DecodePayReq(context.Context, *PayReqString) (*PayReq, error) // * lncli: `listpayments` // ListPayments returns a list of all outgoing payments. ListPayments(context.Context, *ListPaymentsRequest) (*ListPaymentsResponse, error) // * // DeleteAllPayments deletes all outgoing payments from DB. DeleteAllPayments(context.Context, *DeleteAllPaymentsRequest) (*DeleteAllPaymentsResponse, error) // * lncli: `describegraph` // DescribeGraph returns a description of the latest graph state from the // point of view of the node. The graph information is partitioned into two // components: all the nodes/vertexes, and all the edges that connect the // vertexes themselves. As this is a directed graph, the edges also contain // the node directional specific routing policy which includes: the time lock // delta, fee information, etc. DescribeGraph(context.Context, *ChannelGraphRequest) (*ChannelGraph, error) // * lncli: `getchaninfo` // GetChanInfo returns the latest authenticated network announcement for the // given channel identified by its channel ID: an 8-byte integer which // uniquely identifies the location of transaction's funding output within the // blockchain. GetChanInfo(context.Context, *ChanInfoRequest) (*ChannelEdge, error) // * lncli: `getnodeinfo` // GetNodeInfo returns the latest advertised, aggregated, and authenticated // channel information for the specified node identified by its public key. GetNodeInfo(context.Context, *NodeInfoRequest) (*NodeInfo, error) // * lncli: `queryroutes` // QueryRoutes attempts to query the daemon's Channel Router for a possible // route to a target destination capable of carrying a specific amount of // satoshis. The retuned route contains the full details required to craft and // send an HTLC, also including the necessary information that should be // present within the Sphinx packet encapsulated within the HTLC. QueryRoutes(context.Context, *QueryRoutesRequest) (*QueryRoutesResponse, error) // * lncli: `getnetworkinfo` // GetNetworkInfo returns some basic stats about the known channel graph from // the point of view of the node. GetNetworkInfo(context.Context, *NetworkInfoRequest) (*NetworkInfo, error) // * lncli: `stop` // StopDaemon will send a shutdown request to the interrupt handler, triggering // a graceful shutdown of the daemon. StopDaemon(context.Context, *StopRequest) (*StopResponse, error) // * // SubscribeChannelGraph launches a streaming RPC that allows the caller to // receive notifications upon any changes to the channel graph topology from // the point of view of the responding node. Events notified include: new // nodes coming online, nodes updating their authenticated attributes, new // channels being advertised, updates in the routing policy for a directional // channel edge, and when channels are closed on-chain. SubscribeChannelGraph(*GraphTopologySubscription, Lightning_SubscribeChannelGraphServer) error // * lncli: `debuglevel` // DebugLevel allows a caller to programmatically set the logging verbosity of // lnd. The logging can be targeted according to a coarse daemon-wide logging // level, or in a granular fashion to specify the logging for a target // sub-system. DebugLevel(context.Context, *DebugLevelRequest) (*DebugLevelResponse, error) // * lncli: `feereport` // FeeReport allows the caller to obtain a report detailing the current fee // schedule enforced by the node globally for each channel. FeeReport(context.Context, *FeeReportRequest) (*FeeReportResponse, error) // * lncli: `updatechanpolicy` // UpdateChannelPolicy allows the caller to update the fee schedule and // channel policies for all channels globally, or a particular channel. UpdateChannelPolicy(context.Context, *PolicyUpdateRequest) (*PolicyUpdateResponse, error) // * lncli: `fwdinghistory` // ForwardingHistory allows the caller to query the htlcswitch for a record of // all HTLC's forwarded within the target time range, and integer offset // within that time range. If no time-range is specified, then the first chunk // of the past 24 hrs of forwarding history are returned. // // A list of forwarding events are returned. The size of each forwarding event // is 40 bytes, and the max message size able to be returned in gRPC is 4 MiB. // As a result each message can only contain 50k entries. Each response has // the index offset of the last entry. The index offset can be provided to the // request to allow the caller to skip a series of records. ForwardingHistory(context.Context, *ForwardingHistoryRequest) (*ForwardingHistoryResponse, error) }
type Lightning_CloseChannelClient ¶
type Lightning_CloseChannelClient interface { Recv() (*CloseStatusUpdate, error) grpc.ClientStream }
type Lightning_CloseChannelServer ¶
type Lightning_CloseChannelServer interface { Send(*CloseStatusUpdate) error grpc.ServerStream }
type Lightning_OpenChannelClient ¶
type Lightning_OpenChannelClient interface { Recv() (*OpenStatusUpdate, error) grpc.ClientStream }
type Lightning_OpenChannelServer ¶
type Lightning_OpenChannelServer interface { Send(*OpenStatusUpdate) error grpc.ServerStream }
type Lightning_SendPaymentClient ¶
type Lightning_SendPaymentClient interface { Send(*SendRequest) error Recv() (*SendResponse, error) grpc.ClientStream }
type Lightning_SendPaymentServer ¶
type Lightning_SendPaymentServer interface { Send(*SendResponse) error Recv() (*SendRequest, error) grpc.ServerStream }
type Lightning_SendToRouteClient ¶
type Lightning_SendToRouteClient interface { Send(*SendToRouteRequest) error Recv() (*SendResponse, error) grpc.ClientStream }
type Lightning_SendToRouteServer ¶
type Lightning_SendToRouteServer interface { Send(*SendResponse) error Recv() (*SendToRouteRequest, error) grpc.ServerStream }
type Lightning_SubscribeChannelGraphClient ¶
type Lightning_SubscribeChannelGraphClient interface { Recv() (*GraphTopologyUpdate, error) grpc.ClientStream }
type Lightning_SubscribeChannelGraphServer ¶
type Lightning_SubscribeChannelGraphServer interface { Send(*GraphTopologyUpdate) error grpc.ServerStream }
type Lightning_SubscribeInvoicesClient ¶
type Lightning_SubscribeInvoicesClient interface { Recv() (*Invoice, error) grpc.ClientStream }
type Lightning_SubscribeInvoicesServer ¶
type Lightning_SubscribeInvoicesServer interface { Send(*Invoice) error grpc.ServerStream }
type Lightning_SubscribeTransactionsClient ¶
type Lightning_SubscribeTransactionsClient interface { Recv() (*Transaction, error) grpc.ClientStream }
type Lightning_SubscribeTransactionsServer ¶
type Lightning_SubscribeTransactionsServer interface { Send(*Transaction) error grpc.ServerStream }
type ListChannelsRequest ¶
type ListChannelsRequest struct { ActiveOnly bool `protobuf:"varint,1,opt,name=active_only,json=activeOnly" json:"active_only,omitempty"` InactiveOnly bool `protobuf:"varint,2,opt,name=inactive_only,json=inactiveOnly" json:"inactive_only,omitempty"` PublicOnly bool `protobuf:"varint,3,opt,name=public_only,json=publicOnly" json:"public_only,omitempty"` PrivateOnly bool `protobuf:"varint,4,opt,name=private_only,json=privateOnly" json:"private_only,omitempty"` }
func (*ListChannelsRequest) Descriptor ¶
func (*ListChannelsRequest) Descriptor() ([]byte, []int)
func (*ListChannelsRequest) GetActiveOnly ¶
func (m *ListChannelsRequest) GetActiveOnly() bool
func (*ListChannelsRequest) GetInactiveOnly ¶
func (m *ListChannelsRequest) GetInactiveOnly() bool
func (*ListChannelsRequest) GetPrivateOnly ¶
func (m *ListChannelsRequest) GetPrivateOnly() bool
func (*ListChannelsRequest) GetPublicOnly ¶
func (m *ListChannelsRequest) GetPublicOnly() bool
func (*ListChannelsRequest) ProtoMessage ¶
func (*ListChannelsRequest) ProtoMessage()
func (*ListChannelsRequest) Reset ¶
func (m *ListChannelsRequest) Reset()
func (*ListChannelsRequest) String ¶
func (m *ListChannelsRequest) String() string
type ListChannelsResponse ¶
type ListChannelsResponse struct { // / The list of active channels Channels []*Channel `protobuf:"bytes,11,rep,name=channels" json:"channels,omitempty"` }
func (*ListChannelsResponse) Descriptor ¶
func (*ListChannelsResponse) Descriptor() ([]byte, []int)
func (*ListChannelsResponse) GetChannels ¶
func (m *ListChannelsResponse) GetChannels() []*Channel
func (*ListChannelsResponse) ProtoMessage ¶
func (*ListChannelsResponse) ProtoMessage()
func (*ListChannelsResponse) Reset ¶
func (m *ListChannelsResponse) Reset()
func (*ListChannelsResponse) String ¶
func (m *ListChannelsResponse) String() string
type ListInvoiceRequest ¶
type ListInvoiceRequest struct { // / If set, only unsettled invoices will be returned in the response. PendingOnly bool `protobuf:"varint,1,opt,name=pending_only" json:"pending_only,omitempty"` // * // The index of an invoice that will be used as either the start or end of a // query to determine which invoices should be returned in the response. IndexOffset uint64 `protobuf:"varint,4,opt,name=index_offset" json:"index_offset,omitempty"` // / The max number of invoices to return in the response to this query. NumMaxInvoices uint64 `protobuf:"varint,5,opt,name=num_max_invoices" json:"num_max_invoices,omitempty"` // * // If set, the invoices returned will result from seeking backwards from the // specified index offset. This can be used to paginate backwards. Reversed bool `protobuf:"varint,6,opt,name=reversed" json:"reversed,omitempty"` }
func (*ListInvoiceRequest) Descriptor ¶
func (*ListInvoiceRequest) Descriptor() ([]byte, []int)
func (*ListInvoiceRequest) GetIndexOffset ¶
func (m *ListInvoiceRequest) GetIndexOffset() uint64
func (*ListInvoiceRequest) GetNumMaxInvoices ¶
func (m *ListInvoiceRequest) GetNumMaxInvoices() uint64
func (*ListInvoiceRequest) GetPendingOnly ¶
func (m *ListInvoiceRequest) GetPendingOnly() bool
func (*ListInvoiceRequest) GetReversed ¶
func (m *ListInvoiceRequest) GetReversed() bool
func (*ListInvoiceRequest) ProtoMessage ¶
func (*ListInvoiceRequest) ProtoMessage()
func (*ListInvoiceRequest) Reset ¶
func (m *ListInvoiceRequest) Reset()
func (*ListInvoiceRequest) String ¶
func (m *ListInvoiceRequest) String() string
type ListInvoiceResponse ¶
type ListInvoiceResponse struct { // * // A list of invoices from the time slice of the time series specified in the // request. Invoices []*Invoice `protobuf:"bytes,1,rep,name=invoices" json:"invoices,omitempty"` // * // The index of the last item in the set of returned invoices. This can be used // to seek further, pagination style. LastIndexOffset uint64 `protobuf:"varint,2,opt,name=last_index_offset" json:"last_index_offset,omitempty"` // * // The index of the last item in the set of returned invoices. This can be used // to seek backwards, pagination style. FirstIndexOffset uint64 `protobuf:"varint,3,opt,name=first_index_offset" json:"first_index_offset,omitempty"` }
func (*ListInvoiceResponse) Descriptor ¶
func (*ListInvoiceResponse) Descriptor() ([]byte, []int)
func (*ListInvoiceResponse) GetFirstIndexOffset ¶
func (m *ListInvoiceResponse) GetFirstIndexOffset() uint64
func (*ListInvoiceResponse) GetInvoices ¶
func (m *ListInvoiceResponse) GetInvoices() []*Invoice
func (*ListInvoiceResponse) GetLastIndexOffset ¶
func (m *ListInvoiceResponse) GetLastIndexOffset() uint64
func (*ListInvoiceResponse) ProtoMessage ¶
func (*ListInvoiceResponse) ProtoMessage()
func (*ListInvoiceResponse) Reset ¶
func (m *ListInvoiceResponse) Reset()
func (*ListInvoiceResponse) String ¶
func (m *ListInvoiceResponse) String() string
type ListPaymentsRequest ¶
type ListPaymentsRequest struct { }
func (*ListPaymentsRequest) Descriptor ¶
func (*ListPaymentsRequest) Descriptor() ([]byte, []int)
func (*ListPaymentsRequest) ProtoMessage ¶
func (*ListPaymentsRequest) ProtoMessage()
func (*ListPaymentsRequest) Reset ¶
func (m *ListPaymentsRequest) Reset()
func (*ListPaymentsRequest) String ¶
func (m *ListPaymentsRequest) String() string
type ListPaymentsResponse ¶
type ListPaymentsResponse struct { // / The list of payments Payments []*Payment `protobuf:"bytes,1,rep,name=payments" json:"payments,omitempty"` }
func (*ListPaymentsResponse) Descriptor ¶
func (*ListPaymentsResponse) Descriptor() ([]byte, []int)
func (*ListPaymentsResponse) GetPayments ¶
func (m *ListPaymentsResponse) GetPayments() []*Payment
func (*ListPaymentsResponse) ProtoMessage ¶
func (*ListPaymentsResponse) ProtoMessage()
func (*ListPaymentsResponse) Reset ¶
func (m *ListPaymentsResponse) Reset()
func (*ListPaymentsResponse) String ¶
func (m *ListPaymentsResponse) String() string
type ListPeersRequest ¶
type ListPeersRequest struct { }
func (*ListPeersRequest) Descriptor ¶
func (*ListPeersRequest) Descriptor() ([]byte, []int)
func (*ListPeersRequest) ProtoMessage ¶
func (*ListPeersRequest) ProtoMessage()
func (*ListPeersRequest) Reset ¶
func (m *ListPeersRequest) Reset()
func (*ListPeersRequest) String ¶
func (m *ListPeersRequest) String() string
type ListPeersResponse ¶
type ListPeersResponse struct { // / The list of currently connected peers Peers []*Peer `protobuf:"bytes,1,rep,name=peers" json:"peers,omitempty"` }
func (*ListPeersResponse) Descriptor ¶
func (*ListPeersResponse) Descriptor() ([]byte, []int)
func (*ListPeersResponse) GetPeers ¶
func (m *ListPeersResponse) GetPeers() []*Peer
func (*ListPeersResponse) ProtoMessage ¶
func (*ListPeersResponse) ProtoMessage()
func (*ListPeersResponse) Reset ¶
func (m *ListPeersResponse) Reset()
func (*ListPeersResponse) String ¶
func (m *ListPeersResponse) String() string
type NetworkInfo ¶
type NetworkInfo struct { GraphDiameter uint32 `protobuf:"varint,1,opt,name=graph_diameter" json:"graph_diameter,omitempty"` AvgOutDegree float64 `protobuf:"fixed64,2,opt,name=avg_out_degree" json:"avg_out_degree,omitempty"` MaxOutDegree uint32 `protobuf:"varint,3,opt,name=max_out_degree" json:"max_out_degree,omitempty"` NumNodes uint32 `protobuf:"varint,4,opt,name=num_nodes" json:"num_nodes,omitempty"` NumChannels uint32 `protobuf:"varint,5,opt,name=num_channels" json:"num_channels,omitempty"` TotalNetworkCapacity int64 `protobuf:"varint,6,opt,name=total_network_capacity" json:"total_network_capacity,omitempty"` AvgChannelSize float64 `protobuf:"fixed64,7,opt,name=avg_channel_size" json:"avg_channel_size,omitempty"` MinChannelSize int64 `protobuf:"varint,8,opt,name=min_channel_size" json:"min_channel_size,omitempty"` MaxChannelSize int64 `protobuf:"varint,9,opt,name=max_channel_size" json:"max_channel_size,omitempty"` }
func (*NetworkInfo) Descriptor ¶
func (*NetworkInfo) Descriptor() ([]byte, []int)
func (*NetworkInfo) GetAvgChannelSize ¶
func (m *NetworkInfo) GetAvgChannelSize() float64
func (*NetworkInfo) GetAvgOutDegree ¶
func (m *NetworkInfo) GetAvgOutDegree() float64
func (*NetworkInfo) GetGraphDiameter ¶
func (m *NetworkInfo) GetGraphDiameter() uint32
func (*NetworkInfo) GetMaxChannelSize ¶
func (m *NetworkInfo) GetMaxChannelSize() int64
func (*NetworkInfo) GetMaxOutDegree ¶
func (m *NetworkInfo) GetMaxOutDegree() uint32
func (*NetworkInfo) GetMinChannelSize ¶
func (m *NetworkInfo) GetMinChannelSize() int64
func (*NetworkInfo) GetNumChannels ¶
func (m *NetworkInfo) GetNumChannels() uint32
func (*NetworkInfo) GetNumNodes ¶
func (m *NetworkInfo) GetNumNodes() uint32
func (*NetworkInfo) GetTotalNetworkCapacity ¶
func (m *NetworkInfo) GetTotalNetworkCapacity() int64
func (*NetworkInfo) ProtoMessage ¶
func (*NetworkInfo) ProtoMessage()
func (*NetworkInfo) Reset ¶
func (m *NetworkInfo) Reset()
func (*NetworkInfo) String ¶
func (m *NetworkInfo) String() string
type NetworkInfoRequest ¶
type NetworkInfoRequest struct { }
func (*NetworkInfoRequest) Descriptor ¶
func (*NetworkInfoRequest) Descriptor() ([]byte, []int)
func (*NetworkInfoRequest) ProtoMessage ¶
func (*NetworkInfoRequest) ProtoMessage()
func (*NetworkInfoRequest) Reset ¶
func (m *NetworkInfoRequest) Reset()
func (*NetworkInfoRequest) String ¶
func (m *NetworkInfoRequest) String() string
type NewAddressRequest ¶
type NewAddressRequest struct { // / The address type Type NewAddressRequest_AddressType `protobuf:"varint,1,opt,name=type,enum=lnrpc.NewAddressRequest_AddressType" json:"type,omitempty"` }
* `AddressType` has to be one of:
- `p2wkh`: Pay to witness key hash (`WITNESS_PUBKEY_HASH` = 0) - `np2wkh`: Pay to nested witness key hash (`NESTED_PUBKEY_HASH` = 1)
func (*NewAddressRequest) Descriptor ¶
func (*NewAddressRequest) Descriptor() ([]byte, []int)
func (*NewAddressRequest) GetType ¶
func (m *NewAddressRequest) GetType() NewAddressRequest_AddressType
func (*NewAddressRequest) ProtoMessage ¶
func (*NewAddressRequest) ProtoMessage()
func (*NewAddressRequest) Reset ¶
func (m *NewAddressRequest) Reset()
func (*NewAddressRequest) String ¶
func (m *NewAddressRequest) String() string
type NewAddressRequest_AddressType ¶
type NewAddressRequest_AddressType int32
const ( NewAddressRequest_WITNESS_PUBKEY_HASH NewAddressRequest_AddressType = 0 NewAddressRequest_NESTED_PUBKEY_HASH NewAddressRequest_AddressType = 1 )
func (NewAddressRequest_AddressType) EnumDescriptor ¶
func (NewAddressRequest_AddressType) EnumDescriptor() ([]byte, []int)
func (NewAddressRequest_AddressType) String ¶
func (x NewAddressRequest_AddressType) String() string
type NewAddressResponse ¶
type NewAddressResponse struct { // / The newly generated wallet address Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"` }
func (*NewAddressResponse) Descriptor ¶
func (*NewAddressResponse) Descriptor() ([]byte, []int)
func (*NewAddressResponse) GetAddress ¶
func (m *NewAddressResponse) GetAddress() string
func (*NewAddressResponse) ProtoMessage ¶
func (*NewAddressResponse) ProtoMessage()
func (*NewAddressResponse) Reset ¶
func (m *NewAddressResponse) Reset()
func (*NewAddressResponse) String ¶
func (m *NewAddressResponse) String() string
type NodeAddress ¶
type NodeAddress struct { Network string `protobuf:"bytes,1,opt,name=network" json:"network,omitempty"` Addr string `protobuf:"bytes,2,opt,name=addr" json:"addr,omitempty"` }
func (*NodeAddress) Descriptor ¶
func (*NodeAddress) Descriptor() ([]byte, []int)
func (*NodeAddress) GetAddr ¶
func (m *NodeAddress) GetAddr() string
func (*NodeAddress) GetNetwork ¶
func (m *NodeAddress) GetNetwork() string
func (*NodeAddress) ProtoMessage ¶
func (*NodeAddress) ProtoMessage()
func (*NodeAddress) Reset ¶
func (m *NodeAddress) Reset()
func (*NodeAddress) String ¶
func (m *NodeAddress) String() string
type NodeInfo ¶
type NodeInfo struct { // * // An individual vertex/node within the channel graph. A node is // connected to other nodes by one or more channel edges emanating from it. As // the graph is directed, a node will also have an incoming edge attached to // it for each outgoing edge. Node *LightningNode `protobuf:"bytes,1,opt,name=node" json:"node,omitempty"` NumChannels uint32 `protobuf:"varint,2,opt,name=num_channels" json:"num_channels,omitempty"` TotalCapacity int64 `protobuf:"varint,3,opt,name=total_capacity" json:"total_capacity,omitempty"` }
func (*NodeInfo) Descriptor ¶
func (*NodeInfo) GetNode ¶
func (m *NodeInfo) GetNode() *LightningNode
func (*NodeInfo) GetNumChannels ¶
func (*NodeInfo) GetTotalCapacity ¶
func (*NodeInfo) ProtoMessage ¶
func (*NodeInfo) ProtoMessage()
type NodeInfoRequest ¶
type NodeInfoRequest struct { // / The 33-byte hex-encoded compressed public of the target node PubKey string `protobuf:"bytes,1,opt,name=pub_key,json=pubKey" json:"pub_key,omitempty"` }
func (*NodeInfoRequest) Descriptor ¶
func (*NodeInfoRequest) Descriptor() ([]byte, []int)
func (*NodeInfoRequest) GetPubKey ¶
func (m *NodeInfoRequest) GetPubKey() string
func (*NodeInfoRequest) ProtoMessage ¶
func (*NodeInfoRequest) ProtoMessage()
func (*NodeInfoRequest) Reset ¶
func (m *NodeInfoRequest) Reset()
func (*NodeInfoRequest) String ¶
func (m *NodeInfoRequest) String() string
type NodeUpdate ¶
type NodeUpdate struct { Addresses []string `protobuf:"bytes,1,rep,name=addresses" json:"addresses,omitempty"` IdentityKey string `protobuf:"bytes,2,opt,name=identity_key,json=identityKey" json:"identity_key,omitempty"` GlobalFeatures []byte `protobuf:"bytes,3,opt,name=global_features,json=globalFeatures,proto3" json:"global_features,omitempty"` Alias string `protobuf:"bytes,4,opt,name=alias" json:"alias,omitempty"` }
func (*NodeUpdate) Descriptor ¶
func (*NodeUpdate) Descriptor() ([]byte, []int)
func (*NodeUpdate) GetAddresses ¶
func (m *NodeUpdate) GetAddresses() []string
func (*NodeUpdate) GetAlias ¶
func (m *NodeUpdate) GetAlias() string
func (*NodeUpdate) GetGlobalFeatures ¶
func (m *NodeUpdate) GetGlobalFeatures() []byte
func (*NodeUpdate) GetIdentityKey ¶
func (m *NodeUpdate) GetIdentityKey() string
func (*NodeUpdate) ProtoMessage ¶
func (*NodeUpdate) ProtoMessage()
func (*NodeUpdate) Reset ¶
func (m *NodeUpdate) Reset()
func (*NodeUpdate) String ¶
func (m *NodeUpdate) String() string
type OpenChannelRequest ¶
type OpenChannelRequest struct { // / The pubkey of the node to open a channel with NodePubkey []byte `protobuf:"bytes,2,opt,name=node_pubkey,proto3" json:"node_pubkey,omitempty"` // / The hex encoded pubkey of the node to open a channel with NodePubkeyString string `protobuf:"bytes,3,opt,name=node_pubkey_string" json:"node_pubkey_string,omitempty"` // / The number of satoshis the wallet should commit to the channel LocalFundingAmount int64 `protobuf:"varint,4,opt,name=local_funding_amount" json:"local_funding_amount,omitempty"` // / The number of satoshis to push to the remote side as part of the initial commitment state PushSat int64 `protobuf:"varint,5,opt,name=push_sat" json:"push_sat,omitempty"` // / The target number of blocks that the funding transaction should be confirmed by. TargetConf int32 `protobuf:"varint,6,opt,name=target_conf,json=targetConf" json:"target_conf,omitempty"` // / A manual fee rate set in sat/byte that should be used when crafting the funding transaction. SatPerByte int64 `protobuf:"varint,7,opt,name=sat_per_byte,json=satPerByte" json:"sat_per_byte,omitempty"` // / Whether this channel should be private, not announced to the greater network. Private bool `protobuf:"varint,8,opt,name=private" json:"private,omitempty"` // / The minimum value in millisatoshi we will require for incoming HTLCs on the channel. MinHtlcMsat int64 `protobuf:"varint,9,opt,name=min_htlc_msat" json:"min_htlc_msat,omitempty"` // / The delay we require on the remote's commitment transaction. If this is not set, it will be scaled automatically with the channel size. RemoteCsvDelay uint32 `protobuf:"varint,10,opt,name=remote_csv_delay" json:"remote_csv_delay,omitempty"` // / The minimum number of confirmations each one of your outputs used for the funding transaction must satisfy. MinConfs int32 `protobuf:"varint,11,opt,name=min_confs" json:"min_confs,omitempty"` // / Whether unconfirmed outputs should be used as inputs for the funding transaction. SpendUnconfirmed bool `protobuf:"varint,12,opt,name=spend_unconfirmed" json:"spend_unconfirmed,omitempty"` }
func (*OpenChannelRequest) Descriptor ¶
func (*OpenChannelRequest) Descriptor() ([]byte, []int)
func (*OpenChannelRequest) GetLocalFundingAmount ¶
func (m *OpenChannelRequest) GetLocalFundingAmount() int64
func (*OpenChannelRequest) GetMinConfs ¶
func (m *OpenChannelRequest) GetMinConfs() int32
func (*OpenChannelRequest) GetMinHtlcMsat ¶
func (m *OpenChannelRequest) GetMinHtlcMsat() int64
func (*OpenChannelRequest) GetNodePubkey ¶
func (m *OpenChannelRequest) GetNodePubkey() []byte
func (*OpenChannelRequest) GetNodePubkeyString ¶
func (m *OpenChannelRequest) GetNodePubkeyString() string
func (*OpenChannelRequest) GetPrivate ¶
func (m *OpenChannelRequest) GetPrivate() bool
func (*OpenChannelRequest) GetPushSat ¶
func (m *OpenChannelRequest) GetPushSat() int64
func (*OpenChannelRequest) GetRemoteCsvDelay ¶
func (m *OpenChannelRequest) GetRemoteCsvDelay() uint32
func (*OpenChannelRequest) GetSatPerByte ¶
func (m *OpenChannelRequest) GetSatPerByte() int64
func (*OpenChannelRequest) GetSpendUnconfirmed ¶
func (m *OpenChannelRequest) GetSpendUnconfirmed() bool
func (*OpenChannelRequest) GetTargetConf ¶
func (m *OpenChannelRequest) GetTargetConf() int32
func (*OpenChannelRequest) ProtoMessage ¶
func (*OpenChannelRequest) ProtoMessage()
func (*OpenChannelRequest) Reset ¶
func (m *OpenChannelRequest) Reset()
func (*OpenChannelRequest) String ¶
func (m *OpenChannelRequest) String() string
type OpenStatusUpdate ¶
type OpenStatusUpdate struct { // Types that are valid to be assigned to Update: // *OpenStatusUpdate_ChanPending // *OpenStatusUpdate_Confirmation // *OpenStatusUpdate_ChanOpen Update isOpenStatusUpdate_Update `protobuf_oneof:"update"` }
func (*OpenStatusUpdate) Descriptor ¶
func (*OpenStatusUpdate) Descriptor() ([]byte, []int)
func (*OpenStatusUpdate) GetChanOpen ¶
func (m *OpenStatusUpdate) GetChanOpen() *ChannelOpenUpdate
func (*OpenStatusUpdate) GetChanPending ¶
func (m *OpenStatusUpdate) GetChanPending() *PendingUpdate
func (*OpenStatusUpdate) GetConfirmation ¶
func (m *OpenStatusUpdate) GetConfirmation() *ConfirmationUpdate
func (*OpenStatusUpdate) GetUpdate ¶
func (m *OpenStatusUpdate) GetUpdate() isOpenStatusUpdate_Update
func (*OpenStatusUpdate) ProtoMessage ¶
func (*OpenStatusUpdate) ProtoMessage()
func (*OpenStatusUpdate) Reset ¶
func (m *OpenStatusUpdate) Reset()
func (*OpenStatusUpdate) String ¶
func (m *OpenStatusUpdate) String() string
func (*OpenStatusUpdate) XXX_OneofFuncs ¶
func (*OpenStatusUpdate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type OpenStatusUpdate_ChanOpen ¶
type OpenStatusUpdate_ChanOpen struct {
ChanOpen *ChannelOpenUpdate `protobuf:"bytes,3,opt,name=chan_open,oneof"`
}
type OpenStatusUpdate_ChanPending ¶
type OpenStatusUpdate_ChanPending struct {
ChanPending *PendingUpdate `protobuf:"bytes,1,opt,name=chan_pending,oneof"`
}
type OpenStatusUpdate_Confirmation ¶
type OpenStatusUpdate_Confirmation struct {
Confirmation *ConfirmationUpdate `protobuf:"bytes,2,opt,name=confirmation,oneof"`
}
type PayReq ¶
type PayReq struct { Destination string `protobuf:"bytes,1,opt,name=destination" json:"destination,omitempty"` PaymentHash string `protobuf:"bytes,2,opt,name=payment_hash" json:"payment_hash,omitempty"` NumSatoshis int64 `protobuf:"varint,3,opt,name=num_satoshis" json:"num_satoshis,omitempty"` Timestamp int64 `protobuf:"varint,4,opt,name=timestamp" json:"timestamp,omitempty"` Expiry int64 `protobuf:"varint,5,opt,name=expiry" json:"expiry,omitempty"` Description string `protobuf:"bytes,6,opt,name=description" json:"description,omitempty"` DescriptionHash string `protobuf:"bytes,7,opt,name=description_hash" json:"description_hash,omitempty"` FallbackAddr string `protobuf:"bytes,8,opt,name=fallback_addr" json:"fallback_addr,omitempty"` CltvExpiry int64 `protobuf:"varint,9,opt,name=cltv_expiry" json:"cltv_expiry,omitempty"` RouteHints []*RouteHint `protobuf:"bytes,10,rep,name=route_hints" json:"route_hints,omitempty"` }
func (*PayReq) Descriptor ¶
func (*PayReq) GetCltvExpiry ¶
func (*PayReq) GetDescription ¶
func (*PayReq) GetDescriptionHash ¶
func (*PayReq) GetDestination ¶
func (*PayReq) GetFallbackAddr ¶
func (*PayReq) GetNumSatoshis ¶
func (*PayReq) GetPaymentHash ¶
func (*PayReq) GetRouteHints ¶
func (*PayReq) GetTimestamp ¶
func (*PayReq) ProtoMessage ¶
func (*PayReq) ProtoMessage()
type PayReqString ¶
type PayReqString struct { // / The payment request string to be decoded PayReq string `protobuf:"bytes,1,opt,name=pay_req,json=payReq" json:"pay_req,omitempty"` }
func (*PayReqString) Descriptor ¶
func (*PayReqString) Descriptor() ([]byte, []int)
func (*PayReqString) GetPayReq ¶
func (m *PayReqString) GetPayReq() string
func (*PayReqString) ProtoMessage ¶
func (*PayReqString) ProtoMessage()
func (*PayReqString) Reset ¶
func (m *PayReqString) Reset()
func (*PayReqString) String ¶
func (m *PayReqString) String() string
type Payment ¶
type Payment struct { // / The payment hash PaymentHash string `protobuf:"bytes,1,opt,name=payment_hash" json:"payment_hash,omitempty"` // / Deprecated, use value_sat or value_msat. Value int64 `protobuf:"varint,2,opt,name=value" json:"value,omitempty"` // / The date of this payment CreationDate int64 `protobuf:"varint,3,opt,name=creation_date" json:"creation_date,omitempty"` // / The path this payment took Path []string `protobuf:"bytes,4,rep,name=path" json:"path,omitempty"` // / The fee paid for this payment in satoshis Fee int64 `protobuf:"varint,5,opt,name=fee" json:"fee,omitempty"` // / The payment preimage PaymentPreimage string `protobuf:"bytes,6,opt,name=payment_preimage" json:"payment_preimage,omitempty"` // / The value of the payment in satoshis ValueSat int64 `protobuf:"varint,7,opt,name=value_sat" json:"value_sat,omitempty"` // / The value of the payment in milli-satoshis ValueMsat int64 `protobuf:"varint,8,opt,name=value_msat" json:"value_msat,omitempty"` }
func (*Payment) Descriptor ¶
func (*Payment) GetCreationDate ¶
func (*Payment) GetPaymentHash ¶
func (*Payment) GetPaymentPreimage ¶
func (*Payment) GetValueMsat ¶
func (*Payment) GetValueSat ¶
func (*Payment) ProtoMessage ¶
func (*Payment) ProtoMessage()
type PaymentHash ¶
type PaymentHash struct { // * // The hex-encoded payment hash of the invoice to be looked up. The passed // payment hash must be exactly 32 bytes, otherwise an error is returned. RHashStr string `protobuf:"bytes,1,opt,name=r_hash_str" json:"r_hash_str,omitempty"` // / The payment hash of the invoice to be looked up. RHash []byte `protobuf:"bytes,2,opt,name=r_hash,proto3" json:"r_hash,omitempty"` }
func (*PaymentHash) Descriptor ¶
func (*PaymentHash) Descriptor() ([]byte, []int)
func (*PaymentHash) GetRHash ¶
func (m *PaymentHash) GetRHash() []byte
func (*PaymentHash) GetRHashStr ¶
func (m *PaymentHash) GetRHashStr() string
func (*PaymentHash) ProtoMessage ¶
func (*PaymentHash) ProtoMessage()
func (*PaymentHash) Reset ¶
func (m *PaymentHash) Reset()
func (*PaymentHash) String ¶
func (m *PaymentHash) String() string
type Peer ¶
type Peer struct { // / The identity pubkey of the peer PubKey string `protobuf:"bytes,1,opt,name=pub_key" json:"pub_key,omitempty"` // / Network address of the peer; eg `127.0.0.1:10011` Address string `protobuf:"bytes,3,opt,name=address" json:"address,omitempty"` // / Bytes of data transmitted to this peer BytesSent uint64 `protobuf:"varint,4,opt,name=bytes_sent" json:"bytes_sent,omitempty"` // / Bytes of data transmitted from this peer BytesRecv uint64 `protobuf:"varint,5,opt,name=bytes_recv" json:"bytes_recv,omitempty"` // / Satoshis sent to this peer SatSent int64 `protobuf:"varint,6,opt,name=sat_sent" json:"sat_sent,omitempty"` // / Satoshis received from this peer SatRecv int64 `protobuf:"varint,7,opt,name=sat_recv" json:"sat_recv,omitempty"` // / A channel is inbound if the counterparty initiated the channel Inbound bool `protobuf:"varint,8,opt,name=inbound" json:"inbound,omitempty"` // / Ping time to this peer PingTime int64 `protobuf:"varint,9,opt,name=ping_time" json:"ping_time,omitempty"` }
func (*Peer) Descriptor ¶
func (*Peer) GetAddress ¶
func (*Peer) GetBytesRecv ¶
func (*Peer) GetBytesSent ¶
func (*Peer) GetInbound ¶
func (*Peer) GetPingTime ¶
func (*Peer) GetSatRecv ¶
func (*Peer) GetSatSent ¶
func (*Peer) ProtoMessage ¶
func (*Peer) ProtoMessage()
type PendingChannelsRequest ¶
type PendingChannelsRequest struct { }
func (*PendingChannelsRequest) Descriptor ¶
func (*PendingChannelsRequest) Descriptor() ([]byte, []int)
func (*PendingChannelsRequest) ProtoMessage ¶
func (*PendingChannelsRequest) ProtoMessage()
func (*PendingChannelsRequest) Reset ¶
func (m *PendingChannelsRequest) Reset()
func (*PendingChannelsRequest) String ¶
func (m *PendingChannelsRequest) String() string
type PendingChannelsResponse ¶
type PendingChannelsResponse struct { // / The balance in satoshis encumbered in pending channels TotalLimboBalance int64 `protobuf:"varint,1,opt,name=total_limbo_balance" json:"total_limbo_balance,omitempty"` // / Channels pending opening PendingOpenChannels []*PendingChannelsResponse_PendingOpenChannel `protobuf:"bytes,2,rep,name=pending_open_channels" json:"pending_open_channels,omitempty"` // / Channels pending closing PendingClosingChannels []*PendingChannelsResponse_ClosedChannel `protobuf:"bytes,3,rep,name=pending_closing_channels" json:"pending_closing_channels,omitempty"` // / Channels pending force closing PendingForceClosingChannels []*PendingChannelsResponse_ForceClosedChannel `protobuf:"bytes,4,rep,name=pending_force_closing_channels" json:"pending_force_closing_channels,omitempty"` // / Channels waiting for closing tx to confirm WaitingCloseChannels []*PendingChannelsResponse_WaitingCloseChannel `protobuf:"bytes,5,rep,name=waiting_close_channels" json:"waiting_close_channels,omitempty"` }
func (*PendingChannelsResponse) Descriptor ¶
func (*PendingChannelsResponse) Descriptor() ([]byte, []int)
func (*PendingChannelsResponse) GetPendingClosingChannels ¶
func (m *PendingChannelsResponse) GetPendingClosingChannels() []*PendingChannelsResponse_ClosedChannel
func (*PendingChannelsResponse) GetPendingForceClosingChannels ¶
func (m *PendingChannelsResponse) GetPendingForceClosingChannels() []*PendingChannelsResponse_ForceClosedChannel
func (*PendingChannelsResponse) GetPendingOpenChannels ¶
func (m *PendingChannelsResponse) GetPendingOpenChannels() []*PendingChannelsResponse_PendingOpenChannel
func (*PendingChannelsResponse) GetTotalLimboBalance ¶
func (m *PendingChannelsResponse) GetTotalLimboBalance() int64
func (*PendingChannelsResponse) GetWaitingCloseChannels ¶
func (m *PendingChannelsResponse) GetWaitingCloseChannels() []*PendingChannelsResponse_WaitingCloseChannel
func (*PendingChannelsResponse) ProtoMessage ¶
func (*PendingChannelsResponse) ProtoMessage()
func (*PendingChannelsResponse) Reset ¶
func (m *PendingChannelsResponse) Reset()
func (*PendingChannelsResponse) String ¶
func (m *PendingChannelsResponse) String() string
type PendingChannelsResponse_ClosedChannel ¶
type PendingChannelsResponse_ClosedChannel struct { // / The pending channel to be closed Channel *PendingChannelsResponse_PendingChannel `protobuf:"bytes,1,opt,name=channel" json:"channel,omitempty"` // / The transaction id of the closing transaction ClosingTxid string `protobuf:"bytes,2,opt,name=closing_txid" json:"closing_txid,omitempty"` }
func (*PendingChannelsResponse_ClosedChannel) Descriptor ¶
func (*PendingChannelsResponse_ClosedChannel) Descriptor() ([]byte, []int)
func (*PendingChannelsResponse_ClosedChannel) GetChannel ¶
func (m *PendingChannelsResponse_ClosedChannel) GetChannel() *PendingChannelsResponse_PendingChannel
func (*PendingChannelsResponse_ClosedChannel) GetClosingTxid ¶
func (m *PendingChannelsResponse_ClosedChannel) GetClosingTxid() string
func (*PendingChannelsResponse_ClosedChannel) ProtoMessage ¶
func (*PendingChannelsResponse_ClosedChannel) ProtoMessage()
func (*PendingChannelsResponse_ClosedChannel) Reset ¶
func (m *PendingChannelsResponse_ClosedChannel) Reset()
func (*PendingChannelsResponse_ClosedChannel) String ¶
func (m *PendingChannelsResponse_ClosedChannel) String() string
type PendingChannelsResponse_ForceClosedChannel ¶
type PendingChannelsResponse_ForceClosedChannel struct { // / The pending channel to be force closed Channel *PendingChannelsResponse_PendingChannel `protobuf:"bytes,1,opt,name=channel" json:"channel,omitempty"` // / The transaction id of the closing transaction ClosingTxid string `protobuf:"bytes,2,opt,name=closing_txid" json:"closing_txid,omitempty"` // / The balance in satoshis encumbered in this pending channel LimboBalance int64 `protobuf:"varint,3,opt,name=limbo_balance" json:"limbo_balance,omitempty"` // / The height at which funds can be sweeped into the wallet MaturityHeight uint32 `protobuf:"varint,4,opt,name=maturity_height" json:"maturity_height,omitempty"` // // Remaining # of blocks until the commitment output can be swept. // Negative values indicate how many blocks have passed since becoming // mature. BlocksTilMaturity int32 `protobuf:"varint,5,opt,name=blocks_til_maturity" json:"blocks_til_maturity,omitempty"` // / The total value of funds successfully recovered from this channel RecoveredBalance int64 `protobuf:"varint,6,opt,name=recovered_balance" json:"recovered_balance,omitempty"` PendingHtlcs []*PendingHTLC `protobuf:"bytes,8,rep,name=pending_htlcs" json:"pending_htlcs,omitempty"` }
func (*PendingChannelsResponse_ForceClosedChannel) Descriptor ¶
func (*PendingChannelsResponse_ForceClosedChannel) Descriptor() ([]byte, []int)
func (*PendingChannelsResponse_ForceClosedChannel) GetBlocksTilMaturity ¶
func (m *PendingChannelsResponse_ForceClosedChannel) GetBlocksTilMaturity() int32
func (*PendingChannelsResponse_ForceClosedChannel) GetChannel ¶
func (m *PendingChannelsResponse_ForceClosedChannel) GetChannel() *PendingChannelsResponse_PendingChannel
func (*PendingChannelsResponse_ForceClosedChannel) GetClosingTxid ¶
func (m *PendingChannelsResponse_ForceClosedChannel) GetClosingTxid() string
func (*PendingChannelsResponse_ForceClosedChannel) GetLimboBalance ¶
func (m *PendingChannelsResponse_ForceClosedChannel) GetLimboBalance() int64
func (*PendingChannelsResponse_ForceClosedChannel) GetMaturityHeight ¶
func (m *PendingChannelsResponse_ForceClosedChannel) GetMaturityHeight() uint32
func (*PendingChannelsResponse_ForceClosedChannel) GetPendingHtlcs ¶
func (m *PendingChannelsResponse_ForceClosedChannel) GetPendingHtlcs() []*PendingHTLC
func (*PendingChannelsResponse_ForceClosedChannel) GetRecoveredBalance ¶
func (m *PendingChannelsResponse_ForceClosedChannel) GetRecoveredBalance() int64
func (*PendingChannelsResponse_ForceClosedChannel) ProtoMessage ¶
func (*PendingChannelsResponse_ForceClosedChannel) ProtoMessage()
func (*PendingChannelsResponse_ForceClosedChannel) Reset ¶
func (m *PendingChannelsResponse_ForceClosedChannel) Reset()
func (*PendingChannelsResponse_ForceClosedChannel) String ¶
func (m *PendingChannelsResponse_ForceClosedChannel) String() string
type PendingChannelsResponse_PendingChannel ¶
type PendingChannelsResponse_PendingChannel struct { RemoteNodePub string `protobuf:"bytes,1,opt,name=remote_node_pub" json:"remote_node_pub,omitempty"` ChannelPoint string `protobuf:"bytes,2,opt,name=channel_point" json:"channel_point,omitempty"` Capacity int64 `protobuf:"varint,3,opt,name=capacity" json:"capacity,omitempty"` LocalBalance int64 `protobuf:"varint,4,opt,name=local_balance" json:"local_balance,omitempty"` RemoteBalance int64 `protobuf:"varint,5,opt,name=remote_balance" json:"remote_balance,omitempty"` }
func (*PendingChannelsResponse_PendingChannel) Descriptor ¶
func (*PendingChannelsResponse_PendingChannel) Descriptor() ([]byte, []int)
func (*PendingChannelsResponse_PendingChannel) GetCapacity ¶
func (m *PendingChannelsResponse_PendingChannel) GetCapacity() int64
func (*PendingChannelsResponse_PendingChannel) GetChannelPoint ¶
func (m *PendingChannelsResponse_PendingChannel) GetChannelPoint() string
func (*PendingChannelsResponse_PendingChannel) GetLocalBalance ¶
func (m *PendingChannelsResponse_PendingChannel) GetLocalBalance() int64
func (*PendingChannelsResponse_PendingChannel) GetRemoteBalance ¶
func (m *PendingChannelsResponse_PendingChannel) GetRemoteBalance() int64
func (*PendingChannelsResponse_PendingChannel) GetRemoteNodePub ¶
func (m *PendingChannelsResponse_PendingChannel) GetRemoteNodePub() string
func (*PendingChannelsResponse_PendingChannel) ProtoMessage ¶
func (*PendingChannelsResponse_PendingChannel) ProtoMessage()
func (*PendingChannelsResponse_PendingChannel) Reset ¶
func (m *PendingChannelsResponse_PendingChannel) Reset()
func (*PendingChannelsResponse_PendingChannel) String ¶
func (m *PendingChannelsResponse_PendingChannel) String() string
type PendingChannelsResponse_PendingOpenChannel ¶
type PendingChannelsResponse_PendingOpenChannel struct { // / The pending channel Channel *PendingChannelsResponse_PendingChannel `protobuf:"bytes,1,opt,name=channel" json:"channel,omitempty"` // / The height at which this channel will be confirmed ConfirmationHeight uint32 `protobuf:"varint,2,opt,name=confirmation_height" json:"confirmation_height,omitempty"` // * // The amount calculated to be paid in fees for the current set of // commitment transactions. The fee amount is persisted with the channel // in order to allow the fee amount to be removed and recalculated with // each channel state update, including updates that happen after a system // restart. CommitFee int64 `protobuf:"varint,4,opt,name=commit_fee" json:"commit_fee,omitempty"` // / The weight of the commitment transaction CommitWeight int64 `protobuf:"varint,5,opt,name=commit_weight" json:"commit_weight,omitempty"` // * // The required number of satoshis per kilo-weight that the requester will // pay at all times, for both the funding transaction and commitment // transaction. This value can later be updated once the channel is open. FeePerKw int64 `protobuf:"varint,6,opt,name=fee_per_kw" json:"fee_per_kw,omitempty"` }
func (*PendingChannelsResponse_PendingOpenChannel) Descriptor ¶
func (*PendingChannelsResponse_PendingOpenChannel) Descriptor() ([]byte, []int)
func (*PendingChannelsResponse_PendingOpenChannel) GetChannel ¶
func (m *PendingChannelsResponse_PendingOpenChannel) GetChannel() *PendingChannelsResponse_PendingChannel
func (*PendingChannelsResponse_PendingOpenChannel) GetCommitFee ¶
func (m *PendingChannelsResponse_PendingOpenChannel) GetCommitFee() int64
func (*PendingChannelsResponse_PendingOpenChannel) GetCommitWeight ¶
func (m *PendingChannelsResponse_PendingOpenChannel) GetCommitWeight() int64
func (*PendingChannelsResponse_PendingOpenChannel) GetConfirmationHeight ¶
func (m *PendingChannelsResponse_PendingOpenChannel) GetConfirmationHeight() uint32
func (*PendingChannelsResponse_PendingOpenChannel) GetFeePerKw ¶
func (m *PendingChannelsResponse_PendingOpenChannel) GetFeePerKw() int64
func (*PendingChannelsResponse_PendingOpenChannel) ProtoMessage ¶
func (*PendingChannelsResponse_PendingOpenChannel) ProtoMessage()
func (*PendingChannelsResponse_PendingOpenChannel) Reset ¶
func (m *PendingChannelsResponse_PendingOpenChannel) Reset()
func (*PendingChannelsResponse_PendingOpenChannel) String ¶
func (m *PendingChannelsResponse_PendingOpenChannel) String() string
type PendingChannelsResponse_WaitingCloseChannel ¶
type PendingChannelsResponse_WaitingCloseChannel struct { // / The pending channel waiting for closing tx to confirm Channel *PendingChannelsResponse_PendingChannel `protobuf:"bytes,1,opt,name=channel" json:"channel,omitempty"` // / The balance in satoshis encumbered in this channel LimboBalance int64 `protobuf:"varint,2,opt,name=limbo_balance" json:"limbo_balance,omitempty"` }
func (*PendingChannelsResponse_WaitingCloseChannel) Descriptor ¶
func (*PendingChannelsResponse_WaitingCloseChannel) Descriptor() ([]byte, []int)
func (*PendingChannelsResponse_WaitingCloseChannel) GetChannel ¶
func (m *PendingChannelsResponse_WaitingCloseChannel) GetChannel() *PendingChannelsResponse_PendingChannel
func (*PendingChannelsResponse_WaitingCloseChannel) GetLimboBalance ¶
func (m *PendingChannelsResponse_WaitingCloseChannel) GetLimboBalance() int64
func (*PendingChannelsResponse_WaitingCloseChannel) ProtoMessage ¶
func (*PendingChannelsResponse_WaitingCloseChannel) ProtoMessage()
func (*PendingChannelsResponse_WaitingCloseChannel) Reset ¶
func (m *PendingChannelsResponse_WaitingCloseChannel) Reset()
func (*PendingChannelsResponse_WaitingCloseChannel) String ¶
func (m *PendingChannelsResponse_WaitingCloseChannel) String() string
type PendingHTLC ¶
type PendingHTLC struct { // / The direction within the channel that the htlc was sent Incoming bool `protobuf:"varint,1,opt,name=incoming" json:"incoming,omitempty"` // / The total value of the htlc Amount int64 `protobuf:"varint,2,opt,name=amount" json:"amount,omitempty"` // / The final output to be swept back to the user's wallet Outpoint string `protobuf:"bytes,3,opt,name=outpoint" json:"outpoint,omitempty"` // / The next block height at which we can spend the current stage MaturityHeight uint32 `protobuf:"varint,4,opt,name=maturity_height" json:"maturity_height,omitempty"` // * // The number of blocks remaining until the current stage can be swept. // Negative values indicate how many blocks have passed since becoming // mature. BlocksTilMaturity int32 `protobuf:"varint,5,opt,name=blocks_til_maturity" json:"blocks_til_maturity,omitempty"` // / Indicates whether the htlc is in its first or second stage of recovery Stage uint32 `protobuf:"varint,6,opt,name=stage" json:"stage,omitempty"` }
func (*PendingHTLC) Descriptor ¶
func (*PendingHTLC) Descriptor() ([]byte, []int)
func (*PendingHTLC) GetAmount ¶
func (m *PendingHTLC) GetAmount() int64
func (*PendingHTLC) GetBlocksTilMaturity ¶
func (m *PendingHTLC) GetBlocksTilMaturity() int32
func (*PendingHTLC) GetIncoming ¶
func (m *PendingHTLC) GetIncoming() bool
func (*PendingHTLC) GetMaturityHeight ¶
func (m *PendingHTLC) GetMaturityHeight() uint32
func (*PendingHTLC) GetOutpoint ¶
func (m *PendingHTLC) GetOutpoint() string
func (*PendingHTLC) GetStage ¶
func (m *PendingHTLC) GetStage() uint32
func (*PendingHTLC) ProtoMessage ¶
func (*PendingHTLC) ProtoMessage()
func (*PendingHTLC) Reset ¶
func (m *PendingHTLC) Reset()
func (*PendingHTLC) String ¶
func (m *PendingHTLC) String() string
type PendingUpdate ¶
type PendingUpdate struct { Txid []byte `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"` OutputIndex uint32 `protobuf:"varint,2,opt,name=output_index" json:"output_index,omitempty"` }
func (*PendingUpdate) Descriptor ¶
func (*PendingUpdate) Descriptor() ([]byte, []int)
func (*PendingUpdate) GetOutputIndex ¶
func (m *PendingUpdate) GetOutputIndex() uint32
func (*PendingUpdate) GetTxid ¶
func (m *PendingUpdate) GetTxid() []byte
func (*PendingUpdate) ProtoMessage ¶
func (*PendingUpdate) ProtoMessage()
func (*PendingUpdate) Reset ¶
func (m *PendingUpdate) Reset()
func (*PendingUpdate) String ¶
func (m *PendingUpdate) String() string
type PolicyUpdateRequest ¶
type PolicyUpdateRequest struct { // Types that are valid to be assigned to Scope: // *PolicyUpdateRequest_Global // *PolicyUpdateRequest_ChanPoint Scope isPolicyUpdateRequest_Scope `protobuf_oneof:"scope"` // / The base fee charged regardless of the number of milli-satoshis sent. BaseFeeMsat int64 `protobuf:"varint,3,opt,name=base_fee_msat" json:"base_fee_msat,omitempty"` // / The effective fee rate in milli-satoshis. The precision of this value goes up to 6 decimal places, so 1e-6. FeeRate float64 `protobuf:"fixed64,4,opt,name=fee_rate" json:"fee_rate,omitempty"` // / The required timelock delta for HTLCs forwarded over the channel. TimeLockDelta uint32 `protobuf:"varint,5,opt,name=time_lock_delta" json:"time_lock_delta,omitempty"` }
func (*PolicyUpdateRequest) Descriptor ¶
func (*PolicyUpdateRequest) Descriptor() ([]byte, []int)
func (*PolicyUpdateRequest) GetBaseFeeMsat ¶
func (m *PolicyUpdateRequest) GetBaseFeeMsat() int64
func (*PolicyUpdateRequest) GetChanPoint ¶
func (m *PolicyUpdateRequest) GetChanPoint() *ChannelPoint
func (*PolicyUpdateRequest) GetFeeRate ¶
func (m *PolicyUpdateRequest) GetFeeRate() float64
func (*PolicyUpdateRequest) GetGlobal ¶
func (m *PolicyUpdateRequest) GetGlobal() bool
func (*PolicyUpdateRequest) GetScope ¶
func (m *PolicyUpdateRequest) GetScope() isPolicyUpdateRequest_Scope
func (*PolicyUpdateRequest) GetTimeLockDelta ¶
func (m *PolicyUpdateRequest) GetTimeLockDelta() uint32
func (*PolicyUpdateRequest) ProtoMessage ¶
func (*PolicyUpdateRequest) ProtoMessage()
func (*PolicyUpdateRequest) Reset ¶
func (m *PolicyUpdateRequest) Reset()
func (*PolicyUpdateRequest) String ¶
func (m *PolicyUpdateRequest) String() string
func (*PolicyUpdateRequest) XXX_OneofFuncs ¶
func (*PolicyUpdateRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type PolicyUpdateRequest_ChanPoint ¶
type PolicyUpdateRequest_ChanPoint struct {
ChanPoint *ChannelPoint `protobuf:"bytes,2,opt,name=chan_point,oneof"`
}
type PolicyUpdateRequest_Global ¶
type PolicyUpdateRequest_Global struct {
Global bool `protobuf:"varint,1,opt,name=global,oneof"`
}
type PolicyUpdateResponse ¶
type PolicyUpdateResponse struct { }
func (*PolicyUpdateResponse) Descriptor ¶
func (*PolicyUpdateResponse) Descriptor() ([]byte, []int)
func (*PolicyUpdateResponse) ProtoMessage ¶
func (*PolicyUpdateResponse) ProtoMessage()
func (*PolicyUpdateResponse) Reset ¶
func (m *PolicyUpdateResponse) Reset()
func (*PolicyUpdateResponse) String ¶
func (m *PolicyUpdateResponse) String() string
type QueryRoutesRequest ¶
type QueryRoutesRequest struct { // / The 33-byte hex-encoded public key for the payment destination PubKey string `protobuf:"bytes,1,opt,name=pub_key,json=pubKey" json:"pub_key,omitempty"` // / The amount to send expressed in satoshis Amt int64 `protobuf:"varint,2,opt,name=amt" json:"amt,omitempty"` // / The max number of routes to return. NumRoutes int32 `protobuf:"varint,3,opt,name=num_routes,json=numRoutes" json:"num_routes,omitempty"` // / An optional CLTV delta from the current height that should be used for the timelock of the final hop FinalCltvDelta int32 `protobuf:"varint,4,opt,name=final_cltv_delta,json=finalCltvDelta" json:"final_cltv_delta,omitempty"` // * // The maximum number of satoshis that will be paid as a fee of the payment. // This value can be represented either as a percentage of the amount being // sent, or as a fixed amount of the maximum fee the user is willing the pay to // send the payment. FeeLimit *FeeLimit `protobuf:"bytes,5,opt,name=fee_limit,json=feeLimit" json:"fee_limit,omitempty"` }
func (*QueryRoutesRequest) Descriptor ¶
func (*QueryRoutesRequest) Descriptor() ([]byte, []int)
func (*QueryRoutesRequest) GetAmt ¶
func (m *QueryRoutesRequest) GetAmt() int64
func (*QueryRoutesRequest) GetFeeLimit ¶
func (m *QueryRoutesRequest) GetFeeLimit() *FeeLimit
func (*QueryRoutesRequest) GetFinalCltvDelta ¶
func (m *QueryRoutesRequest) GetFinalCltvDelta() int32
func (*QueryRoutesRequest) GetNumRoutes ¶
func (m *QueryRoutesRequest) GetNumRoutes() int32
func (*QueryRoutesRequest) GetPubKey ¶
func (m *QueryRoutesRequest) GetPubKey() string
func (*QueryRoutesRequest) ProtoMessage ¶
func (*QueryRoutesRequest) ProtoMessage()
func (*QueryRoutesRequest) Reset ¶
func (m *QueryRoutesRequest) Reset()
func (*QueryRoutesRequest) String ¶
func (m *QueryRoutesRequest) String() string
type QueryRoutesResponse ¶
type QueryRoutesResponse struct {
Routes []*Route `protobuf:"bytes,1,rep,name=routes" json:"routes,omitempty"`
}
func (*QueryRoutesResponse) Descriptor ¶
func (*QueryRoutesResponse) Descriptor() ([]byte, []int)
func (*QueryRoutesResponse) GetRoutes ¶
func (m *QueryRoutesResponse) GetRoutes() []*Route
func (*QueryRoutesResponse) ProtoMessage ¶
func (*QueryRoutesResponse) ProtoMessage()
func (*QueryRoutesResponse) Reset ¶
func (m *QueryRoutesResponse) Reset()
func (*QueryRoutesResponse) String ¶
func (m *QueryRoutesResponse) String() string
type Route ¶
type Route struct { // * // The cumulative (final) time lock across the entire route. This is the CLTV // value that should be extended to the first hop in the route. All other hops // will decrement the time-lock as advertised, leaving enough time for all // hops to wait for or present the payment preimage to complete the payment. TotalTimeLock uint32 `protobuf:"varint,1,opt,name=total_time_lock" json:"total_time_lock,omitempty"` // * // The sum of the fees paid at each hop within the final route. In the case // of a one-hop payment, this value will be zero as we don't need to pay a fee // it ourself. TotalFees int64 `protobuf:"varint,2,opt,name=total_fees" json:"total_fees,omitempty"` // * // The total amount of funds required to complete a payment over this route. // This value includes the cumulative fees at each hop. As a result, the HTLC // extended to the first-hop in the route will need to have at least this many // satoshis, otherwise the route will fail at an intermediate node due to an // insufficient amount of fees. TotalAmt int64 `protobuf:"varint,3,opt,name=total_amt" json:"total_amt,omitempty"` // * // Contains details concerning the specific forwarding details at each hop. Hops []*Hop `protobuf:"bytes,4,rep,name=hops" json:"hops,omitempty"` // * // The total fees in millisatoshis. TotalFeesMsat int64 `protobuf:"varint,5,opt,name=total_fees_msat" json:"total_fees_msat,omitempty"` // * // The total amount in millisatoshis. TotalAmtMsat int64 `protobuf:"varint,6,opt,name=total_amt_msat" json:"total_amt_msat,omitempty"` }
* A path through the channel graph which runs over one or more channels in succession. This struct carries all the information required to craft the Sphinx onion packet, and send the payment along the first hop in the path. A route is only selected as valid if all the channels have sufficient capacity to carry the initial payment amount after fees are accounted for.
func (*Route) Descriptor ¶
func (*Route) GetTotalAmt ¶
func (*Route) GetTotalAmtMsat ¶
func (*Route) GetTotalFees ¶
func (*Route) GetTotalFeesMsat ¶
func (*Route) GetTotalTimeLock ¶
func (*Route) ProtoMessage ¶
func (*Route) ProtoMessage()
type RouteHint ¶
type RouteHint struct { // * // A list of hop hints that when chained together can assist in reaching a // specific destination. HopHints []*HopHint `protobuf:"bytes,1,rep,name=hop_hints" json:"hop_hints,omitempty"` }
func (*RouteHint) Descriptor ¶
func (*RouteHint) GetHopHints ¶
func (*RouteHint) ProtoMessage ¶
func (*RouteHint) ProtoMessage()
type RoutingPolicy ¶
type RoutingPolicy struct { TimeLockDelta uint32 `protobuf:"varint,1,opt,name=time_lock_delta" json:"time_lock_delta,omitempty"` MinHtlc int64 `protobuf:"varint,2,opt,name=min_htlc" json:"min_htlc,omitempty"` FeeBaseMsat int64 `protobuf:"varint,3,opt,name=fee_base_msat" json:"fee_base_msat,omitempty"` FeeRateMilliMsat int64 `protobuf:"varint,4,opt,name=fee_rate_milli_msat" json:"fee_rate_milli_msat,omitempty"` Disabled bool `protobuf:"varint,5,opt,name=disabled" json:"disabled,omitempty"` }
func (*RoutingPolicy) Descriptor ¶
func (*RoutingPolicy) Descriptor() ([]byte, []int)
func (*RoutingPolicy) GetDisabled ¶
func (m *RoutingPolicy) GetDisabled() bool
func (*RoutingPolicy) GetFeeBaseMsat ¶
func (m *RoutingPolicy) GetFeeBaseMsat() int64
func (*RoutingPolicy) GetFeeRateMilliMsat ¶
func (m *RoutingPolicy) GetFeeRateMilliMsat() int64
func (*RoutingPolicy) GetMinHtlc ¶
func (m *RoutingPolicy) GetMinHtlc() int64
func (*RoutingPolicy) GetTimeLockDelta ¶
func (m *RoutingPolicy) GetTimeLockDelta() uint32
func (*RoutingPolicy) ProtoMessage ¶
func (*RoutingPolicy) ProtoMessage()
func (*RoutingPolicy) Reset ¶
func (m *RoutingPolicy) Reset()
func (*RoutingPolicy) String ¶
func (m *RoutingPolicy) String() string
type SendCoinsRequest ¶
type SendCoinsRequest struct { // / The address to send coins to Addr string `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"` // / The amount in satoshis to send Amount int64 `protobuf:"varint,2,opt,name=amount" json:"amount,omitempty"` // / The target number of blocks that this transaction should be confirmed by. TargetConf int32 `protobuf:"varint,3,opt,name=target_conf,json=targetConf" json:"target_conf,omitempty"` // / A manual fee rate set in sat/byte that should be used when crafting the transaction. SatPerByte int64 `protobuf:"varint,5,opt,name=sat_per_byte,json=satPerByte" json:"sat_per_byte,omitempty"` }
func (*SendCoinsRequest) Descriptor ¶
func (*SendCoinsRequest) Descriptor() ([]byte, []int)
func (*SendCoinsRequest) GetAddr ¶
func (m *SendCoinsRequest) GetAddr() string
func (*SendCoinsRequest) GetAmount ¶
func (m *SendCoinsRequest) GetAmount() int64
func (*SendCoinsRequest) GetSatPerByte ¶
func (m *SendCoinsRequest) GetSatPerByte() int64
func (*SendCoinsRequest) GetTargetConf ¶
func (m *SendCoinsRequest) GetTargetConf() int32
func (*SendCoinsRequest) ProtoMessage ¶
func (*SendCoinsRequest) ProtoMessage()
func (*SendCoinsRequest) Reset ¶
func (m *SendCoinsRequest) Reset()
func (*SendCoinsRequest) String ¶
func (m *SendCoinsRequest) String() string
type SendCoinsResponse ¶
type SendCoinsResponse struct { // / The transaction ID of the transaction Txid string `protobuf:"bytes,1,opt,name=txid" json:"txid,omitempty"` }
func (*SendCoinsResponse) Descriptor ¶
func (*SendCoinsResponse) Descriptor() ([]byte, []int)
func (*SendCoinsResponse) GetTxid ¶
func (m *SendCoinsResponse) GetTxid() string
func (*SendCoinsResponse) ProtoMessage ¶
func (*SendCoinsResponse) ProtoMessage()
func (*SendCoinsResponse) Reset ¶
func (m *SendCoinsResponse) Reset()
func (*SendCoinsResponse) String ¶
func (m *SendCoinsResponse) String() string
type SendManyRequest ¶
type SendManyRequest struct { // / The map from addresses to amounts AddrToAmount map[string]int64 `` /* 145-byte string literal not displayed */ // / The target number of blocks that this transaction should be confirmed by. TargetConf int32 `protobuf:"varint,3,opt,name=target_conf,json=targetConf" json:"target_conf,omitempty"` // / A manual fee rate set in sat/byte that should be used when crafting the transaction. SatPerByte int64 `protobuf:"varint,5,opt,name=sat_per_byte,json=satPerByte" json:"sat_per_byte,omitempty"` }
func (*SendManyRequest) Descriptor ¶
func (*SendManyRequest) Descriptor() ([]byte, []int)
func (*SendManyRequest) GetAddrToAmount ¶
func (m *SendManyRequest) GetAddrToAmount() map[string]int64
func (*SendManyRequest) GetSatPerByte ¶
func (m *SendManyRequest) GetSatPerByte() int64
func (*SendManyRequest) GetTargetConf ¶
func (m *SendManyRequest) GetTargetConf() int32
func (*SendManyRequest) ProtoMessage ¶
func (*SendManyRequest) ProtoMessage()
func (*SendManyRequest) Reset ¶
func (m *SendManyRequest) Reset()
func (*SendManyRequest) String ¶
func (m *SendManyRequest) String() string
type SendManyResponse ¶
type SendManyResponse struct { // / The id of the transaction Txid string `protobuf:"bytes,1,opt,name=txid" json:"txid,omitempty"` }
func (*SendManyResponse) Descriptor ¶
func (*SendManyResponse) Descriptor() ([]byte, []int)
func (*SendManyResponse) GetTxid ¶
func (m *SendManyResponse) GetTxid() string
func (*SendManyResponse) ProtoMessage ¶
func (*SendManyResponse) ProtoMessage()
func (*SendManyResponse) Reset ¶
func (m *SendManyResponse) Reset()
func (*SendManyResponse) String ¶
func (m *SendManyResponse) String() string
type SendRequest ¶
type SendRequest struct { // / The identity pubkey of the payment recipient Dest []byte `protobuf:"bytes,1,opt,name=dest,proto3" json:"dest,omitempty"` // / The hex-encoded identity pubkey of the payment recipient DestString string `protobuf:"bytes,2,opt,name=dest_string,json=destString" json:"dest_string,omitempty"` // / Number of satoshis to send. Amt int64 `protobuf:"varint,3,opt,name=amt" json:"amt,omitempty"` // / The hash to use within the payment's HTLC PaymentHash []byte `protobuf:"bytes,4,opt,name=payment_hash,json=paymentHash,proto3" json:"payment_hash,omitempty"` // / The hex-encoded hash to use within the payment's HTLC PaymentHashString string `protobuf:"bytes,5,opt,name=payment_hash_string,json=paymentHashString" json:"payment_hash_string,omitempty"` // * // A bare-bones invoice for a payment within the Lightning Network. With the // details of the invoice, the sender has all the data necessary to send a // payment to the recipient. PaymentRequest string `protobuf:"bytes,6,opt,name=payment_request,json=paymentRequest" json:"payment_request,omitempty"` // * // The CLTV delta from the current height that should be used to set the // timelock for the final hop. FinalCltvDelta int32 `protobuf:"varint,7,opt,name=final_cltv_delta,json=finalCltvDelta" json:"final_cltv_delta,omitempty"` // * // The maximum number of satoshis that will be paid as a fee of the payment. // This value can be represented either as a percentage of the amount being // sent, or as a fixed amount of the maximum fee the user is willing the pay to // send the payment. FeeLimit *FeeLimit `protobuf:"bytes,8,opt,name=fee_limit,json=feeLimit" json:"fee_limit,omitempty"` }
func (*SendRequest) Descriptor ¶
func (*SendRequest) Descriptor() ([]byte, []int)
func (*SendRequest) GetAmt ¶
func (m *SendRequest) GetAmt() int64
func (*SendRequest) GetDest ¶
func (m *SendRequest) GetDest() []byte
func (*SendRequest) GetDestString ¶
func (m *SendRequest) GetDestString() string
func (*SendRequest) GetFeeLimit ¶
func (m *SendRequest) GetFeeLimit() *FeeLimit
func (*SendRequest) GetFinalCltvDelta ¶
func (m *SendRequest) GetFinalCltvDelta() int32
func (*SendRequest) GetPaymentHash ¶
func (m *SendRequest) GetPaymentHash() []byte
func (*SendRequest) GetPaymentHashString ¶
func (m *SendRequest) GetPaymentHashString() string
func (*SendRequest) GetPaymentRequest ¶
func (m *SendRequest) GetPaymentRequest() string
func (*SendRequest) ProtoMessage ¶
func (*SendRequest) ProtoMessage()
func (*SendRequest) Reset ¶
func (m *SendRequest) Reset()
func (*SendRequest) String ¶
func (m *SendRequest) String() string
type SendResponse ¶
type SendResponse struct { PaymentError string `protobuf:"bytes,1,opt,name=payment_error" json:"payment_error,omitempty"` PaymentPreimage []byte `protobuf:"bytes,2,opt,name=payment_preimage,proto3" json:"payment_preimage,omitempty"` PaymentRoute *Route `protobuf:"bytes,3,opt,name=payment_route" json:"payment_route,omitempty"` }
func (*SendResponse) Descriptor ¶
func (*SendResponse) Descriptor() ([]byte, []int)
func (*SendResponse) GetPaymentError ¶
func (m *SendResponse) GetPaymentError() string
func (*SendResponse) GetPaymentPreimage ¶
func (m *SendResponse) GetPaymentPreimage() []byte
func (*SendResponse) GetPaymentRoute ¶
func (m *SendResponse) GetPaymentRoute() *Route
func (*SendResponse) ProtoMessage ¶
func (*SendResponse) ProtoMessage()
func (*SendResponse) Reset ¶
func (m *SendResponse) Reset()
func (*SendResponse) String ¶
func (m *SendResponse) String() string
type SendToRouteRequest ¶
type SendToRouteRequest struct { // / The payment hash to use for the HTLC. PaymentHash []byte `protobuf:"bytes,1,opt,name=payment_hash,json=paymentHash,proto3" json:"payment_hash,omitempty"` // / An optional hex-encoded payment hash to be used for the HTLC. PaymentHashString string `protobuf:"bytes,2,opt,name=payment_hash_string,json=paymentHashString" json:"payment_hash_string,omitempty"` // / The set of routes that should be used to attempt to complete the payment. Routes []*Route `protobuf:"bytes,3,rep,name=routes" json:"routes,omitempty"` }
func (*SendToRouteRequest) Descriptor ¶
func (*SendToRouteRequest) Descriptor() ([]byte, []int)
func (*SendToRouteRequest) GetPaymentHash ¶
func (m *SendToRouteRequest) GetPaymentHash() []byte
func (*SendToRouteRequest) GetPaymentHashString ¶
func (m *SendToRouteRequest) GetPaymentHashString() string
func (*SendToRouteRequest) GetRoutes ¶
func (m *SendToRouteRequest) GetRoutes() []*Route
func (*SendToRouteRequest) ProtoMessage ¶
func (*SendToRouteRequest) ProtoMessage()
func (*SendToRouteRequest) Reset ¶
func (m *SendToRouteRequest) Reset()
func (*SendToRouteRequest) String ¶
func (m *SendToRouteRequest) String() string
type SignMessageRequest ¶
type SignMessageRequest struct { // / The message to be signed Msg []byte `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` }
func (*SignMessageRequest) Descriptor ¶
func (*SignMessageRequest) Descriptor() ([]byte, []int)
func (*SignMessageRequest) GetMsg ¶
func (m *SignMessageRequest) GetMsg() []byte
func (*SignMessageRequest) ProtoMessage ¶
func (*SignMessageRequest) ProtoMessage()
func (*SignMessageRequest) Reset ¶
func (m *SignMessageRequest) Reset()
func (*SignMessageRequest) String ¶
func (m *SignMessageRequest) String() string
type SignMessageResponse ¶
type SignMessageResponse struct { // / The signature for the given message Signature string `protobuf:"bytes,1,opt,name=signature" json:"signature,omitempty"` }
func (*SignMessageResponse) Descriptor ¶
func (*SignMessageResponse) Descriptor() ([]byte, []int)
func (*SignMessageResponse) GetSignature ¶
func (m *SignMessageResponse) GetSignature() string
func (*SignMessageResponse) ProtoMessage ¶
func (*SignMessageResponse) ProtoMessage()
func (*SignMessageResponse) Reset ¶
func (m *SignMessageResponse) Reset()
func (*SignMessageResponse) String ¶
func (m *SignMessageResponse) String() string
type StopRequest ¶
type StopRequest struct { }
func (*StopRequest) Descriptor ¶
func (*StopRequest) Descriptor() ([]byte, []int)
func (*StopRequest) ProtoMessage ¶
func (*StopRequest) ProtoMessage()
func (*StopRequest) Reset ¶
func (m *StopRequest) Reset()
func (*StopRequest) String ¶
func (m *StopRequest) String() string
type StopResponse ¶
type StopResponse struct { }
func (*StopResponse) Descriptor ¶
func (*StopResponse) Descriptor() ([]byte, []int)
func (*StopResponse) ProtoMessage ¶
func (*StopResponse) ProtoMessage()
func (*StopResponse) Reset ¶
func (m *StopResponse) Reset()
func (*StopResponse) String ¶
func (m *StopResponse) String() string
type Transaction ¶
type Transaction struct { // / The transaction hash TxHash string `protobuf:"bytes,1,opt,name=tx_hash" json:"tx_hash,omitempty"` // / The transaction amount, denominated in satoshis Amount int64 `protobuf:"varint,2,opt,name=amount" json:"amount,omitempty"` // / The number of confirmations NumConfirmations int32 `protobuf:"varint,3,opt,name=num_confirmations" json:"num_confirmations,omitempty"` // / The hash of the block this transaction was included in BlockHash string `protobuf:"bytes,4,opt,name=block_hash" json:"block_hash,omitempty"` // / The height of the block this transaction was included in BlockHeight int32 `protobuf:"varint,5,opt,name=block_height" json:"block_height,omitempty"` // / Timestamp of this transaction TimeStamp int64 `protobuf:"varint,6,opt,name=time_stamp" json:"time_stamp,omitempty"` // / Fees paid for this transaction TotalFees int64 `protobuf:"varint,7,opt,name=total_fees" json:"total_fees,omitempty"` // / Addresses that received funds for this transaction DestAddresses []string `protobuf:"bytes,8,rep,name=dest_addresses" json:"dest_addresses,omitempty"` }
func (*Transaction) Descriptor ¶
func (*Transaction) Descriptor() ([]byte, []int)
func (*Transaction) GetAmount ¶
func (m *Transaction) GetAmount() int64
func (*Transaction) GetBlockHash ¶
func (m *Transaction) GetBlockHash() string
func (*Transaction) GetBlockHeight ¶
func (m *Transaction) GetBlockHeight() int32
func (*Transaction) GetDestAddresses ¶
func (m *Transaction) GetDestAddresses() []string
func (*Transaction) GetNumConfirmations ¶
func (m *Transaction) GetNumConfirmations() int32
func (*Transaction) GetTimeStamp ¶
func (m *Transaction) GetTimeStamp() int64
func (*Transaction) GetTotalFees ¶
func (m *Transaction) GetTotalFees() int64
func (*Transaction) GetTxHash ¶
func (m *Transaction) GetTxHash() string
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) Reset ¶
func (m *Transaction) Reset()
func (*Transaction) String ¶
func (m *Transaction) String() string
type TransactionDetails ¶
type TransactionDetails struct { // / The list of transactions relevant to the wallet. Transactions []*Transaction `protobuf:"bytes,1,rep,name=transactions" json:"transactions,omitempty"` }
func (*TransactionDetails) Descriptor ¶
func (*TransactionDetails) Descriptor() ([]byte, []int)
func (*TransactionDetails) GetTransactions ¶
func (m *TransactionDetails) GetTransactions() []*Transaction
func (*TransactionDetails) ProtoMessage ¶
func (*TransactionDetails) ProtoMessage()
func (*TransactionDetails) Reset ¶
func (m *TransactionDetails) Reset()
func (*TransactionDetails) String ¶
func (m *TransactionDetails) String() string
type UnlockWalletRequest ¶
type UnlockWalletRequest struct { // * // wallet_password should be the current valid passphrase for the daemon. This // will be required to decrypt on-disk material that the daemon requires to // function properly. WalletPassword []byte `protobuf:"bytes,1,opt,name=wallet_password,json=walletPassword,proto3" json:"wallet_password,omitempty"` // * // recovery_window is an optional argument specifying the address lookahead // when restoring a wallet seed. The recovery window applies to each // invdividual branch of the BIP44 derivation paths. Supplying a recovery // window of zero indicates that no addresses should be recovered, such after // the first initialization of the wallet. RecoveryWindow int32 `protobuf:"varint,2,opt,name=recovery_window,json=recoveryWindow" json:"recovery_window,omitempty"` }
func (*UnlockWalletRequest) Descriptor ¶
func (*UnlockWalletRequest) Descriptor() ([]byte, []int)
func (*UnlockWalletRequest) GetRecoveryWindow ¶
func (m *UnlockWalletRequest) GetRecoveryWindow() int32
func (*UnlockWalletRequest) GetWalletPassword ¶
func (m *UnlockWalletRequest) GetWalletPassword() []byte
func (*UnlockWalletRequest) ProtoMessage ¶
func (*UnlockWalletRequest) ProtoMessage()
func (*UnlockWalletRequest) Reset ¶
func (m *UnlockWalletRequest) Reset()
func (*UnlockWalletRequest) String ¶
func (m *UnlockWalletRequest) String() string
type UnlockWalletResponse ¶
type UnlockWalletResponse struct { }
func (*UnlockWalletResponse) Descriptor ¶
func (*UnlockWalletResponse) Descriptor() ([]byte, []int)
func (*UnlockWalletResponse) ProtoMessage ¶
func (*UnlockWalletResponse) ProtoMessage()
func (*UnlockWalletResponse) Reset ¶
func (m *UnlockWalletResponse) Reset()
func (*UnlockWalletResponse) String ¶
func (m *UnlockWalletResponse) String() string
type VerifyMessageRequest ¶
type VerifyMessageRequest struct { // / The message over which the signature is to be verified Msg []byte `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // / The signature to be verified over the given message Signature string `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"` }
func (*VerifyMessageRequest) Descriptor ¶
func (*VerifyMessageRequest) Descriptor() ([]byte, []int)
func (*VerifyMessageRequest) GetMsg ¶
func (m *VerifyMessageRequest) GetMsg() []byte
func (*VerifyMessageRequest) GetSignature ¶
func (m *VerifyMessageRequest) GetSignature() string
func (*VerifyMessageRequest) ProtoMessage ¶
func (*VerifyMessageRequest) ProtoMessage()
func (*VerifyMessageRequest) Reset ¶
func (m *VerifyMessageRequest) Reset()
func (*VerifyMessageRequest) String ¶
func (m *VerifyMessageRequest) String() string
type VerifyMessageResponse ¶
type VerifyMessageResponse struct { // / Whether the signature was valid over the given message Valid bool `protobuf:"varint,1,opt,name=valid" json:"valid,omitempty"` // / The pubkey recovered from the signature Pubkey string `protobuf:"bytes,2,opt,name=pubkey" json:"pubkey,omitempty"` }
func (*VerifyMessageResponse) Descriptor ¶
func (*VerifyMessageResponse) Descriptor() ([]byte, []int)
func (*VerifyMessageResponse) GetPubkey ¶
func (m *VerifyMessageResponse) GetPubkey() string
func (*VerifyMessageResponse) GetValid ¶
func (m *VerifyMessageResponse) GetValid() bool
func (*VerifyMessageResponse) ProtoMessage ¶
func (*VerifyMessageResponse) ProtoMessage()
func (*VerifyMessageResponse) Reset ¶
func (m *VerifyMessageResponse) Reset()
func (*VerifyMessageResponse) String ¶
func (m *VerifyMessageResponse) String() string
type WalletBalanceRequest ¶
type WalletBalanceRequest struct { }
func (*WalletBalanceRequest) Descriptor ¶
func (*WalletBalanceRequest) Descriptor() ([]byte, []int)
func (*WalletBalanceRequest) ProtoMessage ¶
func (*WalletBalanceRequest) ProtoMessage()
func (*WalletBalanceRequest) Reset ¶
func (m *WalletBalanceRequest) Reset()
func (*WalletBalanceRequest) String ¶
func (m *WalletBalanceRequest) String() string
type WalletBalanceResponse ¶
type WalletBalanceResponse struct { // / The balance of the wallet TotalBalance int64 `protobuf:"varint,1,opt,name=total_balance" json:"total_balance,omitempty"` // / The confirmed balance of a wallet(with >= 1 confirmations) ConfirmedBalance int64 `protobuf:"varint,2,opt,name=confirmed_balance" json:"confirmed_balance,omitempty"` // / The unconfirmed balance of a wallet(with 0 confirmations) UnconfirmedBalance int64 `protobuf:"varint,3,opt,name=unconfirmed_balance" json:"unconfirmed_balance,omitempty"` }
func (*WalletBalanceResponse) Descriptor ¶
func (*WalletBalanceResponse) Descriptor() ([]byte, []int)
func (*WalletBalanceResponse) GetConfirmedBalance ¶
func (m *WalletBalanceResponse) GetConfirmedBalance() int64
func (*WalletBalanceResponse) GetTotalBalance ¶
func (m *WalletBalanceResponse) GetTotalBalance() int64
func (*WalletBalanceResponse) GetUnconfirmedBalance ¶
func (m *WalletBalanceResponse) GetUnconfirmedBalance() int64
func (*WalletBalanceResponse) ProtoMessage ¶
func (*WalletBalanceResponse) ProtoMessage()
func (*WalletBalanceResponse) Reset ¶
func (m *WalletBalanceResponse) Reset()
func (*WalletBalanceResponse) String ¶
func (m *WalletBalanceResponse) String() string
type WalletUnlockerClient ¶
type WalletUnlockerClient interface { // * // GenSeed is the first method that should be used to instantiate a new lnd // instance. This method allows a caller to generate a new aezeed cipher seed // given an optional passphrase. If provided, the passphrase will be necessary // to decrypt the cipherseed to expose the internal wallet seed. // // Once the cipherseed is obtained and verified by the user, the InitWallet // method should be used to commit the newly generated seed, and create the // wallet. GenSeed(ctx context.Context, in *GenSeedRequest, opts ...grpc.CallOption) (*GenSeedResponse, error) // * // InitWallet is used when lnd is starting up for the first time to fully // initialize the daemon and its internal wallet. At the very least a wallet // password must be provided. This will be used to encrypt sensitive material // on disk. // // In the case of a recovery scenario, the user can also specify their aezeed // mnemonic and passphrase. If set, then the daemon will use this prior state // to initialize its internal wallet. // // Alternatively, this can be used along with the GenSeed RPC to obtain a // seed, then present it to the user. Once it has been verified by the user, // the seed can be fed into this RPC in order to commit the new wallet. InitWallet(ctx context.Context, in *InitWalletRequest, opts ...grpc.CallOption) (*InitWalletResponse, error) // * lncli: `unlock` // UnlockWallet is used at startup of lnd to provide a password to unlock // the wallet database. UnlockWallet(ctx context.Context, in *UnlockWalletRequest, opts ...grpc.CallOption) (*UnlockWalletResponse, error) // * lncli: `changepassword` // ChangePassword changes the password of the encrypted wallet. This will // automatically unlock the wallet database if successful. ChangePassword(ctx context.Context, in *ChangePasswordRequest, opts ...grpc.CallOption) (*ChangePasswordResponse, error) }
func NewWalletUnlockerClient ¶
func NewWalletUnlockerClient(cc *grpc.ClientConn) WalletUnlockerClient
type WalletUnlockerServer ¶
type WalletUnlockerServer interface { // * // GenSeed is the first method that should be used to instantiate a new lnd // instance. This method allows a caller to generate a new aezeed cipher seed // given an optional passphrase. If provided, the passphrase will be necessary // to decrypt the cipherseed to expose the internal wallet seed. // // Once the cipherseed is obtained and verified by the user, the InitWallet // method should be used to commit the newly generated seed, and create the // wallet. GenSeed(context.Context, *GenSeedRequest) (*GenSeedResponse, error) // * // InitWallet is used when lnd is starting up for the first time to fully // initialize the daemon and its internal wallet. At the very least a wallet // password must be provided. This will be used to encrypt sensitive material // on disk. // // In the case of a recovery scenario, the user can also specify their aezeed // mnemonic and passphrase. If set, then the daemon will use this prior state // to initialize its internal wallet. // // Alternatively, this can be used along with the GenSeed RPC to obtain a // seed, then present it to the user. Once it has been verified by the user, // the seed can be fed into this RPC in order to commit the new wallet. InitWallet(context.Context, *InitWalletRequest) (*InitWalletResponse, error) // * lncli: `unlock` // UnlockWallet is used at startup of lnd to provide a password to unlock // the wallet database. UnlockWallet(context.Context, *UnlockWalletRequest) (*UnlockWalletResponse, error) // * lncli: `changepassword` // ChangePassword changes the password of the encrypted wallet. This will // automatically unlock the wallet database if successful. ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordResponse, error) }