lnrpc

package
v0.4.2-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2018 License: MIT Imports: 13 Imported by: 0

README

lnrpc

Build Status MIT licensed GoDoc

This lnrpc package implements both a client and server for lnds RPC system which is based off of the high-performance cross-platform gRPC RPC framework. By default, only the Go client+server libraries are compiled within the package. In order to compile the client side libraries for other supported languages, the protoc tool will need to be used to generate the compiled protos for a specific language.

The following languages are supported as clients to lnrpc: C++, Go, Node.js, Java, Ruby, Android Java, PHP, Python, C#, Objective-C.

Service: Lightning

The list of defined RPCs on the service Lightning are the following (with a brief description):

  • WalletBalance
    • Returns the wallet's current confirmed balance in BTC.
  • ChannelBalance
    • Returns the daemons' available aggregate channel balance in BTC.
  • GetTransactions
    • Returns a list of on-chain transactions that pay to or are spends from lnd.
  • SendCoins
    • Sends an amount of satoshis to a specific address.
  • SubscribeTransactions
    • Returns a stream which sends async notifications each time a transaction is created or one is received that pays to us.
  • SendMany
    • Allows the caller to create a transaction with an arbitrary fan-out (many outputs).
  • NewAddress
    • Returns a new address, the following address types are supported: pay-to-public-key-hash (p2pkh), pay-to-witness-key-hash (p2wkh), and nested-pay-to-witness-key-hash (np2wkh).
  • NewWitnessAddress
    • Returns a new witness address (np2wkh) under control of the local wallet.
  • SignMessage
    • Signs a message with the node's identity key and returns a zbase32 encoded signature.
  • VerifyMessage
    • Verifies a signature signed by another node on a message. The other node must be an active node in the channel database.
  • ConnectPeer
    • Connects to a peer identified by a public key and host.
  • DisconnectPeer
    • Disconnects a peer identified by a public key.
  • ListPeers
    • Lists all available connected peers.
  • GetInfo
    • Returns basic data concerning the daemon.
  • PendingChannels
    • List the number of pending (not fully confirmed) channels.
  • ListChannels
    • List all active channels the daemon manages.
  • OpenChannelSync
    • OpenChannelSync is a synchronous version of the OpenChannel RPC call.
  • OpenChannel
    • Attempts to open a channel to a target peer with a specific amount and push amount.
  • CloseChannel
    • Attempts to close a target channel. A channel can either be closed cooperatively if the channel peer is online, or using a "force" close to broadcast the latest channel state.
  • SendPayment
    • Send a payment over Lightning to a target peer.
  • SendPaymentSync
    • SendPaymentSync is the synchronous non-streaming version of SendPayment.
  • AddInvoice
    • Adds an invoice to the daemon. Invoices are automatically settled once seen as an incoming HTLC.
  • ListInvoices
    • Lists all stored invoices.
  • LookupInvoice
    • Attempts to look up an invoice by payment hash (r-hash).
  • SubscribeInvoices
    • Creates a uni-directional stream which receives async notifications as the daemon settles invoices
  • DecodePayReq
    • Decode a payment request, returning a full description of the conditions encoded within the payment request.
  • ListPayments
    • List all outgoing Lightning payments the daemon has made.
  • DeleteAllPayments
    • Deletes all outgoing payments from DB.
  • DescribeGraph
    • Returns a description of the known channel graph from the PoV of the node.
  • GetChanInfo
    • Returns information for a specific channel identified by channel ID.
  • GetNodeInfo
    • Returns information for a particular node identified by its identity public key.
  • QueryRoutes
    • Queries for a possible route to a target peer which can carry a certain amount of payment.
  • GetNetworkInfo
    • Returns some network level statistics.
  • StopDaemon
    • Sends a shutdown request to the interrupt handler, triggering a graceful shutdown of the daemon.
  • SubscribeChannelGraph
    • Creates a stream which receives async notifications upon any changes to the channel graph topology from the point of view of the responding node.
  • DebugLevel
    • Set logging verbosity of lnd programmatically
  • FeeReport
    • Allows the caller to obtain a report detailing the current fee schedule enforced by the node globally for each channel.
  • UpdateChannelPolicy
    • Allows the caller to update the fee schedule and channel policies for all channels globally, or a particular channel

