Versions in this module Expand all Collapse all v0 v0.0.20 Sep 9, 2023 v0.0.10 Sep 9, 2023 v0.0.3 Sep 9, 2023 Changes in this version + const DefaultAMPInvoiceExpiry + const DefaultInvoiceExpiry + var File_invoicesrpc_invoices_proto protoreflect.FileDescriptor + var Invoices_ServiceDesc = grpc.ServiceDesc + var LookupModifier_name = map[int32]string + var LookupModifier_value = map[string]int32 + func AddInvoice(ctx context.Context, cfg *AddInvoiceConfig, invoice *AddInvoiceData) (*lntypes.Hash, *channeldb.Invoice, error) + func CreateRPCFeatures(fv *lnwire.FeatureVector) map[uint32]*lnrpc.Feature + func CreateRPCInvoice(invoice *channeldb.Invoice, activeNetParams *chaincfg.Params) (*lnrpc.Invoice, error) + func CreateRPCRouteHints(routeHints [][]zpay32.HopHint) []*lnrpc.RouteHint + func CreateZpay32HopHints(routeHints []*lnrpc.RouteHint) ([][]zpay32.HopHint, error) + func DisableLog() + func RegisterInvoicesHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterInvoicesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InvoicesClient) error + func RegisterInvoicesHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterInvoicesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InvoicesServer) error + func RegisterInvoicesJSONCallbacks(...) — js/wasm + func RegisterInvoicesServer(s grpc.ServiceRegistrar, srv InvoicesServer) + func SelectHopHints(amtMSat lnwire.MilliSatoshi, cfg *AddInvoiceConfig, ...) []func(*zpay32.Invoice) + func UseLogger(logger btclog.Logger) + type AddHoldInvoiceRequest struct + CltvExpiry uint64 + DescriptionHash []byte + Expiry int64 + FallbackAddr string + Hash []byte + Memo string + Private bool + RouteHints []*lnrpc.RouteHint + Value int64 + ValueMsat int64 + func (*AddHoldInvoiceRequest) Descriptor() ([]byte, []int) + func (*AddHoldInvoiceRequest) ProtoMessage() + func (x *AddHoldInvoiceRequest) GetCltvExpiry() uint64 + func (x *AddHoldInvoiceRequest) GetDescriptionHash() []byte + func (x *AddHoldInvoiceRequest) GetExpiry() int64 + func (x *AddHoldInvoiceRequest) GetFallbackAddr() string + func (x *AddHoldInvoiceRequest) GetHash() []byte + func (x *AddHoldInvoiceRequest) GetMemo() string + func (x *AddHoldInvoiceRequest) GetPrivate() bool + func (x *AddHoldInvoiceRequest) GetRouteHints() []*lnrpc.RouteHint + func (x *AddHoldInvoiceRequest) GetValue() int64 + func (x *AddHoldInvoiceRequest) GetValueMsat() int64 + func (x *AddHoldInvoiceRequest) ProtoReflect() protoreflect.Message + func (x *AddHoldInvoiceRequest) Reset() + func (x *AddHoldInvoiceRequest) String() string + type AddHoldInvoiceResp struct + AddIndex uint64 + PaymentAddr []byte + PaymentRequest string + func (*AddHoldInvoiceResp) Descriptor() ([]byte, []int) + func (*AddHoldInvoiceResp) ProtoMessage() + func (x *AddHoldInvoiceResp) GetAddIndex() uint64 + func (x *AddHoldInvoiceResp) GetPaymentAddr() []byte + func (x *AddHoldInvoiceResp) GetPaymentRequest() string + func (x *AddHoldInvoiceResp) ProtoReflect() protoreflect.Message + func (x *AddHoldInvoiceResp) Reset() + func (x *AddHoldInvoiceResp) String() string + type AddInvoiceConfig struct + AddInvoice func(invoice *channeldb.Invoice, paymentHash lntypes.Hash) (uint64, error) + ChainParams *chaincfg.Params + ChanDB *channeldb.ChannelStateDB + DefaultCLTVExpiry uint32 + GenAmpInvoiceFeatures func() *lnwire.FeatureVector + GenInvoiceFeatures func() *lnwire.FeatureVector + Graph *channeldb.ChannelGraph + IsChannelActive func(chanID lnwire.ChannelID) bool + NodeSigner *netann.NodeSigner + type AddInvoiceData struct + Amp bool + CltvExpiry uint64 + DescriptionHash []byte + Expiry int64 + FallbackAddr string + Hash *lntypes.Hash + HodlInvoice bool + Memo string + Preimage *lntypes.Preimage + Private bool + RouteHints [][]zpay32.HopHint + Value lnwire.MilliSatoshi + type CancelInvoiceMsg struct + PaymentHash []byte + func (*CancelInvoiceMsg) Descriptor() ([]byte, []int) + func (*CancelInvoiceMsg) ProtoMessage() + func (x *CancelInvoiceMsg) GetPaymentHash() []byte + func (x *CancelInvoiceMsg) ProtoReflect() protoreflect.Message + func (x *CancelInvoiceMsg) Reset() + func (x *CancelInvoiceMsg) String() string + type CancelInvoiceResp struct + func (*CancelInvoiceResp) Descriptor() ([]byte, []int) + func (*CancelInvoiceResp) ProtoMessage() + func (x *CancelInvoiceResp) ProtoReflect() protoreflect.Message + func (x *CancelInvoiceResp) Reset() + func (x *CancelInvoiceResp) String() string + type Config struct + type InvoicesClient interface + AddHoldInvoice func(ctx context.Context, in *AddHoldInvoiceRequest, opts ...grpc.CallOption) (*AddHoldInvoiceResp, error) + CancelInvoice func(ctx context.Context, in *CancelInvoiceMsg, opts ...grpc.CallOption) (*CancelInvoiceResp, error) + LookupInvoiceV2 func(ctx context.Context, in *LookupInvoiceMsg, opts ...grpc.CallOption) (*lnrpc.Invoice, error) + SettleInvoice func(ctx context.Context, in *SettleInvoiceMsg, opts ...grpc.CallOption) (*SettleInvoiceResp, error) + SubscribeSingleInvoice func(ctx context.Context, in *SubscribeSingleInvoiceRequest, ...) (Invoices_SubscribeSingleInvoiceClient, error) + func NewInvoicesClient(cc grpc.ClientConnInterface) InvoicesClient + type InvoicesServer interface + AddHoldInvoice func(context.Context, *AddHoldInvoiceRequest) (*AddHoldInvoiceResp, error) + CancelInvoice func(context.Context, *CancelInvoiceMsg) (*CancelInvoiceResp, error) + LookupInvoiceV2 func(context.Context, *LookupInvoiceMsg) (*lnrpc.Invoice, error) + SettleInvoice func(context.Context, *SettleInvoiceMsg) (*SettleInvoiceResp, error) + SubscribeSingleInvoice func(*SubscribeSingleInvoiceRequest, Invoices_SubscribeSingleInvoiceServer) error + type Invoices_SubscribeSingleInvoiceClient interface + Recv func() (*lnrpc.Invoice, error) + type Invoices_SubscribeSingleInvoiceServer interface + Send func(*lnrpc.Invoice) error + type LookupInvoiceMsg struct + InvoiceRef isLookupInvoiceMsg_InvoiceRef + LookupModifier LookupModifier + func (*LookupInvoiceMsg) Descriptor() ([]byte, []int) + func (*LookupInvoiceMsg) ProtoMessage() + func (m *LookupInvoiceMsg) GetInvoiceRef() isLookupInvoiceMsg_InvoiceRef + func (x *LookupInvoiceMsg) GetLookupModifier() LookupModifier + func (x *LookupInvoiceMsg) GetPaymentAddr() []byte + func (x *LookupInvoiceMsg) GetPaymentHash() []byte + func (x *LookupInvoiceMsg) GetSetId() []byte + func (x *LookupInvoiceMsg) ProtoReflect() protoreflect.Message + func (x *LookupInvoiceMsg) Reset() + func (x *LookupInvoiceMsg) String() string + type LookupInvoiceMsg_PaymentAddr struct + PaymentAddr []byte + type LookupInvoiceMsg_PaymentHash struct + PaymentHash []byte + type LookupInvoiceMsg_SetId struct + SetId []byte + type LookupModifier int32 + const LookupModifier_DEFAULT + const LookupModifier_HTLC_SET_BLANK + const LookupModifier_HTLC_SET_ONLY + func (LookupModifier) Descriptor() protoreflect.EnumDescriptor + func (LookupModifier) EnumDescriptor() ([]byte, []int) + func (LookupModifier) Type() protoreflect.EnumType + func (x LookupModifier) Enum() *LookupModifier + func (x LookupModifier) Number() protoreflect.EnumNumber + func (x LookupModifier) String() string + type SettleInvoiceMsg struct + Preimage []byte + func (*SettleInvoiceMsg) Descriptor() ([]byte, []int) + func (*SettleInvoiceMsg) ProtoMessage() + func (x *SettleInvoiceMsg) GetPreimage() []byte + func (x *SettleInvoiceMsg) ProtoReflect() protoreflect.Message + func (x *SettleInvoiceMsg) Reset() + func (x *SettleInvoiceMsg) String() string + type SettleInvoiceResp struct + func (*SettleInvoiceResp) Descriptor() ([]byte, []int) + func (*SettleInvoiceResp) ProtoMessage() + func (x *SettleInvoiceResp) ProtoReflect() protoreflect.Message + func (x *SettleInvoiceResp) Reset() + func (x *SettleInvoiceResp) String() string + type SubscribeSingleInvoiceRequest struct + RHash []byte + func (*SubscribeSingleInvoiceRequest) Descriptor() ([]byte, []int) + func (*SubscribeSingleInvoiceRequest) ProtoMessage() + func (x *SubscribeSingleInvoiceRequest) GetRHash() []byte + func (x *SubscribeSingleInvoiceRequest) ProtoReflect() protoreflect.Message + func (x *SubscribeSingleInvoiceRequest) Reset() + func (x *SubscribeSingleInvoiceRequest) String() string + type UnimplementedInvoicesServer struct + func (UnimplementedInvoicesServer) AddHoldInvoice(context.Context, *AddHoldInvoiceRequest) (*AddHoldInvoiceResp, error) + func (UnimplementedInvoicesServer) CancelInvoice(context.Context, *CancelInvoiceMsg) (*CancelInvoiceResp, error) + func (UnimplementedInvoicesServer) LookupInvoiceV2(context.Context, *LookupInvoiceMsg) (*lnrpc.Invoice, error) + func (UnimplementedInvoicesServer) SettleInvoice(context.Context, *SettleInvoiceMsg) (*SettleInvoiceResp, error) + func (UnimplementedInvoicesServer) SubscribeSingleInvoice(*SubscribeSingleInvoiceRequest, Invoices_SubscribeSingleInvoiceServer) error + type UnsafeInvoicesServer interface