walletrpc

package
v0.12.1-beta.rc5-branch Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package walletrpc is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var WitnessType_name = map[int32]string{
	0:  "UNKNOWN_WITNESS",
	1:  "COMMITMENT_TIME_LOCK",
	2:  "COMMITMENT_NO_DELAY",
	3:  "COMMITMENT_REVOKE",
	4:  "HTLC_OFFERED_REVOKE",
	5:  "HTLC_ACCEPTED_REVOKE",
	6:  "HTLC_OFFERED_TIMEOUT_SECOND_LEVEL",
	7:  "HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL",
	8:  "HTLC_OFFERED_REMOTE_TIMEOUT",
	9:  "HTLC_ACCEPTED_REMOTE_SUCCESS",
	10: "HTLC_SECOND_LEVEL_REVOKE",
	11: "WITNESS_KEY_HASH",
	12: "NESTED_WITNESS_KEY_HASH",
	13: "COMMITMENT_ANCHOR",
}
View Source
var WitnessType_value = map[string]int32{
	"UNKNOWN_WITNESS":                    0,
	"COMMITMENT_TIME_LOCK":               1,
	"COMMITMENT_NO_DELAY":                2,
	"COMMITMENT_REVOKE":                  3,
	"HTLC_OFFERED_REVOKE":                4,
	"HTLC_ACCEPTED_REVOKE":               5,
	"HTLC_OFFERED_TIMEOUT_SECOND_LEVEL":  6,
	"HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL": 7,
	"HTLC_OFFERED_REMOTE_TIMEOUT":        8,
	"HTLC_ACCEPTED_REMOTE_SUCCESS":       9,
	"HTLC_SECOND_LEVEL_REVOKE":           10,
	"WITNESS_KEY_HASH":                   11,
	"NESTED_WITNESS_KEY_HASH":            12,
	"COMMITMENT_ANCHOR":                  13,
}

Functions

func DisableLog

func DisableLog()

DisableLog disables all library log output. Logging output is disabled by by default until UseLogger is called.

func RegisterWalletKitHandler

func RegisterWalletKitHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterWalletKitHandler registers the http handlers for service WalletKit to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterWalletKitHandlerClient

func RegisterWalletKitHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WalletKitClient) error

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

func RegisterWalletKitHandlerFromEndpoint

func RegisterWalletKitHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterWalletKitHandlerFromEndpoint is same as RegisterWalletKitHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterWalletKitHandlerServer

func RegisterWalletKitHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WalletKitServer) error

RegisterWalletKitHandlerServer registers the http handlers for service WalletKit to "mux". UnaryRPC :call WalletKitServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterWalletKitServer

func RegisterWalletKitServer(s *grpc.Server, srv WalletKitServer)

func UseLogger

func UseLogger(logger btclog.Logger)

UseLogger uses a specified Logger to output package logging info. This should be used in preference to SetLogWriter if the caller is also using btclog.

Types

type AddrRequest

type AddrRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddrRequest) Descriptor

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

func (*AddrRequest) ProtoMessage

func (*AddrRequest) ProtoMessage()

func (*AddrRequest) Reset

func (m *AddrRequest) Reset()

func (*AddrRequest) String

func (m *AddrRequest) String() string

func (*AddrRequest) XXX_DiscardUnknown

func (m *AddrRequest) XXX_DiscardUnknown()

func (*AddrRequest) XXX_Marshal

func (m *AddrRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddrRequest) XXX_Merge

func (m *AddrRequest) XXX_Merge(src proto.Message)

func (*AddrRequest) XXX_Size

func (m *AddrRequest) XXX_Size() int

func (*AddrRequest) XXX_Unmarshal

func (m *AddrRequest) XXX_Unmarshal(b []byte) error

type AddrResponse

type AddrResponse struct {
	//
	//The address encoded using a bech32 format.
	Addr                 string   `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddrResponse) Descriptor

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

func (*AddrResponse) GetAddr

func (m *AddrResponse) GetAddr() string

func (*AddrResponse) ProtoMessage

func (*AddrResponse) ProtoMessage()

func (*AddrResponse) Reset

func (m *AddrResponse) Reset()

func (*AddrResponse) String

func (m *AddrResponse) String() string

func (*AddrResponse) XXX_DiscardUnknown

func (m *AddrResponse) XXX_DiscardUnknown()

func (*AddrResponse) XXX_Marshal

func (m *AddrResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddrResponse) XXX_Merge

func (m *AddrResponse) XXX_Merge(src proto.Message)

func (*AddrResponse) XXX_Size

func (m *AddrResponse) XXX_Size() int

func (*AddrResponse) XXX_Unmarshal

func (m *AddrResponse) XXX_Unmarshal(b []byte) error

type BumpFeeRequest

type BumpFeeRequest struct {
	// The input we're attempting to bump the fee of.
	Outpoint *lnrpc.OutPoint `protobuf:"bytes,1,opt,name=outpoint,proto3" json:"outpoint,omitempty"`
	// The target number of blocks that the input should be spent within.
	TargetConf uint32 `protobuf:"varint,2,opt,name=target_conf,json=targetConf,proto3" json:"target_conf,omitempty"`
	//
	//The fee rate, expressed in sat/byte, that should be used to spend the input
	//with.
	SatPerByte uint32 `protobuf:"varint,3,opt,name=sat_per_byte,json=satPerByte,proto3" json:"sat_per_byte,omitempty"`
	//
	//Whether this input must be force-swept. This means that it is swept even
	//if it has a negative yield.
	Force                bool     `protobuf:"varint,4,opt,name=force,proto3" json:"force,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BumpFeeRequest) Descriptor

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

func (*BumpFeeRequest) GetForce

func (m *BumpFeeRequest) GetForce() bool

func (*BumpFeeRequest) GetOutpoint

func (m *BumpFeeRequest) GetOutpoint() *lnrpc.OutPoint

func (*BumpFeeRequest) GetSatPerByte

func (m *BumpFeeRequest) GetSatPerByte() uint32

func (*BumpFeeRequest) GetTargetConf

func (m *BumpFeeRequest) GetTargetConf() uint32

func (*BumpFeeRequest) ProtoMessage

func (*BumpFeeRequest) ProtoMessage()

func (*BumpFeeRequest) Reset

func (m *BumpFeeRequest) Reset()

func (*BumpFeeRequest) String

func (m *BumpFeeRequest) String() string

func (*BumpFeeRequest) XXX_DiscardUnknown

func (m *BumpFeeRequest) XXX_DiscardUnknown()

func (*BumpFeeRequest) XXX_Marshal

func (m *BumpFeeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BumpFeeRequest) XXX_Merge

func (m *BumpFeeRequest) XXX_Merge(src proto.Message)

func (*BumpFeeRequest) XXX_Size

func (m *BumpFeeRequest) XXX_Size() int

func (*BumpFeeRequest) XXX_Unmarshal

func (m *BumpFeeRequest) XXX_Unmarshal(b []byte) error

type BumpFeeResponse

type BumpFeeResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BumpFeeResponse) Descriptor

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

func (*BumpFeeResponse) ProtoMessage

func (*BumpFeeResponse) ProtoMessage()

func (*BumpFeeResponse) Reset

func (m *BumpFeeResponse) Reset()

func (*BumpFeeResponse) String

func (m *BumpFeeResponse) String() string

func (*BumpFeeResponse) XXX_DiscardUnknown

func (m *BumpFeeResponse) XXX_DiscardUnknown()

func (*BumpFeeResponse) XXX_Marshal

func (m *BumpFeeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BumpFeeResponse) XXX_Merge

func (m *BumpFeeResponse) XXX_Merge(src proto.Message)

func (*BumpFeeResponse) XXX_Size

func (m *BumpFeeResponse) XXX_Size() int

func (*BumpFeeResponse) XXX_Unmarshal

func (m *BumpFeeResponse) XXX_Unmarshal(b []byte) error

type Config

type Config struct{}

Config is the primary configuration struct for the WalletKit RPC server. When the server isn't active (via the build flag), callers outside this package will see this shell of a config file.

type EstimateFeeRequest