Service: WalletUnlocker

The list of defined RPCs on the service WalletUnlocker are the following (with a brief description):

  • CreateWallet
    • Set encryption password for the wallet database.
  • UnlockWallet
    • Provide a password to unlock the wallet database.

Installation and Updating

$ go get -u github.com/lightningnetwork/lnd/lnrpc

Generate protobuf definitions

  1. Download v.3.4.0 of protoc for your operating system and add it to your PATH. For example, if using macOS:
$ curl -LO https://github.com/google/protobuf/releases/download/v3.4.0/protoc-3.4.0-osx-x86_64.zip
$ unzip protoc-3.4.0-osx-x86_64.zip -d protoc
$ export PATH=$PWD/protoc/bin:$PATH
  1. Install golang/protobuf at commit ab9f9a6dab164b7d1246e0e688b0ab7b94d8553e.
$ git clone https://github.com/golang/protobuf $GOPATH/src/github.com/golang/protobuf
$ cd $GOPATH/src/github.com/golang/protobuf
$ git reset --hard ab9f9a6dab164b7d1246e0e688b0ab7b94d8553e
$ make
  1. Install grpc-ecosystem/grpc-gateway at commit f2862b476edcef83412c7af8687c9cd8e4097c0f.
$ git clone https://github.com/grpc-ecosystem/grpc-gateway $GOPATH/src/github.com/grpc-ecosystem/grpc-gateway
$ cd $GOPATH/src/github.com/grpc-ecosystem/grpc-gateway
$ git reset --hard f2862b476edcef83412c7af8687c9cd8e4097c0f
$ go install ./protoc-gen-grpc-gateway ./protoc-gen-swagger
  1. Run gen_protos.sh to generate new protobuf definitions.

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
Transaction
GetTransactionsRequest
TransactionDetails
SendRequest
SendResponse
ChannelPoint
LightningAddress
SendManyRequest
SendManyResponse
SendCoinsRequest
SendCoinsResponse
NewAddressRequest
NewWitnessAddressRequest
NewAddressResponse
SignMessageRequest
SignMessageResponse
VerifyMessageRequest
VerifyMessageResponse
ConnectPeerRequest
ConnectPeerResponse
DisconnectPeerRequest
DisconnectPeerResponse
HTLC
Channel
ListChannelsRequest
ListChannelsResponse
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
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

Constants

This section is empty.

Variables

View Source
var NewAddressRequest_AddressType_name = map[int32]string{
	0: "WITNESS_PUBKEY_HASH",
	1: "NESTED_PUBKEY_HASH",
}
View Source
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 RegisterLightningHandlerClient

func RegisterLightningHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LightningClient) error

RegisterLightningHandler registers the http handlers for service Lightning to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LightningClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LightningClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "LightningClient" to call the correct interceptors.

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 RegisterWalletUnlockerHandlerClient

func RegisterWalletUnlockerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WalletUnlockerClient) error

RegisterWalletUnlockerHandler registers the http handlers for service WalletUnlocker to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "WalletUnlockerClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "WalletUnlockerClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "WalletUnlockerClient" to call the correct interceptors.

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 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"`
}

func (*AddInvoiceResponse) Descriptor

func (*AddInvoiceResponse) Descriptor() ([]byte, []int)

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 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) Descriptor() ([]byte, []int)

func (*Channel) GetActive

func (m *Channel) GetActive() bool

func (*Channel) GetCapacity

func (m *Channel) GetCapacity() int64

func (*Channel) GetChanId

func (m *Channel) GetChanId() uint64

func (*Channel) GetChannelPoint

func (m *Channel) GetChannelPoint() string

func (*Channel) GetCommitFee

func (m *Channel) GetCommitFee() int64

func (*Channel) GetCommitWeight

func (m *Channel) GetCommitWeight() int64

func (*Channel) GetCsvDelay

func (m *Channel) GetCsvDelay() uint32

func (*Channel) GetFeePerKw

func (m *Channel) GetFeePerKw() int64

func (*Channel) GetLocalBalance

func (m *Channel) GetLocalBalance() int64

func (*Channel) GetNumUpdates

func (m *Channel) GetNumUpdates() uint64

func (*Channel) GetPendingHtlcs

func (m *Channel) GetPendingHtlcs() []*HTLC

func (*Channel) GetPrivate

func (m *Channel) GetPrivate() bool

func (*Channel) GetRemoteBalance

func (m *Channel) GetRemoteBalance() int64

func (*Channel) GetRemotePubkey

func (m *Channel) GetRemotePubkey() string

func (*Channel) GetTotalSatoshisReceived

func (m *Channel) GetTotalSatoshisReceived() int64

func (*Channel) GetTotalSatoshisSent

func (m *Channel) GetTotalSatoshisSent() int64

func (*Channel) GetUnsettledBalance

func (m *Channel) GetUnsettledBalance() int64

func (*Channel) ProtoMessage

func (*Channel) ProtoMessage()

func (*Channel) Reset

func (m *Channel) Reset()

func (*Channel) String

func (m *Channel) String() string

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 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 {
}

func (*ChannelGraphRequest) Descriptor

func (*ChannelGraphRequest) Descriptor() ([]byte, []int)

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 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 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"`
}

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) 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) Descriptor() ([]byte, []int)

func (*HTLC) GetAmount

func (m *HTLC) GetAmount() int64

func (*HTLC) GetExpirationHeight

func (m *HTLC) GetExpirationHeight() uint32

func (*HTLC) GetHashLock

func (m *HTLC) GetHashLock() []byte

func (*HTLC) GetIncoming

func (m *HTLC) GetIncoming() bool

func (*HTLC) ProtoMessage

func (*HTLC) ProtoMessage()

func (*HTLC) Reset

func (m *HTLC) Reset()

func (*HTLC) String

func (m *HTLC) String() string

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"`
}

func (*Hop) Descriptor

func (*Hop) Descriptor() ([]byte, []int)

func (*Hop) GetAmtToForward

func (m *Hop) GetAmtToForward() int64

func (*Hop) GetAmtToForwardMsat

func (m *Hop) GetAmtToForwardMsat() int64

func (*Hop) GetChanCapacity

func (m *Hop) GetChanCapacity() int64

func (*Hop) GetChanId

func (m *Hop) GetChanId() uint64

func (*Hop) GetExpiry

func (m *Hop) GetExpiry() uint32

func (*Hop) GetFee

func (m *Hop) GetFee() int64

func (*Hop) GetFeeMsat

func (m *Hop) GetFeeMsat() int64

func (*Hop) ProtoMessage

func (*Hop) ProtoMessage()

func (*Hop) Reset

func (m *Hop) Reset()

func (*Hop) String

func (m *Hop) String() string

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) Descriptor() ([]byte, []int)

func (*HopHint) GetChanId

func (m *HopHint) GetChanId() uint64

func (*HopHint) GetCltvExpiryDelta

func (m *HopHint) GetCltvExpiryDelta() uint32

func (*HopHint) GetFeeBaseMsat

func (m *HopHint) GetFeeBaseMsat() uint32

func (*HopHint) GetFeeProportionalMillionths

func (m *HopHint) GetFeeProportionalMillionths() uint32

func (*HopHint) GetNodeId

func (m *HopHint) GetNodeId() string

func (*HopHint) ProtoMessage

func (*HopHint) ProtoMessage()

func (*HopHint) Reset

func (m *HopHint) Reset()

func (*HopHint) String

func (m *HopHint) String() string

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"`
}

func (*Invoice) Descriptor

func (*Invoice) Descriptor() ([]byte, []int)

func (*Invoice) GetCltvExpiry