type EstimateFeeRequest struct {
	//
	//The number of confirmations to shoot for when estimating the fee.
	ConfTarget           int32    `protobuf:"varint,1,opt,name=conf_target,json=confTarget,proto3" json:"conf_target,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EstimateFeeRequest) Descriptor

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

func (*EstimateFeeRequest) GetConfTarget

func (m *EstimateFeeRequest) GetConfTarget() int32

func (*EstimateFeeRequest) ProtoMessage

func (*EstimateFeeRequest) ProtoMessage()

func (*EstimateFeeRequest) Reset

func (m *EstimateFeeRequest) Reset()

func (*EstimateFeeRequest) String

func (m *EstimateFeeRequest) String() string

func (*EstimateFeeRequest) XXX_DiscardUnknown

func (m *EstimateFeeRequest) XXX_DiscardUnknown()

func (*EstimateFeeRequest) XXX_Marshal

func (m *EstimateFeeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EstimateFeeRequest) XXX_Merge

func (m *EstimateFeeRequest) XXX_Merge(src proto.Message)

func (*EstimateFeeRequest) XXX_Size

func (m *EstimateFeeRequest) XXX_Size() int

func (*EstimateFeeRequest) XXX_Unmarshal

func (m *EstimateFeeRequest) XXX_Unmarshal(b []byte) error

type EstimateFeeResponse

type EstimateFeeResponse struct {
	//
	//The amount of satoshis per kw that should be used in order to reach the
	//confirmation target in the request.
	SatPerKw             int64    `protobuf:"varint,1,opt,name=sat_per_kw,json=satPerKw,proto3" json:"sat_per_kw,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EstimateFeeResponse) Descriptor

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

func (*EstimateFeeResponse) GetSatPerKw

func (m *EstimateFeeResponse) GetSatPerKw() int64

func (*EstimateFeeResponse) ProtoMessage

func (*EstimateFeeResponse) ProtoMessage()

func (*EstimateFeeResponse) Reset

func (m *EstimateFeeResponse) Reset()

func (*EstimateFeeResponse) String

func (m *EstimateFeeResponse) String() string

func (*EstimateFeeResponse) XXX_DiscardUnknown

func (m *EstimateFeeResponse) XXX_DiscardUnknown()

func (*EstimateFeeResponse) XXX_Marshal

func (m *EstimateFeeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EstimateFeeResponse) XXX_Merge

func (m *EstimateFeeResponse) XXX_Merge(src proto.Message)

func (*EstimateFeeResponse) XXX_Size

func (m *EstimateFeeResponse) XXX_Size() int

func (*EstimateFeeResponse) XXX_Unmarshal

func (m *EstimateFeeResponse) XXX_Unmarshal(b []byte) error

type FinalizePsbtRequest

type FinalizePsbtRequest struct {
	//
	//A PSBT that should be signed and finalized. The PSBT must contain all
	//required inputs, outputs, UTXO data and partial signatures of all other
	//signers.
	FundedPsbt           []byte   `protobuf:"bytes,1,opt,name=funded_psbt,json=fundedPsbt,proto3" json:"funded_psbt,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*FinalizePsbtRequest) Descriptor

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

func (*FinalizePsbtRequest) GetFundedPsbt

func (m *FinalizePsbtRequest) GetFundedPsbt() []byte

func (*FinalizePsbtRequest) ProtoMessage

func (*FinalizePsbtRequest) ProtoMessage()

func (*FinalizePsbtRequest) Reset

func (m *FinalizePsbtRequest) Reset()

func (*FinalizePsbtRequest) String

func (m *FinalizePsbtRequest) String() string

func (*FinalizePsbtRequest) XXX_DiscardUnknown

func (m *FinalizePsbtRequest) XXX_DiscardUnknown()

func (*FinalizePsbtRequest) XXX_Marshal

func (m *FinalizePsbtRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FinalizePsbtRequest) XXX_Merge

func (m *FinalizePsbtRequest) XXX_Merge(src proto.Message)

func (*FinalizePsbtRequest) XXX_Size

func (m *FinalizePsbtRequest) XXX_Size() int

func (*FinalizePsbtRequest) XXX_Unmarshal

func (m *FinalizePsbtRequest) XXX_Unmarshal(b []byte) error

type FinalizePsbtResponse

type FinalizePsbtResponse struct {
	// The fully signed and finalized transaction in PSBT format.
	SignedPsbt []byte `protobuf:"bytes,1,opt,name=signed_psbt,json=signedPsbt,proto3" json:"signed_psbt,omitempty"`
	// The fully signed and finalized transaction in the raw wire format.
	RawFinalTx           []byte   `protobuf:"bytes,2,opt,name=raw_final_tx,json=rawFinalTx,proto3" json:"raw_final_tx,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*FinalizePsbtResponse) Descriptor

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

func (*FinalizePsbtResponse) GetRawFinalTx

func (m *FinalizePsbtResponse) GetRawFinalTx() []byte

func (*FinalizePsbtResponse) GetSignedPsbt

func (m *FinalizePsbtResponse) GetSignedPsbt() []byte

func (*FinalizePsbtResponse) ProtoMessage

func (*FinalizePsbtResponse) ProtoMessage()

func (*FinalizePsbtResponse) Reset

func (m *FinalizePsbtResponse) Reset()

func (*FinalizePsbtResponse) String

func (m *FinalizePsbtResponse) String() string

func (*FinalizePsbtResponse) XXX_DiscardUnknown

func (m *FinalizePsbtResponse) XXX_DiscardUnknown()

func (*FinalizePsbtResponse) XXX_Marshal

func (m *FinalizePsbtResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FinalizePsbtResponse) XXX_Merge

func (m *FinalizePsbtResponse) XXX_Merge(src proto.Message)

func (*FinalizePsbtResponse) XXX_Size

func (m *FinalizePsbtResponse) XXX_Size() int

func (*FinalizePsbtResponse) XXX_Unmarshal

func (m *FinalizePsbtResponse) XXX_Unmarshal(b []byte) error

type FundPsbtRequest

type FundPsbtRequest struct {
	// Types that are valid to be assigned to Template:
	//	*FundPsbtRequest_Psbt
	//	*FundPsbtRequest_Raw
	Template isFundPsbtRequest_Template `protobuf_oneof:"template"`
	// Types that are valid to be assigned to Fees:
	//	*FundPsbtRequest_TargetConf
	//	*FundPsbtRequest_SatPerVbyte
	Fees                 isFundPsbtRequest_Fees `protobuf_oneof:"fees"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*FundPsbtRequest) Descriptor

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

func (*FundPsbtRequest) GetFees

func (m *FundPsbtRequest) GetFees() isFundPsbtRequest_Fees

func (*FundPsbtRequest) GetPsbt

func (m *FundPsbtRequest) GetPsbt() []byte

func (*FundPsbtRequest) GetRaw

func (m *FundPsbtRequest) GetRaw() *TxTemplate

func (*FundPsbtRequest) GetSatPerVbyte

func (m *FundPsbtRequest) GetSatPerVbyte() uint32

func (*FundPsbtRequest) GetTargetConf

func (m *FundPsbtRequest) GetTargetConf() uint32

func (*FundPsbtRequest) GetTemplate

func (m *FundPsbtRequest) GetTemplate() isFundPsbtRequest_Template

func (*FundPsbtRequest) ProtoMessage

func (*FundPsbtRequest) ProtoMessage()

func (*FundPsbtRequest) Reset

func (m *FundPsbtRequest) Reset()

func (*FundPsbtRequest) String

func (m *FundPsbtRequest) String() string

func (*FundPsbtRequest) XXX_DiscardUnknown

func (m *FundPsbtRequest) XXX_DiscardUnknown()

func (*FundPsbtRequest) XXX_Marshal

func (m *FundPsbtRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FundPsbtRequest) XXX_Merge

func (m *FundPsbtRequest) XXX_Merge(src proto.Message)

func (*FundPsbtRequest) XXX_OneofWrappers

func (*FundPsbtRequest) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*FundPsbtRequest) XXX_Size

func (m *FundPsbtRequest) XXX_Size() int

func (*FundPsbtRequest) XXX_Unmarshal

func (m *FundPsbtRequest) XXX_Unmarshal(b []byte) error

type FundPsbtRequest_Psbt

type FundPsbtRequest_Psbt struct {
	Psbt []byte `protobuf:"bytes,1,opt,name=psbt,proto3,oneof"`
}

type FundPsbtRequest_Raw

type FundPsbtRequest_Raw struct {
	Raw *TxTemplate `protobuf:"bytes,2,opt,name=raw,proto3,oneof"`
}

type FundPsbtRequest_SatPerVbyte

type FundPsbtRequest_SatPerVbyte struct {
	SatPerVbyte uint32 `protobuf:"varint,4,opt,name=sat_per_vbyte,json=satPerVbyte,proto3,oneof"`
}

type FundPsbtRequest_TargetConf

type FundPsbtRequest_TargetConf struct {
	TargetConf uint32 `protobuf:"varint,3,opt,name=target_conf,json=targetConf,proto3,oneof"`
}

type FundPsbtResponse

type FundPsbtResponse struct {
	//
	//The funded but not yet signed PSBT packet.
	FundedPsbt []byte `protobuf:"bytes,1,opt,name=funded_psbt,json=fundedPsbt,proto3" json:"funded_psbt,omitempty"`
	//
	//The index of the added change output or -1 if no change was left over.
	ChangeOutputIndex int32 `protobuf:"varint,2,opt,name=change_output_index,json=changeOutputIndex,proto3" json:"change_output_index,omitempty"`
	//
	//The list of lock leases that were acquired for the inputs in the funded PSBT
	//packet.
	LockedUtxos          []*UtxoLease `protobuf:"bytes,3,rep,name=locked_utxos,json=lockedUtxos,proto3" json:"locked_utxos,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*FundPsbtResponse) Descriptor

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

func (*FundPsbtResponse) GetChangeOutputIndex

func (m *FundPsbtResponse) GetChangeOutputIndex() int32

func (*FundPsbtResponse) GetFundedPsbt

func (m *FundPsbtResponse) GetFundedPsbt() []byte

func (*FundPsbtResponse) GetLockedUtxos

func (m *FundPsbtResponse) GetLockedUtxos() []*UtxoLease

func (*FundPsbtResponse) ProtoMessage

func (*FundPsbtResponse) ProtoMessage()

func (*FundPsbtResponse) Reset

func (m *FundPsbtResponse) Reset()

func (*FundPsbtResponse) String

func (m *FundPsbtResponse) String() string

func (*FundPsbtResponse) XXX_DiscardUnknown

func (m *FundPsbtResponse) XXX_DiscardUnknown()

func (*FundPsbtResponse) XXX_Marshal

func (m *FundPsbtResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FundPsbtResponse) XXX_Merge

func (m *FundPsbtResponse) XXX_Merge(src proto.Message)

func (*FundPsbtResponse) XXX_Size

func (m *FundPsbtResponse) XXX_Size() int

func (*FundPsbtResponse) XXX_Unmarshal

func (m *FundPsbtResponse) XXX_Unmarshal(b []byte) error

type KeyReq

type KeyReq struct {
	//
	//Is the key finger print of the root pubkey that this request is targeting.
	//This allows the WalletKit to possibly serve out keys for multiple HD chains
	//via public derivation.
	KeyFingerPrint int32 `protobuf:"varint,1,opt,name=key_finger_print,json=keyFingerPrint,proto3" json:"key_finger_print,omitempty"`
	//
	//The target key family to derive a key from. In other contexts, this is
	//known as the "account".
	KeyFamily            int32    `protobuf:"varint,2,opt,name=key_family,json=keyFamily,proto3" json:"key_family,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*KeyReq) Descriptor

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

func (*KeyReq) GetKeyFamily

func (m *KeyReq) GetKeyFamily() int32

func (*KeyReq) GetKeyFingerPrint

func (m *KeyReq) GetKeyFingerPrint() int32

func (*KeyReq) ProtoMessage

func (*KeyReq) ProtoMessage()

func (*KeyReq) Reset

func (m *KeyReq) Reset()

func (*KeyReq) String

func (m *KeyReq) String() string

func (*KeyReq) XXX_DiscardUnknown

func (m *KeyReq) XXX_DiscardUnknown()

func (*KeyReq) XXX_Marshal

func (m *KeyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyReq) XXX_Merge

func (m *KeyReq) XXX_Merge(src proto.Message)

func (*KeyReq) XXX_Size

func (m *KeyReq) XXX_Size() int

func (*KeyReq) XXX_Unmarshal

func (m *KeyReq) XXX_Unmarshal(b []byte) error

type LabelTransactionRequest

type LabelTransactionRequest struct {
	// The txid of the transaction to label.
	Txid []byte `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"`
	// The label to add to the transaction, limited to 500 characters.
	Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	// Whether to overwrite the existing label, if it is present.
	Overwrite            bool     `protobuf:"varint,3,opt,name=overwrite,proto3" json:"overwrite,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LabelTransactionRequest) Descriptor

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

func (*LabelTransactionRequest) GetLabel

func (m *LabelTransactionRequest) GetLabel() string

func (*LabelTransactionRequest) GetOverwrite

func (m *LabelTransactionRequest) GetOverwrite() bool

func (*LabelTransactionRequest) GetTxid

func (m *LabelTransactionRequest) GetTxid() []byte

func (*LabelTransactionRequest) ProtoMessage

func (*LabelTransactionRequest) ProtoMessage()

func (*LabelTransactionRequest) Reset

func (m *LabelTransactionRequest) Reset()

func (*LabelTransactionRequest) String

func (m *LabelTransactionRequest) String() string

func (*LabelTransactionRequest) XXX_DiscardUnknown

func (m *LabelTransactionRequest) XXX_DiscardUnknown()

func (*LabelTransactionRequest) XXX_Marshal

func (m *LabelTransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LabelTransactionRequest) XXX_Merge

func (m *LabelTransactionRequest) XXX_Merge(src proto.Message)

func (*LabelTransactionRequest) XXX_Size

func (m *LabelTransactionRequest) XXX_Size() int

func (*LabelTransactionRequest) XXX_Unmarshal

func (m *LabelTransactionRequest) XXX_Unmarshal(b []byte) error

type LabelTransactionResponse

type LabelTransactionResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LabelTransactionResponse) Descriptor

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

func (*LabelTransactionResponse) ProtoMessage

func (*LabelTransactionResponse) ProtoMessage()

func (*LabelTransactionResponse) Reset

func (m *LabelTransactionResponse) Reset()

func (*LabelTransactionResponse) String

func (m *LabelTransactionResponse) String() string

func (*LabelTransactionResponse) XXX_DiscardUnknown

func (m *LabelTransactionResponse) XXX_DiscardUnknown()

func (*LabelTransactionResponse) XXX_Marshal

func (m *LabelTransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LabelTransactionResponse) XXX_Merge

func (m *LabelTransactionResponse) XXX_Merge(src proto.Message)

func (*LabelTransactionResponse) XXX_Size

func (m *LabelTransactionResponse) XXX_Size() int

func (*LabelTransactionResponse) XXX_Unmarshal

func (m *LabelTransactionResponse) XXX_Unmarshal(b []byte) error

type LeaseOutputRequest

type LeaseOutputRequest struct {
	//
	//An ID of 32 random bytes that must be unique for each distinct application
	//using this RPC which will be used to bound the output lease to.
	Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The identifying outpoint of the output being leased.
	Outpoint             *lnrpc.OutPoint `protobuf:"bytes,2,opt,name=outpoint,proto3" json:"outpoint,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*LeaseOutputRequest) Descriptor

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

func (*LeaseOutputRequest) GetId

func (m *LeaseOutputRequest) GetId() []byte

func (*LeaseOutputRequest) GetOutpoint

func (m *LeaseOutputRequest) GetOutpoint() *lnrpc.OutPoint

func (*LeaseOutputRequest) ProtoMessage

func (*LeaseOutputRequest) ProtoMessage()

func (*LeaseOutputRequest) Reset

func (m *LeaseOutputRequest) Reset()

func (*LeaseOutputRequest) String

func (m *LeaseOutputRequest) String() string

func (*LeaseOutputRequest) XXX_DiscardUnknown

func (m *LeaseOutputRequest) XXX_DiscardUnknown()

func (*LeaseOutputRequest) XXX_Marshal

func (m *LeaseOutputRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LeaseOutputRequest) XXX_Merge

func (m *LeaseOutputRequest) XXX_Merge(src proto.Message)

func (*LeaseOutputRequest) XXX_Size

func (m *LeaseOutputRequest) XXX_Size() int

func (*LeaseOutputRequest) XXX_Unmarshal

func (m *LeaseOutputRequest) XXX_Unmarshal(b []byte) error

type LeaseOutputResponse

type LeaseOutputResponse struct {
	//
	//The absolute expiration of the output lease represented as a unix timestamp.
	Expiration           uint64   `protobuf:"varint,1,opt,name=expiration,proto3" json:"expiration,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LeaseOutputResponse) Descriptor

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

func (*LeaseOutputResponse) GetExpiration

func (m *LeaseOutputResponse) GetExpiration() uint64

func (*LeaseOutputResponse) ProtoMessage

func (*LeaseOutputResponse) ProtoMessage()

func (*LeaseOutputResponse) Reset

func (m *LeaseOutputResponse) Reset()

func (*LeaseOutputResponse) String

func (m *LeaseOutputResponse) String() string

func (*LeaseOutputResponse) XXX_DiscardUnknown

func (m *LeaseOutputResponse) XXX_DiscardUnknown()

func (*LeaseOutputResponse) XXX_Marshal

func (m *LeaseOutputResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LeaseOutputResponse) XXX_Merge

func (m *LeaseOutputResponse) XXX_Merge(src proto.Message)

func (*LeaseOutputResponse) XXX_Size

func (m *LeaseOutputResponse) XXX_Size() int

func (*LeaseOutputResponse) XXX_Unmarshal

func (m *LeaseOutputResponse) XXX_Unmarshal(b []byte) error

type ListSweepsRequest

type ListSweepsRequest struct {
	//
	//Retrieve the full sweep transaction details. If false, only the sweep txids
	//will be returned. Note that some sweeps that LND publishes will have been
	//replaced-by-fee, so will not be included in this output.
	Verbose              bool     `protobuf:"varint,1,opt,name=verbose,proto3" json:"verbose,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListSweepsRequest) Descriptor

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

func (*ListSweepsRequest) GetVerbose

func (m *ListSweepsRequest) GetVerbose() bool

func (*ListSweepsRequest) ProtoMessage

func (*ListSweepsRequest) ProtoMessage()

func (*ListSweepsRequest) Reset

func (m *ListSweepsRequest) Reset()

func (*ListSweepsRequest) String

func (m *ListSweepsRequest) String() string

func (*ListSweepsRequest) XXX_DiscardUnknown

func (m *ListSweepsRequest) XXX_DiscardUnknown()

func (*ListSweepsRequest) XXX_Marshal

func (m *ListSweepsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListSweepsRequest) XXX_Merge

func (m *ListSweepsRequest) XXX_Merge(src proto.Message)

func (*ListSweepsRequest) XXX_Size

func (m *ListSweepsRequest) XXX_Size() int

func (*ListSweepsRequest) XXX_Unmarshal

func (m *ListSweepsRequest) XXX_Unmarshal(b []byte) error

type ListSweepsResponse

type ListSweepsResponse struct {
	// Types that are valid to be assigned to Sweeps:
	//	*ListSweepsResponse_TransactionDetails
	//	*ListSweepsResponse_TransactionIds
	Sweeps               isListSweepsResponse_Sweeps `protobuf_oneof:"sweeps"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

func (*ListSweepsResponse) Descriptor

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

func (*ListSweepsResponse) GetSweeps

func (m *ListSweepsResponse) GetSweeps() isListSweepsResponse_Sweeps

func (*ListSweepsResponse) GetTransactionDetails

func (m *ListSweepsResponse) GetTransactionDetails() *lnrpc.TransactionDetails

func (*ListSweepsResponse) GetTransactionIds

func (m *ListSweepsResponse) GetTransactionIds() *ListSweepsResponse_TransactionIDs

func (*ListSweepsResponse) ProtoMessage

func (*ListSweepsResponse) ProtoMessage()

func (*ListSweepsResponse) Reset

func (m *ListSweepsResponse) Reset()

func (*ListSweepsResponse) String

func (m *ListSweepsResponse) String() string

func (*ListSweepsResponse) XXX_DiscardUnknown

func (m *ListSweepsResponse) XXX_DiscardUnknown()

func (*ListSweepsResponse) XXX_Marshal

func (m *ListSweepsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListSweepsResponse) XXX_Merge

func (m *ListSweepsResponse) XXX_Merge(src proto.Message)

func (*ListSweepsResponse) XXX_OneofWrappers

func (*ListSweepsResponse) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*ListSweepsResponse) XXX_Size

func (m *ListSweepsResponse) XXX_Size() int

func (*ListSweepsResponse) XXX_Unmarshal

func (m *ListSweepsResponse) XXX_Unmarshal(b []byte) error

type ListSweepsResponse_TransactionDetails

type ListSweepsResponse_TransactionDetails struct {
	TransactionDetails *lnrpc.TransactionDetails `protobuf:"bytes,1,opt,name=transaction_details,json=transactionDetails,proto3,oneof"`
}

type ListSweepsResponse_TransactionIDs

type ListSweepsResponse_TransactionIDs struct {
	//
	//Reversed, hex-encoded string representing the transaction ids of the
	//sweeps that our node has broadcast. Note that these transactions may
	//not have confirmed yet, we record sweeps on broadcast, not confirmation.
	TransactionIds       []string `protobuf:"bytes,1,rep,name=transaction_ids,json=transactionIds,proto3" json:"transaction_ids,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListSweepsResponse_TransactionIDs) Descriptor

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

func (*ListSweepsResponse_TransactionIDs) GetTransactionIds

func (m *ListSweepsResponse_TransactionIDs) GetTransactionIds() []string

func (*ListSweepsResponse_TransactionIDs) ProtoMessage

func (*ListSweepsResponse_TransactionIDs) ProtoMessage()

func (*ListSweepsResponse_TransactionIDs) Reset

func (*ListSweepsResponse_TransactionIDs) String

func (*ListSweepsResponse_TransactionIDs) XXX_DiscardUnknown

func (m *ListSweepsResponse_TransactionIDs) XXX_DiscardUnknown()

func (*ListSweepsResponse_TransactionIDs) XXX_Marshal

func (m *ListSweepsResponse_TransactionIDs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListSweepsResponse_TransactionIDs) XXX_Merge

func (*ListSweepsResponse_TransactionIDs) XXX_Size

func (m *ListSweepsResponse_TransactionIDs) XXX_Size() int

func (*ListSweepsResponse_TransactionIDs) XXX_Unmarshal

func (m *ListSweepsResponse_TransactionIDs) XXX_Unmarshal(b []byte) error

type ListSweepsResponse_TransactionIds

type ListSweepsResponse_TransactionIds struct {
	TransactionIds *ListSweepsResponse_TransactionIDs `protobuf:"bytes,2,opt,name=transaction_ids,json=transactionIds,proto3,oneof"`
}

type ListUnspentRequest

type ListUnspentRequest struct {
	// The minimum number of confirmations to be included.
	MinConfs int32 `protobuf:"varint,1,opt,name=min_confs,json=minConfs,proto3" json:"min_confs,omitempty"`
	// The maximum number of confirmations to be included.
	MaxConfs             int32    `protobuf:"varint,2,opt,name=max_confs,json=maxConfs,proto3" json:"max_confs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListUnspentRequest) Descriptor

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

func (*ListUnspentRequest) GetMaxConfs

func (m *ListUnspentRequest) GetMaxConfs() int32

func (*ListUnspentRequest) GetMinConfs

func (m *ListUnspentRequest) GetMinConfs() int32

func (*ListUnspentRequest) ProtoMessage

func (*ListUnspentRequest) ProtoMessage()

func (*ListUnspentRequest) Reset

func (m *ListUnspentRequest) Reset()

func (*ListUnspentRequest) String

func (m *ListUnspentRequest) String() string

func (*ListUnspentRequest) XXX_DiscardUnknown

func (m *ListUnspentRequest) XXX_DiscardUnknown()

func (*ListUnspentRequest) XXX_Marshal

func (m *ListUnspentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListUnspentRequest) XXX_Merge

func (m *ListUnspentRequest) XXX_Merge(src proto.Message)

func (*ListUnspentRequest) XXX_Size

func (m *ListUnspentRequest) XXX_Size() int

func (*ListUnspentRequest) XXX_Unmarshal

func (m *ListUnspentRequest) XXX_Unmarshal(b []byte) error

type ListUnspentResponse

type ListUnspentResponse struct {
	// A list of utxos satisfying the specified number of confirmations.
	Utxos                []*lnrpc.Utxo `protobuf:"bytes,1,rep,name=utxos,proto3" json:"utxos,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*ListUnspentResponse) Descriptor

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

func (*ListUnspentResponse) GetUtxos

func (m *ListUnspentResponse) GetUtxos() []*lnrpc.Utxo

func (*ListUnspentResponse) ProtoMessage

func (*ListUnspentResponse) ProtoMessage()

func (*ListUnspentResponse) Reset

func (m *ListUnspentResponse) Reset()

func (*ListUnspentResponse) String

func (m *ListUnspentResponse) String() string

func (*ListUnspentResponse) XXX_DiscardUnknown

func (m *ListUnspentResponse) XXX_DiscardUnknown()

func (*ListUnspentResponse) XXX_Marshal

func (m *ListUnspentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListUnspentResponse) XXX_Merge

func (m *ListUnspentResponse) XXX_Merge(src proto.Message)

func (*ListUnspentResponse) XXX_Size

func (m *ListUnspentResponse) XXX_Size() int

func (*ListUnspentResponse) XXX_Unmarshal

func (m *ListUnspentResponse) XXX_Unmarshal(b []byte) error

type PendingSweep

type PendingSweep struct {
	// The outpoint of the output we're attempting to sweep.
	Outpoint *lnrpc.OutPoint `protobuf:"bytes,1,opt,name=outpoint,proto3" json:"outpoint,omitempty"`
	// The witness type of the output we're attempting to sweep.
	WitnessType WitnessType `protobuf:"varint,2,opt,name=witness_type,json=witnessType,proto3,enum=walletrpc.WitnessType" json:"witness_type,omitempty"`
	// The value of the output we're attempting to sweep.
	AmountSat uint32 `protobuf:"varint,3,opt,name=amount_sat,json=amountSat,proto3" json:"amount_sat,omitempty"`
	//
	//The fee rate we'll use to sweep the output. The fee rate is only determined
	//once a sweeping transaction for the output is created, so it's possible for
	//this to be 0 before this.
	SatPerByte uint32 `protobuf:"varint,4,opt,name=sat_per_byte,json=satPerByte,proto3" json:"sat_per_byte,omitempty"`
	// The number of broadcast attempts we've made to sweep the output.
	BroadcastAttempts uint32 `protobuf:"varint,5,opt,name=broadcast_attempts,json=broadcastAttempts,proto3" json:"broadcast_attempts,omitempty"`
	//
	//The next height of the chain at which we'll attempt to broadcast the
	//sweep transaction of the output.
	NextBroadcastHeight uint32 `protobuf:"varint,6,opt,name=next_broadcast_height,json=nextBroadcastHeight,proto3" json:"next_broadcast_height,omitempty"`
	// The requested confirmation target for this output.
	RequestedConfTarget uint32 `protobuf:"varint,8,opt,name=requested_conf_target,json=requestedConfTarget,proto3" json:"requested_conf_target,omitempty"`
	// The requested fee rate, expressed in sat/byte, for this output.
	RequestedSatPerByte uint32 `protobuf:"varint,9,opt,name=requested_sat_per_byte,json=requestedSatPerByte,proto3" json:"requested_sat_per_byte,omitempty"`
	//
	//Whether this input must be force-swept. This means that it is swept even
	//if it has a negative yield.
	Force                bool     `protobuf:"varint,7,opt,name=force,proto3" json:"force,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PendingSweep) Descriptor

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

func (*PendingSweep) GetAmountSat

func (m *PendingSweep) GetAmountSat() uint32

func (*PendingSweep) GetBroadcastAttempts

func (m *PendingSweep) GetBroadcastAttempts() uint32

func (*PendingSweep) GetForce

func (m *PendingSweep) GetForce() bool

func (*PendingSweep) GetNextBroadcastHeight

func (m *PendingSweep) GetNextBroadcastHeight() uint32

func (*PendingSweep) GetOutpoint

func (m *PendingSweep) GetOutpoint() *lnrpc.OutPoint

func (*PendingSweep) GetRequestedConfTarget

func (m *PendingSweep) GetRequestedConfTarget() uint32

func (*PendingSweep) GetRequestedSatPerByte

func (m *PendingSweep) GetRequestedSatPerByte() uint32

func (*PendingSweep) GetSatPerByte

func (m *PendingSweep) GetSatPerByte() uint32

func (*PendingSweep) GetWitnessType

func (m *PendingSweep) GetWitnessType() WitnessType

func (*PendingSweep) ProtoMessage

func (*PendingSweep) ProtoMessage()

func (*PendingSweep) Reset

func (m *PendingSweep) Reset()

func (*PendingSweep) String

func (m *PendingSweep) String() string

func (*PendingSweep) XXX_DiscardUnknown

func (m *PendingSweep) XXX_DiscardUnknown()

func (*PendingSweep) XXX_Marshal

func (m *PendingSweep) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PendingSweep) XXX_Merge

func (m *PendingSweep) XXX_Merge(src proto.Message)

func (*PendingSweep) XXX_Size

func (m *PendingSweep) XXX_Size() int

func (*PendingSweep) XXX_Unmarshal

func (m *PendingSweep) XXX_Unmarshal(b []byte) error

type PendingSweepsRequest

type PendingSweepsRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PendingSweepsRequest) Descriptor

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

func (*PendingSweepsRequest) ProtoMessage

func (*PendingSweepsRequest) ProtoMessage()

func (*PendingSweepsRequest) Reset

func (m *PendingSweepsRequest) Reset()

func (*PendingSweepsRequest) String

func (m *PendingSweepsRequest) String() string

func (*PendingSweepsRequest) XXX_DiscardUnknown

func (m *PendingSweepsRequest) XXX_DiscardUnknown()

func (*PendingSweepsRequest) XXX_Marshal

func (m *PendingSweepsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PendingSweepsRequest) XXX_Merge

func (m *PendingSweepsRequest) XXX_Merge(src proto.Message)

func (*PendingSweepsRequest) XXX_Size

func (m *PendingSweepsRequest) XXX_Size() int

func (*PendingSweepsRequest) XXX_Unmarshal

func (m *PendingSweepsRequest) XXX_Unmarshal(b []byte) error

type PendingSweepsResponse

type PendingSweepsResponse struct {
	//
	//The set of outputs currently being swept by lnd's central batching engine.
	PendingSweeps        []*PendingSweep `protobuf:"bytes,1,rep,name=pending_sweeps,json=pendingSweeps,proto3" json:"pending_sweeps,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*PendingSweepsResponse) Descriptor

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

func (*PendingSweepsResponse) GetPendingSweeps

func (m *PendingSweepsResponse) GetPendingSweeps() []*PendingSweep

func (*PendingSweepsResponse) ProtoMessage

func (*PendingSweepsResponse) ProtoMessage()

func (*PendingSweepsResponse) Reset

func (m *PendingSweepsResponse) Reset()

func (*PendingSweepsResponse) String

func (m *PendingSweepsResponse) String() string

func (*PendingSweepsResponse) XXX_DiscardUnknown

func (m *PendingSweepsResponse) XXX_DiscardUnknown()

func (*PendingSweepsResponse) XXX_Marshal

func (m *PendingSweepsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PendingSweepsResponse) XXX_Merge

func (m *PendingSweepsResponse) XXX_Merge(src proto.Message)

func (*PendingSweepsResponse) XXX_Size

func (m *PendingSweepsResponse) XXX_Size() int

func (*PendingSweepsResponse) XXX_Unmarshal

func (m *PendingSweepsResponse) XXX_Unmarshal(b []byte) error

type PublishResponse

type PublishResponse struct {
	//
	//If blank, then no error occurred and the transaction was successfully
	//published. If not the empty string, then a string representation of the
	//broadcast error.
	//
	//TODO(roasbeef): map to a proper enum type
	PublishError         string   `protobuf:"bytes,1,opt,name=publish_error,json=publishError,proto3" json:"publish_error,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PublishResponse) Descriptor

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

func (*PublishResponse) GetPublishError

func (m *PublishResponse) GetPublishError() string

func (*PublishResponse) ProtoMessage

func (*PublishResponse) ProtoMessage()

func (*PublishResponse) Reset

func (m *PublishResponse) Reset()

func (*PublishResponse) String

func (m *PublishResponse) String() string

func (*PublishResponse) XXX_DiscardUnknown

func (m *PublishResponse) XXX_DiscardUnknown()

func (*PublishResponse) XXX_Marshal

func (m *PublishResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PublishResponse) XXX_Merge

func (m *PublishResponse) XXX_Merge(src proto.Message)

func (*PublishResponse) XXX_Size

func (m *PublishResponse) XXX_Size() int

func (*PublishResponse) XXX_Unmarshal

func (m *PublishResponse) XXX_Unmarshal(b []byte) error

type ReleaseOutputRequest

type ReleaseOutputRequest struct {
	// The unique ID that was used to lock the output.
	Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The identifying outpoint of the output being released.
	Outpoint             *lnrpc.OutPoint `protobuf:"bytes,2,opt,name=outpoint,proto3" json:"outpoint,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*ReleaseOutputRequest) Descriptor

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

func (*ReleaseOutputRequest) GetId

func (m *ReleaseOutputRequest) GetId() []byte

func (*ReleaseOutputRequest) GetOutpoint

func (m *ReleaseOutputRequest) GetOutpoint() *lnrpc.OutPoint

func (*ReleaseOutputRequest) ProtoMessage

func (*ReleaseOutputRequest) ProtoMessage()

func (*ReleaseOutputRequest) Reset

func (m *ReleaseOutputRequest) Reset()

func (*ReleaseOutputRequest) String

func (m *ReleaseOutputRequest) String() string

func (*ReleaseOutputRequest) XXX_DiscardUnknown

func (m *ReleaseOutputRequest) XXX_DiscardUnknown()

func (*ReleaseOutputRequest) XXX_Marshal

func (m *ReleaseOutputRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReleaseOutputRequest) XXX_Merge

func (m *ReleaseOutputRequest) XXX_Merge(src proto.Message)

func (*ReleaseOutputRequest) XXX_Size

func (m *ReleaseOutputRequest) XXX_Size() int

func (*ReleaseOutputRequest) XXX_Unmarshal

func (m *ReleaseOutputRequest) XXX_Unmarshal(b []byte) error

type ReleaseOutputResponse

type ReleaseOutputResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReleaseOutputResponse) Descriptor

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

func (*ReleaseOutputResponse) ProtoMessage

func (*ReleaseOutputResponse) ProtoMessage()

func (*ReleaseOutputResponse) Reset

func (m *ReleaseOutputResponse) Reset()

func (*ReleaseOutputResponse) String

func (m *ReleaseOutputResponse) String() string

func (*ReleaseOutputResponse) XXX_DiscardUnknown

func (m *ReleaseOutputResponse) XXX_DiscardUnknown()

func (*ReleaseOutputResponse) XXX_Marshal

func (m *ReleaseOutputResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReleaseOutputResponse) XXX_Merge

func (m *ReleaseOutputResponse) XXX_Merge(src proto.Message)

func (*ReleaseOutputResponse) XXX_Size

func (m *ReleaseOutputResponse) XXX_Size() int

func (*ReleaseOutputResponse) XXX_Unmarshal

func (m *ReleaseOutputResponse) XXX_Unmarshal(b []byte) error

type SendOutputsRequest

type SendOutputsRequest struct {
	//
	//The number of satoshis per kilo weight that should be used when crafting
	//this transaction.
	SatPerKw int64 `protobuf:"varint,1,opt,name=sat_per_kw,json=satPerKw,proto3" json:"sat_per_kw,omitempty"`
	//
	//A slice of the outputs that should be created in the transaction produced.
	Outputs []*signrpc.TxOut `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty"`
	// An optional label for the transaction, limited to 500 characters.
	Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`
	// The minimum number of confirmations each one of your outputs used for
	// the transaction must satisfy.
	MinConfs int32 `protobuf:"varint,4,opt,name=min_confs,json=minConfs,proto3" json:"min_confs,omitempty"`
	// Whether unconfirmed outputs should be used as inputs for the transaction.
	SpendUnconfirmed     bool     `protobuf:"varint,5,opt,name=spend_unconfirmed,json=spendUnconfirmed,proto3" json:"spend_unconfirmed,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SendOutputsRequest) Descriptor

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

func (*SendOutputsRequest) GetLabel

func (m *SendOutputsRequest) GetLabel() string

func (*SendOutputsRequest) GetMinConfs

func (m *SendOutputsRequest) GetMinConfs() int32

func (*SendOutputsRequest) GetOutputs

func (m *SendOutputsRequest) GetOutputs() []*signrpc.TxOut

func (*SendOutputsRequest) GetSatPerKw

func (m *SendOutputsRequest) GetSatPerKw() int64

func (*SendOutputsRequest) GetSpendUnconfirmed

func (m *SendOutputsRequest) GetSpendUnconfirmed() bool

func (*SendOutputsRequest) ProtoMessage

func (*SendOutputsRequest) ProtoMessage()

func (*SendOutputsRequest) Reset

func (m *SendOutputsRequest) Reset()

func (*SendOutputsRequest) String

func (m *SendOutputsRequest) String() string

func (*SendOutputsRequest) XXX_DiscardUnknown

func (m *SendOutputsRequest) XXX_DiscardUnknown()

func (*SendOutputsRequest) XXX_Marshal

func (m *SendOutputsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SendOutputsRequest) XXX_Merge

func (m *SendOutputsRequest) XXX_Merge(src proto.Message)

func (*SendOutputsRequest) XXX_Size

func (m *SendOutputsRequest) XXX_Size() int

func (*SendOutputsRequest) XXX_Unmarshal

func (m *SendOutputsRequest) XXX_Unmarshal(b []byte) error

type SendOutputsResponse

type SendOutputsResponse struct {
	//
	//The serialized transaction sent out on the network.
	RawTx                []byte   `protobuf:"bytes,1,opt,name=raw_tx,json=rawTx,proto3" json:"raw_tx,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SendOutputsResponse) Descriptor

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

func (*SendOutputsResponse) GetRawTx

func (m *SendOutputsResponse) GetRawTx() []byte

func (*SendOutputsResponse) ProtoMessage

func (*SendOutputsResponse) ProtoMessage()

func (*SendOutputsResponse) Reset

func (m *SendOutputsResponse) Reset()

func (*SendOutputsResponse) String

func (m *SendOutputsResponse) String() string

func (*SendOutputsResponse) XXX_DiscardUnknown

func (m *SendOutputsResponse) XXX_DiscardUnknown()

func (*SendOutputsResponse) XXX_Marshal

func (m *SendOutputsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SendOutputsResponse) XXX_Merge

func (m *SendOutputsResponse) XXX_Merge(src proto.Message)

func (*SendOutputsResponse) XXX_Size

func (m *SendOutputsResponse) XXX_Size() int

func (*SendOutputsResponse) XXX_Unmarshal

func (m *SendOutputsResponse) XXX_Unmarshal(b []byte) error

type Transaction

type Transaction struct {
	//
	//The raw serialized transaction.
	TxHex []byte `protobuf:"bytes,1,opt,name=tx_hex,json=txHex,proto3" json:"tx_hex,omitempty"`
	//
	//An optional label to save with the transaction. Limited to 500 characters.
	Label                string   `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Transaction) Descriptor

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

func (*Transaction) GetLabel

func (m *Transaction) GetLabel() string

func (*Transaction) GetTxHex

func (m *Transaction) GetTxHex() []byte

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) Reset

func (m *Transaction) Reset()

func (*Transaction) String

func (m *Transaction) String() string

func (*Transaction) XXX_DiscardUnknown

func (m *Transaction) XXX_DiscardUnknown()

func (*Transaction) XXX_Marshal

func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Transaction) XXX_Merge

func (m *Transaction) XXX_Merge(src proto.Message)

func (*Transaction) XXX_Size

func (m *Transaction) XXX_Size() int

func (*Transaction) XXX_Unmarshal

func (m *Transaction) XXX_Unmarshal(b []byte) error

type TxTemplate

type TxTemplate struct {
	//
	//An optional list of inputs to use. Every input must be an UTXO known to the
	//wallet that has not been locked before. The sum of all inputs must be
	//sufficiently greater than the sum of all outputs to pay a miner fee with the
	//fee rate specified in the parent message.
	//
	//If no inputs are specified, coin selection will be performed instead and
	//inputs of sufficient value will be added to the resulting PSBT.
	Inputs []*lnrpc.OutPoint `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs,omitempty"`
	//
	//A map of all addresses and the amounts to send to in the funded PSBT.
	Outputs              map[string]uint64 `` /* 156-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*TxTemplate) Descriptor

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

func (*TxTemplate) GetInputs

func (m *TxTemplate) GetInputs() []*lnrpc.OutPoint

func (*TxTemplate) GetOutputs

func (m *TxTemplate) GetOutputs() map[string]uint64

func (*TxTemplate) ProtoMessage

func (*TxTemplate) ProtoMessage()

func (*TxTemplate) Reset

func (m *TxTemplate) Reset()

func (*TxTemplate) String

func (m *TxTemplate) String() string

func (*TxTemplate) XXX_DiscardUnknown

func (m *TxTemplate) XXX_DiscardUnknown()

func (*TxTemplate) XXX_Marshal

func (m *TxTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxTemplate) XXX_Merge

func (m *TxTemplate) XXX_Merge(src proto.Message)

func (*TxTemplate) XXX_Size

func (m *TxTemplate) XXX_Size() int

func (*TxTemplate) XXX_Unmarshal

func (m *TxTemplate) XXX_Unmarshal(b []byte) error

type UnimplementedWalletKitServer

type UnimplementedWalletKitServer struct {
}

UnimplementedWalletKitServer can be embedded to have forward compatible implementations.

func (*UnimplementedWalletKitServer) BumpFee

func (*UnimplementedWalletKitServer) DeriveKey

func (*UnimplementedWalletKitServer) DeriveNextKey

func (*UnimplementedWalletKitServer) EstimateFee

func (*UnimplementedWalletKitServer) FinalizePsbt

func (*UnimplementedWalletKitServer) FundPsbt

func (*UnimplementedWalletKitServer) LabelTransaction

func (*UnimplementedWalletKitServer) LeaseOutput

func (*UnimplementedWalletKitServer) ListSweeps

func (*UnimplementedWalletKitServer) ListUnspent

func (*UnimplementedWalletKitServer) NextAddr

func (*UnimplementedWalletKitServer) PendingSweeps

func (*UnimplementedWalletKitServer) PublishTransaction

func (*UnimplementedWalletKitServer) PublishTransaction(ctx context.Context, req *Transaction) (*PublishResponse, error)

func (*UnimplementedWalletKitServer) ReleaseOutput

func (*UnimplementedWalletKitServer) SendOutputs

type UtxoLease

type UtxoLease struct {
	//
	//A 32 byte random ID that identifies the lease.
	Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The identifying outpoint of the output being leased.
	Outpoint *lnrpc.OutPoint `protobuf:"bytes,2,opt,name=outpoint,proto3" json:"outpoint,omitempty"`
	//
	//The absolute expiration of the output lease represented as a unix timestamp.
	Expiration           uint64   `protobuf:"varint,3,opt,name=expiration,proto3" json:"expiration,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UtxoLease) Descriptor

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

func (*UtxoLease) GetExpiration

func (m *UtxoLease) GetExpiration() uint64

func (*UtxoLease) GetId

func (m *UtxoLease) GetId() []byte

func (*UtxoLease) GetOutpoint

func (m *UtxoLease) GetOutpoint() *lnrpc.OutPoint

func (*UtxoLease) ProtoMessage

func (*UtxoLease) ProtoMessage()

func (*UtxoLease) Reset

func (m *UtxoLease) Reset()

func (*UtxoLease) String

func (m *UtxoLease) String() string

func (*UtxoLease) XXX_DiscardUnknown

func (m *UtxoLease) XXX_DiscardUnknown()

func (*UtxoLease) XXX_Marshal

func (m *UtxoLease) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UtxoLease) XXX_Merge

func (m *UtxoLease) XXX_Merge(src proto.Message)

func (*UtxoLease) XXX_Size

func (m *UtxoLease) XXX_Size() int

func (*UtxoLease) XXX_Unmarshal

func (m *UtxoLease) XXX_Unmarshal(b []byte) error

type WalletKitClient

type WalletKitClient interface {
	//
	//ListUnspent returns a list of all utxos spendable by the wallet with a
	//number of confirmations between the specified minimum and maximum.
	ListUnspent(ctx context.Context, in *ListUnspentRequest, opts ...grpc.CallOption) (*ListUnspentResponse, error)
	//
	//LeaseOutput locks an output to the given ID, preventing it from being
	//available for any future coin selection attempts. The absolute time of the
	//lock's expiration is returned. The expiration of the lock can be extended by
	//successive invocations of this RPC. Outputs can be unlocked before their
	//expiration through `ReleaseOutput`.
	LeaseOutput(ctx context.Context, in *LeaseOutputRequest, opts ...grpc.CallOption) (*LeaseOutputResponse, error)
	//
	//ReleaseOutput unlocks an output, allowing it to be available for coin
	//selection if it remains unspent. The ID should match the one used to
	//originally lock the output.
	ReleaseOutput(ctx context.Context, in *ReleaseOutputRequest, opts ...grpc.CallOption) (*ReleaseOutputResponse, error)
	//
	//DeriveNextKey attempts to derive the *next* key within the key family
	//(account in BIP43) specified. This method should return the next external
	//child within this branch.
	DeriveNextKey(ctx context.Context, in *KeyReq, opts ...grpc.CallOption) (*signrpc.KeyDescriptor, error)
	//
	//DeriveKey attempts to derive an arbitrary key specified by the passed
	//KeyLocator.
	DeriveKey(ctx context.Context, in *signrpc.KeyLocator, opts ...grpc.CallOption) (*signrpc.KeyDescriptor, error)
	//
	//NextAddr returns the next unused address within the wallet.
	NextAddr(ctx context.Context, in *AddrRequest, opts ...grpc.CallOption) (*AddrResponse, error)
	//
	//PublishTransaction attempts to publish the passed transaction to the
	//network. Once this returns without an error, the wallet will continually
	//attempt to re-broadcast the transaction on start up, until it enters the
	//chain.
	PublishTransaction(ctx context.Context, in *Transaction, opts ...grpc.CallOption) (*PublishResponse, error)
	//
	//SendOutputs is similar to the existing sendmany call in Bitcoind, and
	//allows the caller to create a transaction that sends to several outputs at
	//once. This is ideal when wanting to batch create a set of transactions.
	SendOutputs(ctx context.Context, in *SendOutputsRequest, opts ...grpc.CallOption) (*SendOutputsResponse, error)
	//
	//EstimateFee attempts to query the internal fee estimator of the wallet to
	//determine the fee (in sat/kw) to attach to a transaction in order to
	//achieve the confirmation target.
	EstimateFee(ctx context.Context, in *EstimateFeeRequest, opts ...grpc.CallOption) (*EstimateFeeResponse, error)
	//
	//PendingSweeps returns lists of on-chain outputs that lnd is currently
	//attempting to sweep within its central batching engine. Outputs with similar
	//fee rates are batched together in order to sweep them within a single
	//transaction.
	//
	//NOTE: Some of the fields within PendingSweepsRequest are not guaranteed to
	//remain supported. This is an advanced API that depends on the internals of
	//the UtxoSweeper, so things may change.
	PendingSweeps(ctx context.Context, in *PendingSweepsRequest, opts ...grpc.CallOption) (*PendingSweepsResponse, error)
	//
	//BumpFee bumps the fee of an arbitrary input within a transaction. This RPC
	//takes a different approach than bitcoind's bumpfee command. lnd has a
	//central batching engine in which inputs with similar fee rates are batched
	//together to save on transaction fees. Due to this, we cannot rely on
	//bumping the fee on a specific transaction, since transactions can change at
	//any point with the addition of new inputs. The list of inputs that
	//currently exist within lnd's central batching engine can be retrieved
	//through the PendingSweeps RPC.
	//
	//When bumping the fee of an input that currently exists within lnd's central
	//batching engine, a higher fee transaction will be created that replaces the
	//lower fee transaction through the Replace-By-Fee (RBF) policy. If it
	//
	//This RPC also serves useful when wanting to perform a Child-Pays-For-Parent
	//(CPFP), where the child transaction pays for its parent's fee. This can be
	//done by specifying an outpoint within the low fee transaction that is under
	//the control of the wallet.
	//
	//The fee preference can be expressed either as a specific fee rate or a delta
	//of blocks in which the output should be swept on-chain within. If a fee
	//preference is not explicitly specified, then an error is returned.
	//
	//Note that this RPC currently doesn't perform any validation checks on the
	//fee preference being provided. For now, the responsibility of ensuring that
	//the new fee preference is sufficient is delegated to the user.
	BumpFee(ctx context.Context, in *BumpFeeRequest, opts ...grpc.CallOption) (*BumpFeeResponse, error)
	//
	//ListSweeps returns a list of the sweep transactions our node has produced.
	//Note that these sweeps may not be confirmed yet, as we record sweeps on
	//broadcast, not confirmation.
	ListSweeps(ctx context.Context, in *ListSweepsRequest, opts ...grpc.CallOption) (*ListSweepsResponse, error)
	//
	//LabelTransaction adds a label to a transaction. If the transaction already
	//has a label the call will fail unless the overwrite bool is set. This will
	//overwrite the exiting transaction label. Labels must not be empty, and
	//cannot exceed 500 characters.
	LabelTransaction(ctx context.Context, in *LabelTransactionRequest, opts ...grpc.CallOption) (*LabelTransactionResponse, error)
	//
	//FundPsbt creates a fully populated PSBT that contains enough inputs to fund
	//the outputs specified in the template. There are two ways of specifying a
	//template: Either by passing in a PSBT with at least one output declared or
	//by passing in a raw TxTemplate message.
	//
	//If there are no inputs specified in the template, coin selection is
	//performed automatically. If the template does contain any inputs, it is
	//assumed that full coin selection happened externally and no additional
	//inputs are added. If the specified inputs aren't enough to fund the outputs
	//with the given fee rate, an error is returned.
	//
	//After either selecting or verifying the inputs, all input UTXOs are locked
	//with an internal app ID.
	//
	//NOTE: If this method returns without an error, it is the caller's
	//responsibility to either spend the locked UTXOs (by finalizing and then
	//publishing the transaction) or to unlock/release the locked UTXOs in case of
	//an error on the caller's side.
	FundPsbt(ctx context.Context, in *FundPsbtRequest, opts ...grpc.CallOption) (*FundPsbtResponse, error)
	//
	//FinalizePsbt expects a partial transaction with all inputs and outputs fully
	//declared and tries to sign all inputs that belong to the wallet. Lnd must be
	//the last signer of the transaction. That means, if there are any unsigned
	//non-witness inputs or inputs without UTXO information attached or inputs
	//without witness data that do not belong to lnd's wallet, this method will
	//fail. If no error is returned, the PSBT is ready to be extracted and the
	//final TX within to be broadcast.
	//
	//NOTE: This method does NOT publish the transaction once finalized. It is the
	//caller's responsibility to either publish the transaction on success or
	//unlock/release any locked UTXOs in case of an error in this method.
	FinalizePsbt(ctx context.Context, in *FinalizePsbtRequest, opts ...grpc.CallOption) (*FinalizePsbtResponse, error)
}

WalletKitClient is the client API for WalletKit service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewWalletKitClient

func NewWalletKitClient(cc *grpc.ClientConn) WalletKitClient

type WalletKitServer

type WalletKitServer interface {
	//
	//ListUnspent returns a list of all utxos spendable by the wallet with a
	//number of confirmations between the specified minimum and maximum.
	ListUnspent(context.Context, *ListUnspentRequest) (*ListUnspentResponse, error)
	//
	//LeaseOutput locks an output to the given ID, preventing it from being
	//available for any future coin selection attempts. The absolute time of the
	//lock's expiration is returned. The expiration of the lock can be extended by
	//successive invocations of this RPC. Outputs can be unlocked before their
	//expiration through `ReleaseOutput`.
	LeaseOutput(context.Context, *LeaseOutputRequest) (*LeaseOutputResponse, error)
	//
	//ReleaseOutput unlocks an output, allowing it to be available for coin
	//selection if it remains unspent. The ID should match the one used to
	//originally lock the output.
	ReleaseOutput(context.Context, *ReleaseOutputRequest) (*ReleaseOutputResponse, error)
	//
	//DeriveNextKey attempts to derive the *next* key within the key family
	//(account in BIP43) specified. This method should return the next external
	//child within this branch.
	DeriveNextKey(context.Context, *KeyReq) (*signrpc.KeyDescriptor, error)
	//
	//DeriveKey attempts to derive an arbitrary key specified by the passed
	//KeyLocator.
	DeriveKey(context.Context, *signrpc.KeyLocator) (*signrpc.KeyDescriptor, error)
	//
	//NextAddr returns the next unused address within the wallet.
	NextAddr(context.Context, *AddrRequest) (*AddrResponse, error)
	//
	//PublishTransaction attempts to publish the passed transaction to the
	//network. Once this returns without an error, the wallet will continually
	//attempt to re-broadcast the transaction on start up, until it enters the
	//chain.
	PublishTransaction(context.Context, *Transaction) (*PublishResponse, error)
	//
	//SendOutputs is similar to the existing sendmany call in Bitcoind, and
	//allows the caller to create a transaction that sends to several outputs at
	//once. This is ideal when wanting to batch create a set of transactions.
	SendOutputs(context.Context, *SendOutputsRequest) (*SendOutputsResponse, error)
	//
	//EstimateFee attempts to query the internal fee estimator of the wallet to
	//determine the fee (in sat/kw) to attach to a transaction in order to
	//achieve the confirmation target.
	EstimateFee(context.Context, *EstimateFeeRequest) (*EstimateFeeResponse, error)
	//
	//PendingSweeps returns lists of on-chain outputs that lnd is currently
	//attempting to sweep within its central batching engine. Outputs with similar
	//fee rates are batched together in order to sweep them within a single
	//transaction.
	//
	//NOTE: Some of the fields within PendingSweepsRequest are not guaranteed to
	//remain supported. This is an advanced API that depends on the internals of
	//the UtxoSweeper, so things may change.
	PendingSweeps(context.Context, *PendingSweepsRequest) (*PendingSweepsResponse, error)
	//
	//BumpFee bumps the fee of an arbitrary input within a transaction. This RPC
	//takes a different approach than bitcoind's bumpfee command. lnd has a
	//central batching engine in which inputs with similar fee rates are batched
	//together to save on transaction fees. Due to this, we cannot rely on
	//bumping the fee on a specific transaction, since transactions can change at
	//any point with the addition of new inputs. The list of inputs that
	//currently exist within lnd's central batching engine can be retrieved
	//through the PendingSweeps RPC.
	//
	//When bumping the fee of an input that currently exists within lnd's central
	//batching engine, a higher fee transaction will be created that replaces the
	//lower fee transaction through the Replace-By-Fee (RBF) policy. If it
	//
	//This RPC also serves useful when wanting to perform a Child-Pays-For-Parent
	//(CPFP), where the child transaction pays for its parent's fee. This can be
	//done by specifying an outpoint within the low fee transaction that is under
	//the control of the wallet.
	//
	//The fee preference can be expressed either as a specific fee rate or a delta
	//of blocks in which the output should be swept on-chain within. If a fee
	//preference is not explicitly specified, then an error is returned.
	//
	//Note that this RPC currently doesn't perform any validation checks on the
	//fee preference being provided. For now, the responsibility of ensuring that
	//the new fee preference is sufficient is delegated to the user.
	BumpFee(context.Context, *BumpFeeRequest) (*BumpFeeResponse, error)
	//
	//ListSweeps returns a list of the sweep transactions our node has produced.
	//Note that these sweeps may not be confirmed yet, as we record sweeps on
	//broadcast, not confirmation.
	ListSweeps(context.Context, *ListSweepsRequest) (*ListSweepsResponse, error)
	//
	//LabelTransaction adds a label to a transaction. If the transaction already
	//has a label the call will fail unless the overwrite bool is set. This will
	//overwrite the exiting transaction label. Labels must not be empty, and
	//cannot exceed 500 characters.
	LabelTransaction(context.Context, *LabelTransactionRequest) (*LabelTransactionResponse, error)
	//
	//FundPsbt creates a fully populated PSBT that contains enough inputs to fund
	//the outputs specified in the template. There are two ways of specifying a
	//template: Either by passing in a PSBT with at least one output declared or
	//by passing in a raw TxTemplate message.
	//
	//If there are no inputs specified in the template, coin selection is
	//performed automatically. If the template does contain any inputs, it is
	//assumed that full coin selection happened externally and no additional
	//inputs are added. If the specified inputs aren't enough to fund the outputs
	//with the given fee rate, an error is returned.
	//
	//After either selecting or verifying the inputs, all input UTXOs are locked
	//with an internal app ID.
	//
	//NOTE: If this method returns without an error, it is the caller's
	//responsibility to either spend the locked UTXOs (by finalizing and then
	//publishing the transaction) or to unlock/release the locked UTXOs in case of
	//an error on the caller's side.
	FundPsbt(context.Context, *FundPsbtRequest) (*FundPsbtResponse, error)
	//
	//FinalizePsbt expects a partial transaction with all inputs and outputs fully
	//declared and tries to sign all inputs that belong to the wallet. Lnd must be
	//the last signer of the transaction. That means, if there are any unsigned
	//non-witness inputs or inputs without UTXO information attached or inputs
	//without witness data that do not belong to lnd's wallet, this method will
	//fail. If no error is returned, the PSBT is ready to be extracted and the
	//final TX within to be broadcast.
	//
	//NOTE: This method does NOT publish the transaction once finalized. It is the
	//caller's responsibility to either publish the transaction on success or
	//unlock/release any locked UTXOs in case of an error in this method.
	FinalizePsbt(context.Context, *FinalizePsbtRequest) (*FinalizePsbtResponse, error)
}

WalletKitServer is the server API for WalletKit service.

type WitnessType

type WitnessType int32
const (
	WitnessType_UNKNOWN_WITNESS WitnessType = 0
	//
	//A witness that allows us to spend the output of a commitment transaction
	//after a relative lock-time lockout.
	WitnessType_COMMITMENT_TIME_LOCK WitnessType = 1
	//
	//A witness that allows us to spend a settled no-delay output immediately on a
	//counterparty's commitment transaction.
	WitnessType_COMMITMENT_NO_DELAY WitnessType = 2
	//
	//A witness that allows us to sweep the settled output of a malicious
	//counterparty's who broadcasts a revoked commitment transaction.
	WitnessType_COMMITMENT_REVOKE WitnessType = 3
	//
	//A witness that allows us to sweep an HTLC which we offered to the remote
	//party in the case that they broadcast a revoked commitment state.
	WitnessType_HTLC_OFFERED_REVOKE WitnessType = 4
	//
	//A witness that allows us to sweep an HTLC output sent to us in the case that
	//the remote party broadcasts a revoked commitment state.
	WitnessType_HTLC_ACCEPTED_REVOKE WitnessType = 5
	//
	//A witness that allows us to sweep an HTLC output that we extended to a
	//party, but was never fulfilled.  This HTLC output isn't directly on the
	//commitment transaction, but is the result of a confirmed second-level HTLC
	//transaction. As a result, we can only spend this after a CSV delay.
	WitnessType_HTLC_OFFERED_TIMEOUT_SECOND_LEVEL WitnessType = 6
	//
	//A witness that allows us to sweep an HTLC output that was offered to us, and
	//for which we have a payment preimage. This HTLC output isn't directly on our
	//commitment transaction, but is the result of confirmed second-level HTLC
	//transaction. As a result, we can only spend this after a CSV delay.
	WitnessType_HTLC_ACCEPTED_SUCCESS_SECOND_LEVEL WitnessType = 7
	//
	//A witness that allows us to sweep an HTLC that we offered to the remote
	//party which lies in the commitment transaction of the remote party. We can
	//spend this output after the absolute CLTV timeout of the HTLC as passed.
	WitnessType_HTLC_OFFERED_REMOTE_TIMEOUT WitnessType = 8
	//
	//A witness that allows us to sweep an HTLC that was offered to us by the
	//remote party. We use this witness in the case that the remote party goes to
	//chain, and we know the pre-image to the HTLC. We can sweep this without any
	//additional timeout.
	WitnessType_HTLC_ACCEPTED_REMOTE_SUCCESS WitnessType = 9
	//
	//A witness that allows us to sweep an HTLC from the remote party's commitment
	//transaction in the case that the broadcast a revoked commitment, but then
	//also immediately attempt to go to the second level to claim the HTLC.
	WitnessType_HTLC_SECOND_LEVEL_REVOKE WitnessType = 10
	//
	//A witness type that allows us to spend a regular p2wkh output that's sent to
	//an output which is under complete control of the backing wallet.
	WitnessType_WITNESS_KEY_HASH WitnessType = 11
	//
	//A witness type that allows us to sweep an output that sends to a nested P2SH
	//script that pays to a key solely under our control.
	WitnessType_NESTED_WITNESS_KEY_HASH WitnessType = 12
	//
	//A witness type that allows us to spend our anchor on the commitment
	//transaction.
	WitnessType_COMMITMENT_ANCHOR WitnessType = 13
)

func (WitnessType) EnumDescriptor

func (WitnessType) EnumDescriptor() ([]byte, []int)

func (WitnessType) String

func (x WitnessType) String() string

Jump to

Keyboard shortcuts

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