func (m *Invoice) GetCltvExpiry() uint64

func (*Invoice) GetCreationDate

func (m *Invoice) GetCreationDate() int64

func (*Invoice) GetDescriptionHash

func (m *Invoice) GetDescriptionHash() []byte

func (*Invoice) GetExpiry

func (m *Invoice) GetExpiry() int64

func (*Invoice) GetFallbackAddr

func (m *Invoice) GetFallbackAddr() string

func (*Invoice) GetMemo

func (m *Invoice) GetMemo() string

func (*Invoice) GetPaymentRequest

func (m *Invoice) GetPaymentRequest() string

func (*Invoice) GetPrivate

func (m *Invoice) GetPrivate() bool

func (*Invoice) GetRHash

func (m *Invoice) GetRHash() []byte

func (*Invoice) GetRPreimage

func (m *Invoice) GetRPreimage() []byte

func (*Invoice) GetReceipt

func (m *Invoice) GetReceipt() []byte

func (*Invoice) GetRouteHints

func (m *Invoice) GetRouteHints() []*RouteHint

func (*Invoice) GetSettleDate

func (m *Invoice) GetSettleDate() int64

func (*Invoice) GetSettled

func (m *Invoice) GetSettled() bool

func (*Invoice) GetValue

func (m *Invoice) GetValue() int64

func (*Invoice) ProtoMessage

func (*Invoice) ProtoMessage()

func (*Invoice) Reset

func (m *Invoice) Reset()

func (*Invoice) String

func (m *Invoice) String() string

type InvoiceSubscription

type InvoiceSubscription struct {
}

func (*InvoiceSubscription) Descriptor

func (*InvoiceSubscription) Descriptor() ([]byte, []int)

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)
	// *
	// NewWitnessAddress creates a new witness address under control of the local wallet.
	NewWitnessAddress(ctx context.Context, in *NewWitnessAddressRequest, 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)
	// *
	// 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: `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: `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.
	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 (sever -> client) for
	// notifying the client of newly added/settled invoices.
	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)
	// *
	// NewWitnessAddress creates a new witness address under control of the local wallet.
	NewWitnessAddress(context.Context, *NewWitnessAddressRequest) (*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)
	// *
	// 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: `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: `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.
	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 (sever -> client) for
	// notifying the client of newly added/settled invoices.
	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_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 {
	// / Toggles if all invoices should be returned, or only those that are currently unsettled.
	PendingOnly bool `protobuf:"varint,1,opt,name=pending_only,json=pendingOnly" json:"pending_only,omitempty"`
}

func (*ListInvoiceRequest) Descriptor

func (*ListInvoiceRequest) Descriptor() ([]byte, []int)

func (*ListInvoiceRequest) GetPendingOnly

func (m *ListInvoiceRequest) GetPendingOnly() 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 {
	Invoices []*Invoice `protobuf:"bytes,1,rep,name=invoices" json:"invoices,omitempty"`
}

func (*ListInvoiceResponse) Descriptor

func (*ListInvoiceResponse) Descriptor() ([]byte, []int)

func (*ListInvoiceResponse) GetInvoices

func (m *ListInvoiceResponse) GetInvoices() []*Invoice

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) - `p2pkh`: Pay to public key hash (`PUBKEY_HASH` = 2)

func (*NewAddressRequest) Descriptor

func (*NewAddressRequest) Descriptor() ([]byte, []int)

func (*NewAddressRequest) GetType

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

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 NewWitnessAddressRequest

type NewWitnessAddressRequest struct {
}

func (*NewWitnessAddressRequest) Descriptor

func (*NewWitnessAddressRequest) Descriptor() ([]byte, []int)

func (*NewWitnessAddressRequest) ProtoMessage

func (*NewWitnessAddressRequest) ProtoMessage()

func (*NewWitnessAddressRequest) Reset

func (m *NewWitnessAddressRequest) Reset()

func (*NewWitnessAddressRequest) String

func (m *NewWitnessAddressRequest) 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) Descriptor() ([]byte, []int)

func (*NodeInfo) GetNode

func (m *NodeInfo) GetNode() *LightningNode

func (*NodeInfo) GetNumChannels

func (m *NodeInfo) GetNumChannels() uint32

func (*NodeInfo) GetTotalCapacity

func (m *NodeInfo) GetTotalCapacity() int64

func (*NodeInfo) ProtoMessage

func (*NodeInfo) ProtoMessage()

func (*NodeInfo) Reset

func (m *NodeInfo) Reset()

func (*NodeInfo) String

func (m *NodeInfo) String() string

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"`
}

func (*OpenChannelRequest) Descriptor

func (*OpenChannelRequest) Descriptor() ([]byte, []int)

func (*OpenChannelRequest) GetLocalFundingAmount

func (m *OpenChannelRequest) GetLocalFundingAmount() int64

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) 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) Descriptor() ([]byte, []int)

func (*PayReq) GetCltvExpiry

func (m *PayReq) GetCltvExpiry() int64

func (*PayReq) GetDescription

func (m *PayReq) GetDescription() string

func (*PayReq) GetDescriptionHash

func (m *PayReq) GetDescriptionHash() string

func (*PayReq) GetDestination

func (m *PayReq) GetDestination() string

func (*PayReq) GetExpiry

func (m *PayReq) GetExpiry() int64

func (*PayReq) GetFallbackAddr

func (m *PayReq) GetFallbackAddr() string

func (*PayReq) GetNumSatoshis

func (m *PayReq) GetNumSatoshis() int64

func (*PayReq) GetPaymentHash

func (m *PayReq) GetPaymentHash() string

func (*PayReq) GetRouteHints

func (m *PayReq) GetRouteHints() []*RouteHint

func (*PayReq) GetTimestamp

func (m *PayReq) GetTimestamp() int64

func (*PayReq) ProtoMessage

func (*PayReq) ProtoMessage()

func (*PayReq) Reset

func (m *PayReq) Reset()

func (*PayReq) String

func (m *PayReq) String() string

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"`
	// / The value of the payment in satoshis
	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"`
}

func (*Payment) Descriptor

func (*Payment) Descriptor() ([]byte, []int)

func (*Payment) GetCreationDate

func (m *Payment) GetCreationDate() int64

func (*Payment) GetFee

func (m *Payment) GetFee() int64

func (*Payment) GetPath

func (m *Payment) GetPath() []string

func (*Payment) GetPaymentHash

func (m *Payment) GetPaymentHash() string

func (*Payment) GetPaymentPreimage

func (m *Payment) GetPaymentPreimage() string

func (*Payment) GetValue

func (m *Payment) GetValue() int64

func (*Payment) ProtoMessage

func (*Payment) ProtoMessage()

func (*Payment) Reset

func (m *Payment) Reset()

func (*Payment) String

func (m *Payment) String() string

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) Descriptor() ([]byte, []int)

func (*Peer) GetAddress

func (m *Peer) GetAddress() string

func (*Peer) GetBytesRecv

func (m *Peer) GetBytesRecv() uint64

func (*Peer) GetBytesSent

func (m *Peer) GetBytesSent() uint64

func (*Peer) GetInbound

func (m *Peer) GetInbound() bool

func (*Peer) GetPingTime

func (m *Peer) GetPingTime() int64

func (*Peer) GetPubKey

func (m *Peer) GetPubKey() string

func (*Peer) GetSatRecv

func (m *Peer) GetSatRecv() int64

func (*Peer) GetSatSent

func (m *Peer) GetSatSent() int64

func (*Peer) ProtoMessage

func (*Peer) ProtoMessage()

func (*Peer) Reset

func (m *Peer) Reset()

func (*Peer) String

func (m *Peer) String() string

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 (*PendingChannelsResponse) GetTotalLimboBalance

func (m *PendingChannelsResponse) GetTotalLimboBalance() int64

func (*PendingChannelsResponse) GetWaitingCloseChannels

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 (*PendingChannelsResponse_ClosedChannel) GetClosingTxid

func (m *PendingChannelsResponse_ClosedChannel) GetClosingTxid() string

func (*PendingChannelsResponse_ClosedChannel) ProtoMessage

func (*PendingChannelsResponse_ClosedChannel) ProtoMessage()

func (*PendingChannelsResponse_ClosedChannel) Reset

func (*PendingChannelsResponse_ClosedChannel) 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) GetBlocksTilMaturity

func (m *PendingChannelsResponse_ForceClosedChannel) GetBlocksTilMaturity() int32

func (*PendingChannelsResponse_ForceClosedChannel) GetChannel

func (*PendingChannelsResponse_ForceClosedChannel) GetClosingTxid

func (*PendingChannelsResponse_ForceClosedChannel) GetLimboBalance

func (*PendingChannelsResponse_ForceClosedChannel) GetMaturityHeight

func (m *PendingChannelsResponse_ForceClosedChannel) GetMaturityHeight() uint32

func (*PendingChannelsResponse_ForceClosedChannel) GetPendingHtlcs

func (*PendingChannelsResponse_ForceClosedChannel) GetRecoveredBalance

func (m *PendingChannelsResponse_ForceClosedChannel) GetRecoveredBalance() int64

func (*PendingChannelsResponse_ForceClosedChannel) ProtoMessage

func (*PendingChannelsResponse_ForceClosedChannel) Reset

func (*PendingChannelsResponse_ForceClosedChannel) 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 (*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) Reset

func (*PendingChannelsResponse_PendingChannel) 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) GetChannel

func (*PendingChannelsResponse_PendingOpenChannel) GetCommitFee

func (*PendingChannelsResponse_PendingOpenChannel) GetCommitWeight

func (*PendingChannelsResponse_PendingOpenChannel) GetConfirmationHeight

func (m *PendingChannelsResponse_PendingOpenChannel) GetConfirmationHeight() uint32

func (*PendingChannelsResponse_PendingOpenChannel) GetFeePerKw

func (*PendingChannelsResponse_PendingOpenChannel) ProtoMessage

func (*PendingChannelsResponse_PendingOpenChannel) Reset

func (*PendingChannelsResponse_PendingOpenChannel) 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) GetChannel

func (*PendingChannelsResponse_WaitingCloseChannel) GetLimboBalance

func (*PendingChannelsResponse_WaitingCloseChannel) ProtoMessage

func (*PendingChannelsResponse_WaitingCloseChannel) Reset

func (*PendingChannelsResponse_WaitingCloseChannel) 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"`
}

func (*QueryRoutesRequest) Descriptor

func (*QueryRoutesRequest) Descriptor() ([]byte, []int)

func (*QueryRoutesRequest) GetAmt

func (m *QueryRoutesRequest) GetAmt() int64

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) Descriptor() ([]byte, []int)

func (*Route) GetHops

func (m *Route) GetHops() []*Hop

func (*Route) GetTotalAmt

func (m *Route) GetTotalAmt() int64

func (*Route) GetTotalAmtMsat

func (m *Route) GetTotalAmtMsat() int64

func (*Route) GetTotalFees

func (m *Route) GetTotalFees() int64

func (*Route) GetTotalFeesMsat

func (m *Route) GetTotalFeesMsat() int64

func (*Route) GetTotalTimeLock

func (m *Route) GetTotalTimeLock() uint32

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) Reset

func (m *Route) Reset()

func (*Route) String

func (m *Route) String() string

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) Descriptor() ([]byte, []int)

func (*RouteHint) GetHopHints

func (m *RouteHint) GetHopHints() []*HopHint

func (*RouteHint) ProtoMessage

func (*RouteHint) ProtoMessage()

func (*RouteHint) Reset

func (m *RouteHint) Reset()

func (*RouteHint) String

func (m *RouteHint) String() string

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"`
}

func (*RoutingPolicy) Descriptor

func (*RoutingPolicy) Descriptor() ([]byte, []int)

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"`
}

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) 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 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 ammount, 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)
}

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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL