boltzrpc

package
v2.3.5-0...-2fac4e2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package boltzrpc is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	Boltz_GetInfo_FullMethodName                = "/boltzrpc.Boltz/GetInfo"
	Boltz_GetServiceInfo_FullMethodName         = "/boltzrpc.Boltz/GetServiceInfo"
	Boltz_GetPairInfo_FullMethodName            = "/boltzrpc.Boltz/GetPairInfo"
	Boltz_GetPairs_FullMethodName               = "/boltzrpc.Boltz/GetPairs"
	Boltz_ListSwaps_FullMethodName              = "/boltzrpc.Boltz/ListSwaps"
	Boltz_GetStats_FullMethodName               = "/boltzrpc.Boltz/GetStats"
	Boltz_RefundSwap_FullMethodName             = "/boltzrpc.Boltz/RefundSwap"
	Boltz_ClaimSwaps_FullMethodName             = "/boltzrpc.Boltz/ClaimSwaps"
	Boltz_GetSwapInfo_FullMethodName            = "/boltzrpc.Boltz/GetSwapInfo"
	Boltz_GetSwapInfoStream_FullMethodName      = "/boltzrpc.Boltz/GetSwapInfoStream"
	Boltz_Deposit_FullMethodName                = "/boltzrpc.Boltz/Deposit"
	Boltz_CreateSwap_FullMethodName             = "/boltzrpc.Boltz/CreateSwap"
	Boltz_CreateChannel_FullMethodName          = "/boltzrpc.Boltz/CreateChannel"
	Boltz_CreateReverseSwap_FullMethodName      = "/boltzrpc.Boltz/CreateReverseSwap"
	Boltz_CreateChainSwap_FullMethodName        = "/boltzrpc.Boltz/CreateChainSwap"
	Boltz_CreateWallet_FullMethodName           = "/boltzrpc.Boltz/CreateWallet"
	Boltz_ImportWallet_FullMethodName           = "/boltzrpc.Boltz/ImportWallet"
	Boltz_SetSubaccount_FullMethodName          = "/boltzrpc.Boltz/SetSubaccount"
	Boltz_GetSubaccounts_FullMethodName         = "/boltzrpc.Boltz/GetSubaccounts"
	Boltz_GetWallets_FullMethodName             = "/boltzrpc.Boltz/GetWallets"
	Boltz_GetWallet_FullMethodName              = "/boltzrpc.Boltz/GetWallet"
	Boltz_GetWalletSendFee_FullMethodName       = "/boltzrpc.Boltz/GetWalletSendFee"
	Boltz_ListWalletTransactions_FullMethodName = "/boltzrpc.Boltz/ListWalletTransactions"
	Boltz_GetWalletCredentials_FullMethodName   = "/boltzrpc.Boltz/GetWalletCredentials"
	Boltz_RemoveWallet_FullMethodName           = "/boltzrpc.Boltz/RemoveWallet"
	Boltz_WalletSend_FullMethodName             = "/boltzrpc.Boltz/WalletSend"
	Boltz_WalletReceive_FullMethodName          = "/boltzrpc.Boltz/WalletReceive"
	Boltz_Stop_FullMethodName                   = "/boltzrpc.Boltz/Stop"
	Boltz_Unlock_FullMethodName                 = "/boltzrpc.Boltz/Unlock"
	Boltz_VerifyWalletPassword_FullMethodName   = "/boltzrpc.Boltz/VerifyWalletPassword"
	Boltz_ChangeWalletPassword_FullMethodName   = "/boltzrpc.Boltz/ChangeWalletPassword"
	Boltz_CreateTenant_FullMethodName           = "/boltzrpc.Boltz/CreateTenant"
	Boltz_ListTenants_FullMethodName            = "/boltzrpc.Boltz/ListTenants"
	Boltz_GetTenant_FullMethodName              = "/boltzrpc.Boltz/GetTenant"
	Boltz_BakeMacaroon_FullMethodName           = "/boltzrpc.Boltz/BakeMacaroon"
)

Variables

View Source
var (
	MacaroonAction_name = map[int32]string{
		0: "READ",
		1: "WRITE",
	}
	MacaroonAction_value = map[string]int32{
		"READ":  0,
		"WRITE": 1,
	}
)

Enum value maps for MacaroonAction.

View Source
var (
	SwapState_name = map[int32]string{
		0: "PENDING",
		1: "SUCCESSFUL",
		2: "ERROR",
		3: "SERVER_ERROR",
		4: "REFUNDED",
		5: "ABANDONED",
	}
	SwapState_value = map[string]int32{
		"PENDING":      0,
		"SUCCESSFUL":   1,
		"ERROR":        2,
		"SERVER_ERROR": 3,
		"REFUNDED":     4,
		"ABANDONED":    5,
	}
)

Enum value maps for SwapState.

View Source
var (
	Currency_name = map[int32]string{
		0: "BTC",
		1: "LBTC",
	}
	Currency_value = map[string]int32{
		"BTC":  0,
		"LBTC": 1,
	}
)

Enum value maps for Currency.

View Source
var (
	SwapType_name = map[int32]string{
		0: "SUBMARINE",
		1: "REVERSE",
		2: "CHAIN",
	}
	SwapType_value = map[string]int32{
		"SUBMARINE": 0,
		"REVERSE":   1,
		"CHAIN":     2,
	}
)

Enum value maps for SwapType.

View Source
var (
	IncludeSwaps_name = map[int32]string{
		0: "ALL",
		1: "MANUAL",
		2: "AUTO",
	}
	IncludeSwaps_value = map[string]int32{
		"ALL":    0,
		"MANUAL": 1,
		"AUTO":   2,
	}
)

Enum value maps for IncludeSwaps.

View Source
var (
	TransactionType_name = map[int32]string{
		0: "UNKNOWN",
		1: "LOCKUP",
		2: "REFUND",
		3: "CLAIM",
		4: "CONSOLIDATION",
	}
	TransactionType_value = map[string]int32{
		"UNKNOWN":       0,
		"LOCKUP":        1,
		"REFUND":        2,
		"CLAIM":         3,
		"CONSOLIDATION": 4,
	}
)

Enum value maps for TransactionType.

View Source
var Boltz_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "boltzrpc.Boltz",
	HandlerType: (*BoltzServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetInfo",
			Handler:    _Boltz_GetInfo_Handler,
		},
		{
			MethodName: "GetServiceInfo",
			Handler:    _Boltz_GetServiceInfo_Handler,
		},
		{
			MethodName: "GetPairInfo",
			Handler:    _Boltz_GetPairInfo_Handler,
		},
		{
			MethodName: "GetPairs",
			Handler:    _Boltz_GetPairs_Handler,
		},
		{
			MethodName: "ListSwaps",
			Handler:    _Boltz_ListSwaps_Handler,
		},
		{
			MethodName: "GetStats",
			Handler:    _Boltz_GetStats_Handler,
		},
		{
			MethodName: "RefundSwap",
			Handler:    _Boltz_RefundSwap_Handler,
		},
		{
			MethodName: "ClaimSwaps",
			Handler:    _Boltz_ClaimSwaps_Handler,
		},
		{
			MethodName: "GetSwapInfo",
			Handler:    _Boltz_GetSwapInfo_Handler,
		},
		{
			MethodName: "Deposit",
			Handler:    _Boltz_Deposit_Handler,
		},
		{
			MethodName: "CreateSwap",
			Handler:    _Boltz_CreateSwap_Handler,
		},
		{
			MethodName: "CreateChannel",
			Handler:    _Boltz_CreateChannel_Handler,
		},
		{
			MethodName: "CreateReverseSwap",
			Handler:    _Boltz_CreateReverseSwap_Handler,
		},
		{
			MethodName: "CreateChainSwap",
			Handler:    _Boltz_CreateChainSwap_Handler,
		},
		{
			MethodName: "CreateWallet",
			Handler:    _Boltz_CreateWallet_Handler,
		},
		{
			MethodName: "ImportWallet",
			Handler:    _Boltz_ImportWallet_Handler,
		},
		{
			MethodName: "SetSubaccount",
			Handler:    _Boltz_SetSubaccount_Handler,
		},
		{
			MethodName: "GetSubaccounts",
			Handler:    _Boltz_GetSubaccounts_Handler,
		},
		{
			MethodName: "GetWallets",
			Handler:    _Boltz_GetWallets_Handler,
		},
		{
			MethodName: "GetWallet",
			Handler:    _Boltz_GetWallet_Handler,
		},
		{
			MethodName: "GetWalletSendFee",
			Handler:    _Boltz_GetWalletSendFee_Handler,
		},
		{
			MethodName: "ListWalletTransactions",
			Handler:    _Boltz_ListWalletTransactions_Handler,
		},
		{
			MethodName: "GetWalletCredentials",
			Handler:    _Boltz_GetWalletCredentials_Handler,
		},
		{
			MethodName: "RemoveWallet",
			Handler:    _Boltz_RemoveWallet_Handler,
		},
		{
			MethodName: "WalletSend",
			Handler:    _Boltz_WalletSend_Handler,
		},
		{
			MethodName: "WalletReceive",
			Handler:    _Boltz_WalletReceive_Handler,
		},
		{
			MethodName: "Stop",
			Handler:    _Boltz_Stop_Handler,
		},
		{
			MethodName: "Unlock",
			Handler:    _Boltz_Unlock_Handler,
		},
		{
			MethodName: "VerifyWalletPassword",
			Handler:    _Boltz_VerifyWalletPassword_Handler,
		},
		{
			MethodName: "ChangeWalletPassword",
			Handler:    _Boltz_ChangeWalletPassword_Handler,
		},
		{
			MethodName: "CreateTenant",
			Handler:    _Boltz_CreateTenant_Handler,
		},
		{
			MethodName: "ListTenants",
			Handler:    _Boltz_ListTenants_Handler,
		},
		{
			MethodName: "GetTenant",
			Handler:    _Boltz_GetTenant_Handler,
		},
		{
			MethodName: "BakeMacaroon",
			Handler:    _Boltz_BakeMacaroon_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetSwapInfoStream",
			Handler:       _Boltz_GetSwapInfoStream_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "boltzrpc.proto",
}

Boltz_ServiceDesc is the grpc.ServiceDesc for Boltz service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_boltzrpc_proto protoreflect.FileDescriptor

Functions

func RegisterBoltzHandler

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

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

func RegisterBoltzHandlerClient

func RegisterBoltzHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BoltzClient) error

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

func RegisterBoltzHandlerFromEndpoint

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

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

func RegisterBoltzHandlerServer

func RegisterBoltzHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BoltzServer) error

RegisterBoltzHandlerServer registers the http handlers for service Boltz to "mux". UnaryRPC :call BoltzServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterBoltzHandlerFromEndpoint instead.

func RegisterBoltzServer

func RegisterBoltzServer(s grpc.ServiceRegistrar, srv BoltzServer)

Types

type AnySwapInfo

type AnySwapInfo struct {
	Id     string    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type   SwapType  `protobuf:"varint,2,opt,name=type,proto3,enum=boltzrpc.SwapType" json:"type,omitempty"`
	Pair   *Pair     `protobuf:"bytes,3,opt,name=pair,proto3" json:"pair,omitempty"`
	State  SwapState `protobuf:"varint,4,opt,name=state,proto3,enum=boltzrpc.SwapState" json:"state,omitempty"`
	Error  *string   `protobuf:"bytes,5,opt,name=error,proto3,oneof" json:"error,omitempty"`
	Status string    `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"`
	// The expected amount to be sent to the lockup address for submarine and chain swaps and
	// the invoice amount for reverse swaps.
	FromAmount uint64 `protobuf:"varint,7,opt,name=from_amount,json=fromAmount,proto3" json:"from_amount,omitempty"`
	// `from_amount` minus the service and network fee.
	ToAmount   uint64  `protobuf:"varint,13,opt,name=to_amount,json=toAmount,proto3" json:"to_amount,omitempty"`
	CreatedAt  int64   `protobuf:"varint,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	ServiceFee *uint64 `protobuf:"varint,9,opt,name=service_fee,json=serviceFee,proto3,oneof" json:"service_fee,omitempty"`
	// inclues the routing fee for reverse swaps
	OnchainFee *uint64 `protobuf:"varint,10,opt,name=onchain_fee,json=onchainFee,proto3,oneof" json:"onchain_fee,omitempty"`
	IsAuto     bool    `protobuf:"varint,11,opt,name=is_auto,json=isAuto,proto3" json:"is_auto,omitempty"`
	TenantId   uint64  `protobuf:"varint,12,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AnySwapInfo) Descriptor deprecated

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

Deprecated: Use AnySwapInfo.ProtoReflect.Descriptor instead.

func (*AnySwapInfo) GetCreatedAt

func (x *AnySwapInfo) GetCreatedAt() int64

func (*AnySwapInfo) GetError

func (x *AnySwapInfo) GetError() string

func (*AnySwapInfo) GetFromAmount

func (x *AnySwapInfo) GetFromAmount() uint64

func (*AnySwapInfo) GetId

func (x *AnySwapInfo) GetId() string

func (*AnySwapInfo) GetIsAuto

func (x *AnySwapInfo) GetIsAuto() bool

func (*AnySwapInfo) GetOnchainFee

func (x *AnySwapInfo) GetOnchainFee() uint64

func (*AnySwapInfo) GetPair

func (x *AnySwapInfo) GetPair() *Pair

func (*AnySwapInfo) GetServiceFee

func (x *AnySwapInfo) GetServiceFee() uint64

func (*AnySwapInfo) GetState

func (x *AnySwapInfo) GetState() SwapState

func (*AnySwapInfo) GetStatus

func (x *AnySwapInfo) GetStatus() string

func (*AnySwapInfo) GetTenantId

func (x *AnySwapInfo) GetTenantId() uint64

func (*AnySwapInfo) GetToAmount

func (x *AnySwapInfo) GetToAmount() uint64

func (*AnySwapInfo) GetType

func (x *AnySwapInfo) GetType() SwapType

func (*AnySwapInfo) ProtoMessage

func (*AnySwapInfo) ProtoMessage()

func (*AnySwapInfo) ProtoReflect

func (x *AnySwapInfo) ProtoReflect() protoreflect.Message

func (*AnySwapInfo) Reset

func (x *AnySwapInfo) Reset()

func (*AnySwapInfo) String

func (x *AnySwapInfo) String() string

type BakeMacaroonRequest

type BakeMacaroonRequest struct {
	TenantId    *uint64                `protobuf:"varint,1,opt,name=tenant_id,json=tenantId,proto3,oneof" json:"tenant_id,omitempty"`
	Permissions []*MacaroonPermissions `protobuf:"bytes,2,rep,name=permissions,proto3" json:"permissions,omitempty"`
	// contains filtered or unexported fields
}

func (*BakeMacaroonRequest) Descriptor deprecated

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

Deprecated: Use BakeMacaroonRequest.ProtoReflect.Descriptor instead.

func (*BakeMacaroonRequest) GetPermissions

func (x *BakeMacaroonRequest) GetPermissions() []*MacaroonPermissions

func (*BakeMacaroonRequest) GetTenantId

func (x *BakeMacaroonRequest) GetTenantId() uint64

func (*BakeMacaroonRequest) ProtoMessage

func (*BakeMacaroonRequest) ProtoMessage()

func (*BakeMacaroonRequest) ProtoReflect

func (x *BakeMacaroonRequest) ProtoReflect() protoreflect.Message

func (*BakeMacaroonRequest) Reset

func (x *BakeMacaroonRequest) Reset()

func (*BakeMacaroonRequest) String

func (x *BakeMacaroonRequest) String() string

type BakeMacaroonResponse

type BakeMacaroonResponse struct {
	Macaroon string `protobuf:"bytes,1,opt,name=macaroon,proto3" json:"macaroon,omitempty"`
	// contains filtered or unexported fields
}

func (*BakeMacaroonResponse) Descriptor deprecated

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

Deprecated: Use BakeMacaroonResponse.ProtoReflect.Descriptor instead.

func (*BakeMacaroonResponse) GetMacaroon

func (x *BakeMacaroonResponse) GetMacaroon() string

func (*BakeMacaroonResponse) ProtoMessage

func (*BakeMacaroonResponse) ProtoMessage()

func (*BakeMacaroonResponse) ProtoReflect

func (x *BakeMacaroonResponse) ProtoReflect() protoreflect.Message

func (*BakeMacaroonResponse) Reset

func (x *BakeMacaroonResponse) Reset()

func (*BakeMacaroonResponse) String

func (x *BakeMacaroonResponse) String() string

type Balance

type Balance struct {
	Total       uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Confirmed   uint64 `protobuf:"varint,2,opt,name=confirmed,proto3" json:"confirmed,omitempty"`
	Unconfirmed uint64 `protobuf:"varint,3,opt,name=unconfirmed,proto3" json:"unconfirmed,omitempty"`
	// contains filtered or unexported fields
}

func (*Balance) Descriptor deprecated

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

Deprecated: Use Balance.ProtoReflect.Descriptor instead.

func (*Balance) GetConfirmed

func (x *Balance) GetConfirmed() uint64

func (*Balance) GetTotal

func (x *Balance) GetTotal() uint64

func (*Balance) GetUnconfirmed

func (x *Balance) GetUnconfirmed() uint64

func (*Balance) ProtoMessage

func (*Balance) ProtoMessage()

func (*Balance) ProtoReflect

func (x *Balance) ProtoReflect() protoreflect.Message

func (*Balance) Reset

func (x *Balance) Reset()

func (*Balance) String

func (x *Balance) String() string

type BlockHeights

type BlockHeights struct {
	Btc    uint32  `protobuf:"varint,1,opt,name=btc,proto3" json:"btc,omitempty"`
	Liquid *uint32 `protobuf:"varint,2,opt,name=liquid,proto3,oneof" json:"liquid,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockHeights) Descriptor deprecated

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

Deprecated: Use BlockHeights.ProtoReflect.Descriptor instead.

func (*BlockHeights) GetBtc

func (x *BlockHeights) GetBtc() uint32

func (*BlockHeights) GetLiquid

func (x *BlockHeights) GetLiquid() uint32

func (*BlockHeights) ProtoMessage

func (*BlockHeights) ProtoMessage()

func (*BlockHeights) ProtoReflect

func (x *BlockHeights) ProtoReflect() protoreflect.Message

func (*BlockHeights) Reset

func (x *BlockHeights) Reset()

func (*BlockHeights) String

func (x *BlockHeights) String() string

type BoltzClient

type BoltzClient interface {
	// Gets general information about the daemon like the chain of the lightning node it is connected to
	// and the IDs of pending swaps.
	GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoResponse, error)
	// Deprecated: Do not use.
	//
	// Fetches the latest limits and fees from the Boltz backend API it is connected to.
	GetServiceInfo(ctx context.Context, in *GetServiceInfoRequest, opts ...grpc.CallOption) (*GetServiceInfoResponse, error)
	// Fetches information about a specific pair for a chain swap.
	GetPairInfo(ctx context.Context, in *GetPairInfoRequest, opts ...grpc.CallOption) (*PairInfo, error)
	// Fetches all available pairs for submarine and reverse swaps.
	GetPairs(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetPairsResponse, error)
	// Returns a list of all swaps, reverse swaps, and chain swaps in the database.
	ListSwaps(ctx context.Context, in *ListSwapsRequest, opts ...grpc.CallOption) (*ListSwapsResponse, error)
	// Returns stats of all swaps, reverse swaps, and chain swaps in the database.
	GetStats(ctx context.Context, in *GetStatsRequest, opts ...grpc.CallOption) (*GetStatsResponse, error)
	// Refund a failed swap manually.
	// This is only required when no refund address has been set and the swap does not have an associated wallet.
	RefundSwap(ctx context.Context, in *RefundSwapRequest, opts ...grpc.CallOption) (*GetSwapInfoResponse, error)
	// Claim swaps manually.
	// This is only required when no claim address has been set and the swap does not have an associated wallet.
	ClaimSwaps(ctx context.Context, in *ClaimSwapsRequest, opts ...grpc.CallOption) (*ClaimSwapsResponse, error)
	// Gets all available information about a swap from the database.
	GetSwapInfo(ctx context.Context, in *GetSwapInfoRequest, opts ...grpc.CallOption) (*GetSwapInfoResponse, error)
	// Returns the entire history of the swap if is still pending and streams updates in real time.
	// If the swap id is empty or "*" updates for all swaps will be streamed.
	GetSwapInfoStream(ctx context.Context, in *GetSwapInfoRequest, opts ...grpc.CallOption) (Boltz_GetSwapInfoStreamClient, error)
	// Deprecated: Do not use.
	//
	// This is a wrapper for channel creation swaps. The daemon only returns the ID, timeout block height and lockup address.
	// The Boltz backend takes care of the rest. When an amount of onchain coins that is in the limits is sent to the address
	// before the timeout block height, the daemon creates a new lightning invoice, sends it to the Boltz backend which
	// will try to pay it and if that is not possible, create a new channel to make the swap succeed.
	Deposit(ctx context.Context, in *DepositRequest, opts ...grpc.CallOption) (*DepositResponse, error)
	// Creates a new swap from onchain to lightning.
	CreateSwap(ctx context.Context, in *CreateSwapRequest, opts ...grpc.CallOption) (*CreateSwapResponse, error)
	// Deprecated: Do not use.
	//
	// Create a new swap from onchain to a new lightning channel. The daemon will only accept the invoice payment if the HTLCs
	// is coming trough a new channel channel opened by Boltz.
	CreateChannel(ctx context.Context, in *CreateChannelRequest, opts ...grpc.CallOption) (*CreateSwapResponse, error)
	// Creates a new reverse swap from lightning to onchain. If `accept_zero_conf` is set to true in the request, the daemon
	// will not wait until the lockup transaction from Boltz is confirmed in a block, but will claim it instantly.
	CreateReverseSwap(ctx context.Context, in *CreateReverseSwapRequest, opts ...grpc.CallOption) (*CreateReverseSwapResponse, error)
	// Creates a new chain swap from one chain to another. If `accept_zero_conf` is set to true in the request, the daemon
	// will not wait until the lockup transaction from Boltz is confirmed in a block, but will claim it instantly.
	CreateChainSwap(ctx context.Context, in *CreateChainSwapRequest, opts ...grpc.CallOption) (*ChainSwapInfo, error)
	// Creates a new liquid wallet and returns the mnemonic.
	CreateWallet(ctx context.Context, in *CreateWalletRequest, opts ...grpc.CallOption) (*CreateWalletResponse, error)
	// Imports an existing wallet.
	ImportWallet(ctx context.Context, in *ImportWalletRequest, opts ...grpc.CallOption) (*Wallet, error)
	// Sets the subaccount of a wallet. Not supported for readonly wallets.
	SetSubaccount(ctx context.Context, in *SetSubaccountRequest, opts ...grpc.CallOption) (*Subaccount, error)
	// Returns all subaccounts for a given wallet. Not supported for readonly wallets.
	GetSubaccounts(ctx context.Context, in *GetSubaccountsRequest, opts ...grpc.CallOption) (*GetSubaccountsResponse, error)
	// Returns all available wallets.
	GetWallets(ctx context.Context, in *GetWalletsRequest, opts ...grpc.CallOption) (*Wallets, error)
	// Returns the current balance and subaccount of a wallet.
	GetWallet(ctx context.Context, in *GetWalletRequest, opts ...grpc.CallOption) (*Wallet, error)
	// Calculates the fee for an equivalent `WalletSend` request.
	// If `address` is left empty, a dummy swap address will be used, allowing for a fee estimation of a swap lockup transaction.
	GetWalletSendFee(ctx context.Context, in *WalletSendRequest, opts ...grpc.CallOption) (*WalletSendFee, error)
	// Returns recent transactions from a wallet.
	ListWalletTransactions(ctx context.Context, in *ListWalletTransactionsRequest, opts ...grpc.CallOption) (*ListWalletTransactionsResponse, error)
	// Returns the credentials of a wallet. The password will be required if the wallet is encrypted.
	GetWalletCredentials(ctx context.Context, in *GetWalletCredentialsRequest, opts ...grpc.CallOption) (*WalletCredentials, error)
	// Removes a wallet.
	RemoveWallet(ctx context.Context, in *RemoveWalletRequest, opts ...grpc.CallOption) (*RemoveWalletResponse, error)
	// Send coins from a wallet. Only the confirmed balance can be spent.
	WalletSend(ctx context.Context, in *WalletSendRequest, opts ...grpc.CallOption) (*WalletSendResponse, error)
	// Get a new address of the wallet.
	WalletReceive(ctx context.Context, in *WalletReceiveRequest, opts ...grpc.CallOption) (*WalletReceiveResponse, error)
	// Gracefully stops the daemon.
	Stop(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
	// Unlocks the server. This will be required on startup if there are any encrypted wallets.
	Unlock(ctx context.Context, in *UnlockRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Check if the password is correct.
	VerifyWalletPassword(ctx context.Context, in *VerifyWalletPasswordRequest, opts ...grpc.CallOption) (*VerifyWalletPasswordResponse, error)
	// Changes the password for wallet encryption.
	ChangeWalletPassword(ctx context.Context, in *ChangeWalletPasswordRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Creates a new tenant which can be used to bake restricted macaroons.
	CreateTenant(ctx context.Context, in *CreateTenantRequest, opts ...grpc.CallOption) (*Tenant, error)
	// Returns all tenants.
	ListTenants(ctx context.Context, in *ListTenantsRequest, opts ...grpc.CallOption) (*ListTenantsResponse, error)
	// Get a specifiy tenant.
	GetTenant(ctx context.Context, in *GetTenantRequest, opts ...grpc.CallOption) (*Tenant, error)
	// Bakes a new macaroon with the specified permissions.
	// The macaroon can also be restricted to a specific tenant. In this case,
	// - any swap or wallet created with the returned macaroon will belong to this tenant and can not be accessed by other tenants.
	// - the lightning node connected to the daemon can not be used to pay or create invoices for swaps.
	BakeMacaroon(ctx context.Context, in *BakeMacaroonRequest, opts ...grpc.CallOption) (*BakeMacaroonResponse, error)
}

BoltzClient is the client API for Boltz service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewBoltzClient

func NewBoltzClient(cc grpc.ClientConnInterface) BoltzClient

type BoltzServer

type BoltzServer interface {
	// Gets general information about the daemon like the chain of the lightning node it is connected to
	// and the IDs of pending swaps.
	GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error)
	// Deprecated: Do not use.
	//
	// Fetches the latest limits and fees from the Boltz backend API it is connected to.
	GetServiceInfo(context.Context, *GetServiceInfoRequest) (*GetServiceInfoResponse, error)
	// Fetches information about a specific pair for a chain swap.
	GetPairInfo(context.Context, *GetPairInfoRequest) (*PairInfo, error)
	// Fetches all available pairs for submarine and reverse swaps.
	GetPairs(context.Context, *empty.Empty) (*GetPairsResponse, error)
	// Returns a list of all swaps, reverse swaps, and chain swaps in the database.
	ListSwaps(context.Context, *ListSwapsRequest) (*ListSwapsResponse, error)
	// Returns stats of all swaps, reverse swaps, and chain swaps in the database.
	GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error)
	// Refund a failed swap manually.
	// This is only required when no refund address has been set and the swap does not have an associated wallet.
	RefundSwap(context.Context, *RefundSwapRequest) (*GetSwapInfoResponse, error)
	// Claim swaps manually.
	// This is only required when no claim address has been set and the swap does not have an associated wallet.
	ClaimSwaps(context.Context, *ClaimSwapsRequest) (*ClaimSwapsResponse, error)
	// Gets all available information about a swap from the database.
	GetSwapInfo(context.Context, *GetSwapInfoRequest) (*GetSwapInfoResponse, error)
	// Returns the entire history of the swap if is still pending and streams updates in real time.
	// If the swap id is empty or "*" updates for all swaps will be streamed.
	GetSwapInfoStream(*GetSwapInfoRequest, Boltz_GetSwapInfoStreamServer) error
	// Deprecated: Do not use.
	//
	// This is a wrapper for channel creation swaps. The daemon only returns the ID, timeout block height and lockup address.
	// The Boltz backend takes care of the rest. When an amount of onchain coins that is in the limits is sent to the address
	// before the timeout block height, the daemon creates a new lightning invoice, sends it to the Boltz backend which
	// will try to pay it and if that is not possible, create a new channel to make the swap succeed.
	Deposit(context.Context, *DepositRequest) (*DepositResponse, error)
	// Creates a new swap from onchain to lightning.
	CreateSwap(context.Context, *CreateSwapRequest) (*CreateSwapResponse, error)
	// Deprecated: Do not use.
	//
	// Create a new swap from onchain to a new lightning channel. The daemon will only accept the invoice payment if the HTLCs
	// is coming trough a new channel channel opened by Boltz.
	CreateChannel(context.Context, *CreateChannelRequest) (*CreateSwapResponse, error)
	// Creates a new reverse swap from lightning to onchain. If `accept_zero_conf` is set to true in the request, the daemon
	// will not wait until the lockup transaction from Boltz is confirmed in a block, but will claim it instantly.
	CreateReverseSwap(context.Context, *CreateReverseSwapRequest) (*CreateReverseSwapResponse, error)
	// Creates a new chain swap from one chain to another. If `accept_zero_conf` is set to true in the request, the daemon
	// will not wait until the lockup transaction from Boltz is confirmed in a block, but will claim it instantly.
	CreateChainSwap(context.Context, *CreateChainSwapRequest) (*ChainSwapInfo, error)
	// Creates a new liquid wallet and returns the mnemonic.
	CreateWallet(context.Context, *CreateWalletRequest) (*CreateWalletResponse, error)
	// Imports an existing wallet.
	ImportWallet(context.Context, *ImportWalletRequest) (*Wallet, error)
	// Sets the subaccount of a wallet. Not supported for readonly wallets.
	SetSubaccount(context.Context, *SetSubaccountRequest) (*Subaccount, error)
	// Returns all subaccounts for a given wallet. Not supported for readonly wallets.
	GetSubaccounts(context.Context, *GetSubaccountsRequest) (*GetSubaccountsResponse, error)
	// Returns all available wallets.
	GetWallets(context.Context, *GetWalletsRequest) (*Wallets, error)
	// Returns the current balance and subaccount of a wallet.
	GetWallet(context.Context, *GetWalletRequest) (*Wallet, error)
	// Calculates the fee for an equivalent `WalletSend` request.
	// If `address` is left empty, a dummy swap address will be used, allowing for a fee estimation of a swap lockup transaction.
	GetWalletSendFee(context.Context, *WalletSendRequest) (*WalletSendFee, error)
	// Returns recent transactions from a wallet.
	ListWalletTransactions(context.Context, *ListWalletTransactionsRequest) (*ListWalletTransactionsResponse, error)
	// Returns the credentials of a wallet. The password will be required if the wallet is encrypted.
	GetWalletCredentials(context.Context, *GetWalletCredentialsRequest) (*WalletCredentials, error)
	// Removes a wallet.
	RemoveWallet(context.Context, *RemoveWalletRequest) (*RemoveWalletResponse, error)
	// Send coins from a wallet. Only the confirmed balance can be spent.
	WalletSend(context.Context, *WalletSendRequest) (*WalletSendResponse, error)
	// Get a new address of the wallet.
	WalletReceive(context.Context, *WalletReceiveRequest) (*WalletReceiveResponse, error)
	// Gracefully stops the daemon.
	Stop(context.Context, *empty.Empty) (*empty.Empty, error)
	// Unlocks the server. This will be required on startup if there are any encrypted wallets.
	Unlock(context.Context, *UnlockRequest) (*empty.Empty, error)
	// Check if the password is correct.
	VerifyWalletPassword(context.Context, *VerifyWalletPasswordRequest) (*VerifyWalletPasswordResponse, error)
	// Changes the password for wallet encryption.
	ChangeWalletPassword(context.Context, *ChangeWalletPasswordRequest) (*empty.Empty, error)
	// Creates a new tenant which can be used to bake restricted macaroons.
	CreateTenant(context.Context, *CreateTenantRequest) (*Tenant, error)
	// Returns all tenants.
	ListTenants(context.Context, *ListTenantsRequest) (*ListTenantsResponse, error)
	// Get a specifiy tenant.
	GetTenant(context.Context, *GetTenantRequest) (*Tenant, error)
	// Bakes a new macaroon with the specified permissions.
	// The macaroon can also be restricted to a specific tenant. In this case,
	// - any swap or wallet created with the returned macaroon will belong to this tenant and can not be accessed by other tenants.
	// - the lightning node connected to the daemon can not be used to pay or create invoices for swaps.
	BakeMacaroon(context.Context, *BakeMacaroonRequest) (*BakeMacaroonResponse, error)
	// contains filtered or unexported methods
}

BoltzServer is the server API for Boltz service. All implementations must embed UnimplementedBoltzServer for forward compatibility

type Boltz_GetSwapInfoStreamClient

type Boltz_GetSwapInfoStreamClient interface {
	Recv() (*GetSwapInfoResponse, error)
	grpc.ClientStream
}

type Boltz_GetSwapInfoStreamServer

type Boltz_GetSwapInfoStreamServer interface {
	Send(*GetSwapInfoResponse) error
	grpc.ServerStream
}

type Budget

type Budget struct {
	Total     uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Remaining int64  `protobuf:"varint,2,opt,name=remaining,proto3" json:"remaining,omitempty"`
	StartDate int64  `protobuf:"varint,3,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
	EndDate   int64  `protobuf:"varint,4,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
	// contains filtered or unexported fields
}

func (*Budget) Descriptor deprecated

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

Deprecated: Use Budget.ProtoReflect.Descriptor instead.

func (*Budget) GetEndDate

func (x *Budget) GetEndDate() int64

func (*Budget) GetRemaining

func (x *Budget) GetRemaining() int64

func (*Budget) GetStartDate

func (x *Budget) GetStartDate() int64

func (*Budget) GetTotal

func (x *Budget) GetTotal() uint64

func (*Budget) ProtoMessage

func (*Budget) ProtoMessage()

func (*Budget) ProtoReflect

func (x *Budget) ProtoReflect() protoreflect.Message

func (*Budget) Reset

func (x *Budget) Reset()

func (*Budget) String

func (x *Budget) String() string

type ChainSwapData

type ChainSwapData struct {
	Id                  string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Currency            Currency `protobuf:"varint,2,opt,name=currency,proto3,enum=boltzrpc.Currency" json:"currency,omitempty"`
	PrivateKey          string   `protobuf:"bytes,3,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	TheirPublicKey      string   `protobuf:"bytes,4,opt,name=their_public_key,json=theirPublicKey,proto3" json:"their_public_key,omitempty"`
	Amount              uint64   `protobuf:"varint,6,opt,name=amount,proto3" json:"amount,omitempty"`
	TimeoutBlockHeight  uint32   `protobuf:"varint,7,opt,name=timeout_block_height,json=timeoutBlockHeight,proto3" json:"timeout_block_height,omitempty"`
	LockupTransactionId *string  `` /* 126-byte string literal not displayed */
	TransactionId       *string  `protobuf:"bytes,9,opt,name=transaction_id,json=transactionId,proto3,oneof" json:"transaction_id,omitempty"`
	WalletId            *uint64  `protobuf:"varint,20,opt,name=wallet_id,json=walletId,proto3,oneof" json:"wallet_id,omitempty"`
	Address             *string  `protobuf:"bytes,12,opt,name=address,proto3,oneof" json:"address,omitempty"`
	BlindingKey         *string  `protobuf:"bytes,13,opt,name=blinding_key,json=blindingKey,proto3,oneof" json:"blinding_key,omitempty"`
	LockupAddress       string   `protobuf:"bytes,14,opt,name=lockup_address,json=lockupAddress,proto3" json:"lockup_address,omitempty"`
	// contains filtered or unexported fields
}

func (*ChainSwapData) Descriptor deprecated

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

Deprecated: Use ChainSwapData.ProtoReflect.Descriptor instead.

func (*ChainSwapData) GetAddress

func (x *ChainSwapData) GetAddress() string

func (*ChainSwapData) GetAmount

func (x *ChainSwapData) GetAmount() uint64

func (*ChainSwapData) GetBlindingKey

func (x *ChainSwapData) GetBlindingKey() string

func (*ChainSwapData) GetCurrency

func (x *ChainSwapData) GetCurrency() Currency

func (*ChainSwapData) GetId

func (x *ChainSwapData) GetId() string

func (*ChainSwapData) GetLockupAddress

func (x *ChainSwapData) GetLockupAddress() string

func (*ChainSwapData) GetLockupTransactionId

func (x *ChainSwapData) GetLockupTransactionId() string

func (*ChainSwapData) GetPrivateKey

func (x *ChainSwapData) GetPrivateKey() string

func (*ChainSwapData) GetTheirPublicKey

func (x *ChainSwapData) GetTheirPublicKey() string

func (*ChainSwapData) GetTimeoutBlockHeight

func (x *ChainSwapData) GetTimeoutBlockHeight() uint32

func (*ChainSwapData) GetTransactionId

func (x *ChainSwapData) GetTransactionId() string

func (*ChainSwapData) GetWalletId

func (x *ChainSwapData) GetWalletId() uint64

func (*ChainSwapData) ProtoMessage

func (*ChainSwapData) ProtoMessage()

func (*ChainSwapData) ProtoReflect

func (x *ChainSwapData) ProtoReflect() protoreflect.Message

func (*ChainSwapData) Reset

func (x *ChainSwapData) Reset()

func (*ChainSwapData) String

func (x *ChainSwapData) String() string

type ChainSwapInfo

type ChainSwapInfo struct {
	Id                string         `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Pair              *Pair          `protobuf:"bytes,2,opt,name=pair,proto3" json:"pair,omitempty"`
	State             SwapState      `protobuf:"varint,3,opt,name=state,proto3,enum=boltzrpc.SwapState" json:"state,omitempty"`
	Error             string         `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
	Status            string         `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
	Preimage          string         `protobuf:"bytes,6,opt,name=preimage,proto3" json:"preimage,omitempty"`
	IsAuto            bool           `protobuf:"varint,8,opt,name=is_auto,json=isAuto,proto3" json:"is_auto,omitempty"`
	ServiceFee        *uint64        `protobuf:"varint,9,opt,name=service_fee,json=serviceFee,proto3,oneof" json:"service_fee,omitempty"`
	ServiceFeePercent float64        `protobuf:"fixed64,10,opt,name=service_fee_percent,json=serviceFeePercent,proto3" json:"service_fee_percent,omitempty"`
	OnchainFee        *uint64        `protobuf:"varint,11,opt,name=onchain_fee,json=onchainFee,proto3,oneof" json:"onchain_fee,omitempty"`
	CreatedAt         int64          `protobuf:"varint,12,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	TenantId          uint64         `protobuf:"varint,13,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	FromData          *ChainSwapData `protobuf:"bytes,14,opt,name=from_data,json=fromData,proto3" json:"from_data,omitempty"`
	ToData            *ChainSwapData `protobuf:"bytes,15,opt,name=to_data,json=toData,proto3" json:"to_data,omitempty"`
	// contains filtered or unexported fields
}

func (*ChainSwapInfo) Descriptor deprecated

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

Deprecated: Use ChainSwapInfo.ProtoReflect.Descriptor instead.

func (*ChainSwapInfo) GetCreatedAt

func (x *ChainSwapInfo) GetCreatedAt() int64

func (*ChainSwapInfo) GetError

func (x *ChainSwapInfo) GetError() string

func (*ChainSwapInfo) GetFromData

func (x *ChainSwapInfo) GetFromData() *ChainSwapData

func (*ChainSwapInfo) GetId

func (x *ChainSwapInfo) GetId() string

func (*ChainSwapInfo) GetIsAuto

func (x *ChainSwapInfo) GetIsAuto() bool

func (*ChainSwapInfo) GetOnchainFee

func (x *ChainSwapInfo) GetOnchainFee() uint64

func (*ChainSwapInfo) GetPair

func (x *ChainSwapInfo) GetPair() *Pair

func (*ChainSwapInfo) GetPreimage

func (x *ChainSwapInfo) GetPreimage() string

func (*ChainSwapInfo) GetServiceFee

func (x *ChainSwapInfo) GetServiceFee() uint64

func (*ChainSwapInfo) GetServiceFeePercent

func (x *ChainSwapInfo) GetServiceFeePercent() float64

func (*ChainSwapInfo) GetState

func (x *ChainSwapInfo) GetState() SwapState

func (*ChainSwapInfo) GetStatus

func (x *ChainSwapInfo) GetStatus() string

func (*ChainSwapInfo) GetTenantId

func (x *ChainSwapInfo) GetTenantId() uint64

func (*ChainSwapInfo) GetToData

func (x *ChainSwapInfo) GetToData() *ChainSwapData

func (*ChainSwapInfo) ProtoMessage

func (*ChainSwapInfo) ProtoMessage()

func (*ChainSwapInfo) ProtoReflect

func (x *ChainSwapInfo) ProtoReflect() protoreflect.Message

func (*ChainSwapInfo) Reset

func (x *ChainSwapInfo) Reset()

func (*ChainSwapInfo) String

func (x *ChainSwapInfo) String() string

type ChangeWalletPasswordRequest

type ChangeWalletPasswordRequest struct {
	Old string `protobuf:"bytes,1,opt,name=old,proto3" json:"old,omitempty"`
	New string `protobuf:"bytes,2,opt,name=new,proto3" json:"new,omitempty"`
	// contains filtered or unexported fields
}

func (*ChangeWalletPasswordRequest) Descriptor deprecated

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

Deprecated: Use ChangeWalletPasswordRequest.ProtoReflect.Descriptor instead.

func (*ChangeWalletPasswordRequest) GetNew

func (x *ChangeWalletPasswordRequest) GetNew() string

func (*ChangeWalletPasswordRequest) GetOld

func (x *ChangeWalletPasswordRequest) GetOld() string

func (*ChangeWalletPasswordRequest) ProtoMessage

func (*ChangeWalletPasswordRequest) ProtoMessage()

func (*ChangeWalletPasswordRequest) ProtoReflect

func (*ChangeWalletPasswordRequest) Reset

func (x *ChangeWalletPasswordRequest) Reset()

func (*ChangeWalletPasswordRequest) String

func (x *ChangeWalletPasswordRequest) String() string

type ChannelCreationInfo deprecated

type ChannelCreationInfo struct {

	// ID of the swap to which this channel channel belongs
	SwapId                 string `protobuf:"bytes,1,opt,name=swap_id,json=swapId,proto3" json:"swap_id,omitempty"`
	Status                 string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	InboundLiquidity       uint32 `protobuf:"varint,3,opt,name=inbound_liquidity,json=inboundLiquidity,proto3" json:"inbound_liquidity,omitempty"`
	Private                bool   `protobuf:"varint,4,opt,name=private,proto3" json:"private,omitempty"`
	FundingTransactionId   string `protobuf:"bytes,5,opt,name=funding_transaction_id,json=fundingTransactionId,proto3" json:"funding_transaction_id,omitempty"`
	FundingTransactionVout uint32 `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

Channel creations are an optional extension to a submarine swap in the data types of boltz-client.

Deprecated: Marked as deprecated in boltzrpc.proto.

func (*ChannelCreationInfo) Descriptor deprecated

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

Deprecated: Use ChannelCreationInfo.ProtoReflect.Descriptor instead.

func (*ChannelCreationInfo) GetFundingTransactionId

func (x *ChannelCreationInfo) GetFundingTransactionId() string

func (*ChannelCreationInfo) GetFundingTransactionVout

func (x *ChannelCreationInfo) GetFundingTransactionVout() uint32

func (*ChannelCreationInfo) GetInboundLiquidity

func (x *ChannelCreationInfo) GetInboundLiquidity() uint32

func (*ChannelCreationInfo) GetPrivate

func (x *ChannelCreationInfo) GetPrivate() bool

func (*ChannelCreationInfo) GetStatus

func (x *ChannelCreationInfo) GetStatus() string

func (*ChannelCreationInfo) GetSwapId

func (x *ChannelCreationInfo) GetSwapId() string

func (*ChannelCreationInfo) ProtoMessage

func (*ChannelCreationInfo) ProtoMessage()

func (*ChannelCreationInfo) ProtoReflect

func (x *ChannelCreationInfo) ProtoReflect() protoreflect.Message

func (*ChannelCreationInfo) Reset

func (x *ChannelCreationInfo) Reset()

func (*ChannelCreationInfo) String

func (x *ChannelCreationInfo) String() string

type ChannelId

type ChannelId struct {

	// cln style: 832347x2473x1
	Cln string `protobuf:"bytes,1,opt,name=cln,proto3" json:"cln,omitempty"`
	// lnd style: 915175205006540801
	Lnd uint64 `protobuf:"varint,2,opt,name=lnd,proto3" json:"lnd,omitempty"`
	// contains filtered or unexported fields
}

func (*ChannelId) Descriptor deprecated

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

Deprecated: Use ChannelId.ProtoReflect.Descriptor instead.

func (*ChannelId) GetCln

func (x *ChannelId) GetCln() string

func (*ChannelId) GetLnd

func (x *ChannelId) GetLnd() uint64

func (*ChannelId) ProtoMessage

func (*ChannelId) ProtoMessage()

func (*ChannelId) ProtoReflect

func (x *ChannelId) ProtoReflect() protoreflect.Message

func (*ChannelId) Reset

func (x *ChannelId) Reset()

func (*ChannelId) String

func (x *ChannelId) String() string

type ClaimSwapsRequest

type ClaimSwapsRequest struct {
	SwapIds []string `protobuf:"bytes,1,rep,name=swap_ids,json=swapIds,proto3" json:"swap_ids,omitempty"`
	// Types that are assignable to Destination:
	//
	//	*ClaimSwapsRequest_Address
	//	*ClaimSwapsRequest_WalletId
	Destination isClaimSwapsRequest_Destination `protobuf_oneof:"destination"`
	// contains filtered or unexported fields
}

func (*ClaimSwapsRequest) Descriptor deprecated

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

Deprecated: Use ClaimSwapsRequest.ProtoReflect.Descriptor instead.

func (*ClaimSwapsRequest) GetAddress

func (x *ClaimSwapsRequest) GetAddress() string

func (*ClaimSwapsRequest) GetDestination

func (m *ClaimSwapsRequest) GetDestination() isClaimSwapsRequest_Destination

func (*ClaimSwapsRequest) GetSwapIds

func (x *ClaimSwapsRequest) GetSwapIds() []string

func (*ClaimSwapsRequest) GetWalletId

func (x *ClaimSwapsRequest) GetWalletId() uint64

func (*ClaimSwapsRequest) ProtoMessage

func (*ClaimSwapsRequest) ProtoMessage()

func (*ClaimSwapsRequest) ProtoReflect

func (x *ClaimSwapsRequest) ProtoReflect() protoreflect.Message

func (*ClaimSwapsRequest) Reset

func (x *ClaimSwapsRequest) Reset()

func (*ClaimSwapsRequest) String

func (x *ClaimSwapsRequest) String() string

type ClaimSwapsRequest_Address

type ClaimSwapsRequest_Address struct {
	Address string `protobuf:"bytes,2,opt,name=address,proto3,oneof"`
}

type ClaimSwapsRequest_WalletId

type ClaimSwapsRequest_WalletId struct {
	WalletId uint64 `protobuf:"varint,3,opt,name=wallet_id,json=walletId,proto3,oneof"`
}

type ClaimSwapsResponse

type ClaimSwapsResponse struct {
	TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ClaimSwapsResponse) Descriptor deprecated

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

Deprecated: Use ClaimSwapsResponse.ProtoReflect.Descriptor instead.

func (*ClaimSwapsResponse) GetTransactionId

func (x *ClaimSwapsResponse) GetTransactionId() string

func (*ClaimSwapsResponse) ProtoMessage

func (*ClaimSwapsResponse) ProtoMessage()

func (*ClaimSwapsResponse) ProtoReflect

func (x *ClaimSwapsResponse) ProtoReflect() protoreflect.Message

func (*ClaimSwapsResponse) Reset

func (x *ClaimSwapsResponse) Reset()

func (*ClaimSwapsResponse) String

func (x *ClaimSwapsResponse) String() string

type CombinedChannelSwapInfo deprecated

type CombinedChannelSwapInfo struct {
	Swap            *SwapInfo            `protobuf:"bytes,1,opt,name=swap,proto3" json:"swap,omitempty"`
	ChannelCreation *ChannelCreationInfo `protobuf:"bytes,2,opt,name=channel_creation,json=channelCreation,proto3" json:"channel_creation,omitempty"`
	// contains filtered or unexported fields
}

Deprecated: Marked as deprecated in boltzrpc.proto.

func (*CombinedChannelSwapInfo) Descriptor deprecated

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

Deprecated: Use CombinedChannelSwapInfo.ProtoReflect.Descriptor instead.

func (*CombinedChannelSwapInfo) GetChannelCreation

func (x *CombinedChannelSwapInfo) GetChannelCreation() *ChannelCreationInfo

func (*CombinedChannelSwapInfo) GetSwap

func (x *CombinedChannelSwapInfo) GetSwap() *SwapInfo

func (*CombinedChannelSwapInfo) ProtoMessage

func (*CombinedChannelSwapInfo) ProtoMessage()

func (*CombinedChannelSwapInfo) ProtoReflect

func (x *CombinedChannelSwapInfo) ProtoReflect() protoreflect.Message

func (*CombinedChannelSwapInfo) Reset

func (x *CombinedChannelSwapInfo) Reset()

func (*CombinedChannelSwapInfo) String

func (x *CombinedChannelSwapInfo) String() string

type CreateChainSwapRequest

type CreateChainSwapRequest struct {

	// Amount of satoshis to swap. It is the amount expected to be sent to the lockup address.
	// If left empty, any amount within the limits will be accepted.
	Amount *uint64 `protobuf:"varint,1,opt,name=amount,proto3,oneof" json:"amount,omitempty"`
	Pair   *Pair   `protobuf:"bytes,2,opt,name=pair,proto3" json:"pair,omitempty"`
	// Address where funds will be swept to if the swap succeeds
	ToAddress *string `protobuf:"bytes,3,opt,name=to_address,json=toAddress,proto3,oneof" json:"to_address,omitempty"`
	// Address where the coins should be refunded to if the swap fails.
	RefundAddress *string `protobuf:"bytes,4,opt,name=refund_address,json=refundAddress,proto3,oneof" json:"refund_address,omitempty"`
	// Wallet from which the swap should be paid from. Ignored if `external_pay` is set to true.
	// If the swap fails, funds will be refunded to this wallet as well.
	FromWalletId *uint64 `protobuf:"varint,5,opt,name=from_wallet_id,json=fromWalletId,proto3,oneof" json:"from_wallet_id,omitempty"`
	// Wallet where the the funds will go if the swap succeeds.
	ToWalletId *uint64 `protobuf:"varint,6,opt,name=to_wallet_id,json=toWalletId,proto3,oneof" json:"to_wallet_id,omitempty"`
	// Whether the daemon should broadcast the claim transaction immediately after the lockup transaction is in the mempool.
	// Should only be used for smaller amounts as it involves trust in Boltz.
	AcceptZeroConf *bool `protobuf:"varint,7,opt,name=accept_zero_conf,json=acceptZeroConf,proto3,oneof" json:"accept_zero_conf,omitempty"`
	// If set, the daemon will not pay the swap from an internal wallet.
	ExternalPay *bool `protobuf:"varint,8,opt,name=external_pay,json=externalPay,proto3,oneof" json:"external_pay,omitempty"`
	// Boltz does not accept 0-conf for Liquid transactions with a fee of 0.01 sat/vByte;
	// when `lockup_zero_conf` is enabled, a fee of 0.1 sat/vByte will be used for Liquid lockup transactions
	LockupZeroConf *bool `protobuf:"varint,9,opt,name=lockup_zero_conf,json=lockupZeroConf,proto3,oneof" json:"lockup_zero_conf,omitempty"`
	// Fee rate to use when sending from internal wallet
	SatPerVbyte *float64 `protobuf:"fixed64,10,opt,name=sat_per_vbyte,json=satPerVbyte,proto3,oneof" json:"sat_per_vbyte,omitempty"`
	// Rates to accept for the swap. Queries latest from boltz otherwise
	// The recommended way to use this is to pass a user approved value from a previous `GetPairInfo` call
	AcceptedPair *PairInfo `protobuf:"bytes,11,opt,name=accepted_pair,json=acceptedPair,proto3,oneof" json:"accepted_pair,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateChainSwapRequest) Descriptor deprecated

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

Deprecated: Use CreateChainSwapRequest.ProtoReflect.Descriptor instead.

func (*CreateChainSwapRequest) GetAcceptZeroConf

func (x *CreateChainSwapRequest) GetAcceptZeroConf() bool

func (*CreateChainSwapRequest) GetAcceptedPair

func (x *CreateChainSwapRequest) GetAcceptedPair() *PairInfo

func (*CreateChainSwapRequest) GetAmount

func (x *CreateChainSwapRequest) GetAmount() uint64

func (*CreateChainSwapRequest) GetExternalPay

func (x *CreateChainSwapRequest) GetExternalPay() bool

func (*CreateChainSwapRequest) GetFromWalletId

func (x *CreateChainSwapRequest) GetFromWalletId() uint64

func (*CreateChainSwapRequest) GetLockupZeroConf

func (x *CreateChainSwapRequest) GetLockupZeroConf() bool

func (*CreateChainSwapRequest) GetPair

func (x *CreateChainSwapRequest) GetPair() *Pair

func (*CreateChainSwapRequest) GetRefundAddress

func (x *CreateChainSwapRequest) GetRefundAddress() string

func (*CreateChainSwapRequest) GetSatPerVbyte

func (x *CreateChainSwapRequest) GetSatPerVbyte() float64

func (*CreateChainSwapRequest) GetToAddress

func (x *CreateChainSwapRequest) GetToAddress() string

func (*CreateChainSwapRequest) GetToWalletId

func (x *CreateChainSwapRequest) GetToWalletId() uint64

func (*CreateChainSwapRequest) ProtoMessage

func (*CreateChainSwapRequest) ProtoMessage()

func (*CreateChainSwapRequest) ProtoReflect

func (x *CreateChainSwapRequest) ProtoReflect() protoreflect.Message

func (*CreateChainSwapRequest) Reset

func (x *CreateChainSwapRequest) Reset()

func (*CreateChainSwapRequest) String

func (x *CreateChainSwapRequest) String() string

type CreateChannelRequest

type CreateChannelRequest struct {
	Amount int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	// Percentage of inbound liquidity the channel that is opened should have.
	// 25 by default.
	InboundLiquidity uint32 `protobuf:"varint,2,opt,name=inbound_liquidity,json=inboundLiquidity,proto3" json:"inbound_liquidity,omitempty"`
	Private          bool   `protobuf:"varint,3,opt,name=private,proto3" json:"private,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateChannelRequest) Descriptor deprecated

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

Deprecated: Use CreateChannelRequest.ProtoReflect.Descriptor instead.

func (*CreateChannelRequest) GetAmount

func (x *CreateChannelRequest) GetAmount() int64

func (*CreateChannelRequest) GetInboundLiquidity

func (x *CreateChannelRequest) GetInboundLiquidity() uint32

func (*CreateChannelRequest) GetPrivate

func (x *CreateChannelRequest) GetPrivate() bool

func (*CreateChannelRequest) ProtoMessage

func (*CreateChannelRequest) ProtoMessage()

func (*CreateChannelRequest) ProtoReflect

func (x *CreateChannelRequest) ProtoReflect() protoreflect.Message

func (*CreateChannelRequest) Reset

func (x *CreateChannelRequest) Reset()

func (*CreateChannelRequest) String

func (x *CreateChannelRequest) String() string

type CreateReverseSwapRequest

type CreateReverseSwapRequest struct {

	// amount of satoshis to swap
	Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	// If no value is set, the daemon will query a new address from the lightning node
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// Whether the daemon should broadcast the claim transaction immediately after the lockup transaction is in the mempool.
	// Should only be used for smaller amounts as it involves trust in boltz.
	AcceptZeroConf bool  `protobuf:"varint,3,opt,name=accept_zero_conf,json=acceptZeroConf,proto3" json:"accept_zero_conf,omitempty"`
	Pair           *Pair `protobuf:"bytes,4,opt,name=pair,proto3" json:"pair,omitempty"`
	// a list of channel ids which are allowed for paying the invoice. can be in either cln or lnd style.
	ChanIds []string `protobuf:"bytes,5,rep,name=chan_ids,json=chanIds,proto3" json:"chan_ids,omitempty"`
	// wallet from which the onchain address should be generated - only considered if `address` is not set
	WalletId *uint64 `protobuf:"varint,6,opt,name=wallet_id,json=walletId,proto3,oneof" json:"wallet_id,omitempty"`
	// Whether the daemon should return immediately after creating the swap or wait until the swap is successful or failed.
	// It will always return immediately if `accept_zero_conf` is not set.
	ReturnImmediately *bool `protobuf:"varint,7,opt,name=return_immediately,json=returnImmediately,proto3,oneof" json:"return_immediately,omitempty"`
	// If set, the daemon will not pay the invoice of the swap and return the invoice to be paid. This implicitly sets `return_immediately` to true.
	ExternalPay *bool `protobuf:"varint,8,opt,name=external_pay,json=externalPay,proto3,oneof" json:"external_pay,omitempty"`
	// Description of the invoice which will be created for the swap
	Description *string `protobuf:"bytes,9,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// Description hash of the invoice which will be created for the swap. Takes precedence over `description`
	DescriptionHash []byte `protobuf:"bytes,10,opt,name=description_hash,json=descriptionHash,proto3,oneof" json:"description_hash,omitempty"`
	// Expiry of the reverse swap invoice in seconds
	InvoiceExpiry *uint64 `protobuf:"varint,11,opt,name=invoice_expiry,json=invoiceExpiry,proto3,oneof" json:"invoice_expiry,omitempty"`
	// Rates to accept for the swap. Queries latest from boltz otherwise
	// The recommended way to use this is to pass a user approved value from a previous `GetPairInfo` call
	AcceptedPair *PairInfo `protobuf:"bytes,12,opt,name=accepted_pair,json=acceptedPair,proto3,oneof" json:"accepted_pair,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateReverseSwapRequest) Descriptor deprecated

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

Deprecated: Use CreateReverseSwapRequest.ProtoReflect.Descriptor instead.

func (*CreateReverseSwapRequest) GetAcceptZeroConf

func (x *CreateReverseSwapRequest) GetAcceptZeroConf() bool

func (*CreateReverseSwapRequest) GetAcceptedPair

func (x *CreateReverseSwapRequest) GetAcceptedPair() *PairInfo

func (*CreateReverseSwapRequest) GetAddress

func (x *CreateReverseSwapRequest) GetAddress() string

func (*CreateReverseSwapRequest) GetAmount

func (x *CreateReverseSwapRequest) GetAmount() uint64

func (*CreateReverseSwapRequest) GetChanIds

func (x *CreateReverseSwapRequest) GetChanIds() []string

func (*CreateReverseSwapRequest) GetDescription

func (x *CreateReverseSwapRequest) GetDescription() string

func (*CreateReverseSwapRequest) GetDescriptionHash

func (x *CreateReverseSwapRequest) GetDescriptionHash() []byte

func (*CreateReverseSwapRequest) GetExternalPay

func (x *CreateReverseSwapRequest) GetExternalPay() bool

func (*CreateReverseSwapRequest) GetInvoiceExpiry

func (x *CreateReverseSwapRequest) GetInvoiceExpiry() uint64

func (*CreateReverseSwapRequest) GetPair

func (x *CreateReverseSwapRequest) GetPair() *Pair

func (*CreateReverseSwapRequest) GetReturnImmediately

func (x *CreateReverseSwapRequest) GetReturnImmediately() bool

func (*CreateReverseSwapRequest) GetWalletId

func (x *CreateReverseSwapRequest) GetWalletId() uint64

func (*CreateReverseSwapRequest) ProtoMessage

func (*CreateReverseSwapRequest) ProtoMessage()

func (*CreateReverseSwapRequest) ProtoReflect

func (x *CreateReverseSwapRequest) ProtoReflect() protoreflect.Message

func (*CreateReverseSwapRequest) Reset

func (x *CreateReverseSwapRequest) Reset()

func (*CreateReverseSwapRequest) String

func (x *CreateReverseSwapRequest) String() string

type CreateReverseSwapResponse

type CreateReverseSwapResponse struct {
	Id            string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	LockupAddress string `protobuf:"bytes,2,opt,name=lockup_address,json=lockupAddress,proto3" json:"lockup_address,omitempty"`
	// Only populated when zero-conf is accepted and return_immediately is set to false
	RoutingFeeMilliSat *uint64 `` /* 126-byte string literal not displayed */
	// Only populated when zero-conf is accepted and return_immediately is set to false
	ClaimTransactionId *string `protobuf:"bytes,4,opt,name=claim_transaction_id,json=claimTransactionId,proto3,oneof" json:"claim_transaction_id,omitempty"`
	// Invoice to be paid. Only populated when `external_pay` is set to true
	Invoice *string `protobuf:"bytes,5,opt,name=invoice,proto3,oneof" json:"invoice,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateReverseSwapResponse) Descriptor deprecated

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

Deprecated: Use CreateReverseSwapResponse.ProtoReflect.Descriptor instead.

func (*CreateReverseSwapResponse) GetClaimTransactionId

func (x *CreateReverseSwapResponse) GetClaimTransactionId() string

func (*CreateReverseSwapResponse) GetId

func (x *CreateReverseSwapResponse) GetId() string

func (*CreateReverseSwapResponse) GetInvoice

func (x *CreateReverseSwapResponse) GetInvoice() string

func (*CreateReverseSwapResponse) GetLockupAddress

func (x *CreateReverseSwapResponse) GetLockupAddress() string

func (*CreateReverseSwapResponse) GetRoutingFeeMilliSat

func (x *CreateReverseSwapResponse) GetRoutingFeeMilliSat() uint64

func (*CreateReverseSwapResponse) ProtoMessage

func (*CreateReverseSwapResponse) ProtoMessage()

func (*CreateReverseSwapResponse) ProtoReflect

func (*CreateReverseSwapResponse) Reset

func (x *CreateReverseSwapResponse) Reset()

func (*CreateReverseSwapResponse) String

func (x *CreateReverseSwapResponse) String() string

type CreateSwapRequest

type CreateSwapRequest struct {
	Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	Pair   *Pair  `protobuf:"bytes,2,opt,name=pair,proto3" json:"pair,omitempty"`
	// the daemon will pay the swap using the onchain wallet specified in the `wallet` field or any wallet otherwise.
	SendFromInternal bool `protobuf:"varint,4,opt,name=send_from_internal,json=sendFromInternal,proto3" json:"send_from_internal,omitempty"`
	// address where the coins should go if the swap fails. Refunds will go to any of the daemons wallets otherwise.
	RefundAddress *string `protobuf:"bytes,5,opt,name=refund_address,json=refundAddress,proto3,oneof" json:"refund_address,omitempty"`
	// wallet to pay swap from. only used if `send_from_internal` is set to true
	WalletId *uint64 `protobuf:"varint,6,opt,name=wallet_id,json=walletId,proto3,oneof" json:"wallet_id,omitempty"`
	// bolt11 invoice, lnurl, or lnaddress to use for the swap.
	// required in standalone mode.
	// when connected to a lightning node, a new invoice for `amount` sats will be fetched
	// the `amount` field has to be populated in case of a lnurl and lnaddress
	Invoice *string `protobuf:"bytes,7,opt,name=invoice,proto3,oneof" json:"invoice,omitempty"`
	// Boltz does not accept 0-conf for Liquid transactions with a fee of 0.01 sat/vByte;
	// when `zero_conf` is enabled, a fee of 0.1 sat/vByte will be used for Liquid lockup transactions
	ZeroConf *bool `protobuf:"varint,8,opt,name=zero_conf,json=zeroConf,proto3,oneof" json:"zero_conf,omitempty"`
	// Fee rate to use when sending from internal wallet
	SatPerVbyte *float64 `protobuf:"fixed64,9,opt,name=sat_per_vbyte,json=satPerVbyte,proto3,oneof" json:"sat_per_vbyte,omitempty"`
	// Rates to accept for the swap. Queries latest from boltz otherwise
	// The recommended way to use this is to pass a user approved value from a previous `GetPairInfo` call
	AcceptedPair *PairInfo `protobuf:"bytes,10,opt,name=accepted_pair,json=acceptedPair,proto3,oneof" json:"accepted_pair,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSwapRequest) Descriptor deprecated

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

Deprecated: Use CreateSwapRequest.ProtoReflect.Descriptor instead.

func (*CreateSwapRequest) GetAcceptedPair

func (x *CreateSwapRequest) GetAcceptedPair() *PairInfo

func (*CreateSwapRequest) GetAmount

func (x *CreateSwapRequest) GetAmount() uint64

func (*CreateSwapRequest) GetInvoice

func (x *CreateSwapRequest) GetInvoice() string

func (*CreateSwapRequest) GetPair

func (x *CreateSwapRequest) GetPair() *Pair

func (*CreateSwapRequest) GetRefundAddress

func (x *CreateSwapRequest) GetRefundAddress() string

func (*CreateSwapRequest) GetSatPerVbyte

func (x *CreateSwapRequest) GetSatPerVbyte() float64

func (*CreateSwapRequest) GetSendFromInternal

func (x *CreateSwapRequest) GetSendFromInternal() bool

func (*CreateSwapRequest) GetWalletId

func (x *CreateSwapRequest) GetWalletId() uint64

func (*CreateSwapRequest) GetZeroConf

func (x *CreateSwapRequest) GetZeroConf() bool

func (*CreateSwapRequest) ProtoMessage

func (*CreateSwapRequest) ProtoMessage()

func (*CreateSwapRequest) ProtoReflect

func (x *CreateSwapRequest) ProtoReflect() protoreflect.Message

func (*CreateSwapRequest) Reset

func (x *CreateSwapRequest) Reset()

func (*CreateSwapRequest) String

func (x *CreateSwapRequest) String() string

type CreateSwapResponse

type CreateSwapResponse struct {
	Id             string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Address        string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	ExpectedAmount uint64 `protobuf:"varint,3,opt,name=expected_amount,json=expectedAmount,proto3" json:"expected_amount,omitempty"`
	Bip21          string `protobuf:"bytes,4,opt,name=bip21,proto3" json:"bip21,omitempty"`
	// lockup transaction id. Only populated when `send_from_internal` was specified in the request
	TxId               string  `protobuf:"bytes,5,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
	TimeoutBlockHeight uint32  `protobuf:"varint,6,opt,name=timeout_block_height,json=timeoutBlockHeight,proto3" json:"timeout_block_height,omitempty"`
	TimeoutHours       float32 `protobuf:"fixed32,7,opt,name=timeout_hours,json=timeoutHours,proto3" json:"timeout_hours,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSwapResponse) Descriptor deprecated

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

Deprecated: Use CreateSwapResponse.ProtoReflect.Descriptor instead.

func (*CreateSwapResponse) GetAddress

func (x *CreateSwapResponse) GetAddress() string

func (*CreateSwapResponse) GetBip21

func (x *CreateSwapResponse) GetBip21() string

func (*CreateSwapResponse) GetExpectedAmount

func (x *CreateSwapResponse) GetExpectedAmount() uint64

func (*CreateSwapResponse) GetId

func (x *CreateSwapResponse) GetId() string

func (*CreateSwapResponse) GetTimeoutBlockHeight

func (x *CreateSwapResponse) GetTimeoutBlockHeight() uint32

func (*CreateSwapResponse) GetTimeoutHours

func (x *CreateSwapResponse) GetTimeoutHours() float32

func (*CreateSwapResponse) GetTxId

func (x *CreateSwapResponse) GetTxId() string

func (*CreateSwapResponse) ProtoMessage

func (*CreateSwapResponse) ProtoMessage()

func (*CreateSwapResponse) ProtoReflect

func (x *CreateSwapResponse) ProtoReflect() protoreflect.Message

func (*CreateSwapResponse) Reset

func (x *CreateSwapResponse) Reset()

func (*CreateSwapResponse) String

func (x *CreateSwapResponse) String() string

type CreateTenantRequest

type CreateTenantRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTenantRequest) Descriptor deprecated

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

Deprecated: Use CreateTenantRequest.ProtoReflect.Descriptor instead.

func (*CreateTenantRequest) GetName

func (x *CreateTenantRequest) GetName() string

func (*CreateTenantRequest) ProtoMessage

func (*CreateTenantRequest) ProtoMessage()

func (*CreateTenantRequest) ProtoReflect

func (x *CreateTenantRequest) ProtoReflect() protoreflect.Message

func (*CreateTenantRequest) Reset

func (x *CreateTenantRequest) Reset()

func (*CreateTenantRequest) String

func (x *CreateTenantRequest) String() string

type CreateWalletRequest

type CreateWalletRequest struct {
	Params *WalletParams `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateWalletRequest) Descriptor deprecated

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

Deprecated: Use CreateWalletRequest.ProtoReflect.Descriptor instead.

func (*CreateWalletRequest) GetParams

func (x *CreateWalletRequest) GetParams() *WalletParams

func (*CreateWalletRequest) ProtoMessage

func (*CreateWalletRequest) ProtoMessage()

func (*CreateWalletRequest) ProtoReflect

func (x *CreateWalletRequest) ProtoReflect() protoreflect.Message

func (*CreateWalletRequest) Reset

func (x *CreateWalletRequest) Reset()

func (*CreateWalletRequest) String

func (x *CreateWalletRequest) String() string

type CreateWalletResponse

type CreateWalletResponse struct {
	Mnemonic string  `protobuf:"bytes,1,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"`
	Wallet   *Wallet `protobuf:"bytes,2,opt,name=wallet,proto3" json:"wallet,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateWalletResponse) Descriptor deprecated

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

Deprecated: Use CreateWalletResponse.ProtoReflect.Descriptor instead.

func (*CreateWalletResponse) GetMnemonic

func (x *CreateWalletResponse) GetMnemonic() string

func (*CreateWalletResponse) GetWallet

func (x *CreateWalletResponse) GetWallet() *Wallet

func (*CreateWalletResponse) ProtoMessage

func (*CreateWalletResponse) ProtoMessage()

func (*CreateWalletResponse) ProtoReflect

func (x *CreateWalletResponse) ProtoReflect() protoreflect.Message

func (*CreateWalletResponse) Reset

func (x *CreateWalletResponse) Reset()

func (*CreateWalletResponse) String

func (x *CreateWalletResponse) String() string

type Currency

type Currency int32
const (
	Currency_BTC  Currency = 0
	Currency_LBTC Currency = 1
)

func (Currency) Descriptor

func (Currency) Descriptor() protoreflect.EnumDescriptor

func (Currency) Enum

func (x Currency) Enum() *Currency

func (Currency) EnumDescriptor deprecated

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

Deprecated: Use Currency.Descriptor instead.

func (Currency) Number

func (x Currency) Number() protoreflect.EnumNumber

func (Currency) String

func (x Currency) String() string

func (Currency) Type

type DepositRequest

type DepositRequest struct {

	// Percentage of inbound liquidity the channel that is opened in case the invoice cannot be paid should have.
	// 25 by default.
	InboundLiquidity uint32 `protobuf:"varint,1,opt,name=inbound_liquidity,json=inboundLiquidity,proto3" json:"inbound_liquidity,omitempty"`
	// contains filtered or unexported fields
}

func (*DepositRequest) Descriptor deprecated

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

Deprecated: Use DepositRequest.ProtoReflect.Descriptor instead.

func (*DepositRequest) GetInboundLiquidity

func (x *DepositRequest) GetInboundLiquidity() uint32

func (*DepositRequest) ProtoMessage

func (*DepositRequest) ProtoMessage()

func (*DepositRequest) ProtoReflect

func (x *DepositRequest) ProtoReflect() protoreflect.Message

func (*DepositRequest) Reset

func (x *DepositRequest) Reset()

func (*DepositRequest) String

func (x *DepositRequest) String() string

type DepositResponse

type DepositResponse struct {
	Id                 string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Address            string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	TimeoutBlockHeight uint32 `protobuf:"varint,3,opt,name=timeout_block_height,json=timeoutBlockHeight,proto3" json:"timeout_block_height,omitempty"`
	// contains filtered or unexported fields
}

func (*DepositResponse) Descriptor deprecated

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

Deprecated: Use DepositResponse.ProtoReflect.Descriptor instead.

func (*DepositResponse) GetAddress

func (x *DepositResponse) GetAddress() string

func (*DepositResponse) GetId

func (x *DepositResponse) GetId() string

func (*DepositResponse) GetTimeoutBlockHeight

func (x *DepositResponse) GetTimeoutBlockHeight() uint32

func (*DepositResponse) ProtoMessage

func (*DepositResponse) ProtoMessage()

func (*DepositResponse) ProtoReflect

func (x *DepositResponse) ProtoReflect() protoreflect.Message

func (*DepositResponse) Reset

func (x *DepositResponse) Reset()

func (*DepositResponse) String

func (x *DepositResponse) String() string

type Fees

type Fees struct {
	Percentage float32    `protobuf:"fixed32,1,opt,name=percentage,proto3" json:"percentage,omitempty"`
	Miner      *MinerFees `protobuf:"bytes,2,opt,name=miner,proto3" json:"miner,omitempty"`
	// contains filtered or unexported fields
}

func (*Fees) Descriptor deprecated

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

Deprecated: Use Fees.ProtoReflect.Descriptor instead.

func (*Fees) GetMiner

func (x *Fees) GetMiner() *MinerFees

func (*Fees) GetPercentage

func (x *Fees) GetPercentage() float32

func (*Fees) ProtoMessage

func (*Fees) ProtoMessage()

func (*Fees) ProtoReflect

func (x *Fees) ProtoReflect() protoreflect.Message

func (*Fees) Reset

func (x *Fees) Reset()

func (*Fees) String

func (x *Fees) String() string

type GetInfoRequest

type GetInfoRequest struct {
	// contains filtered or unexported fields
}

func (*GetInfoRequest) Descriptor deprecated

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

Deprecated: Use GetInfoRequest.ProtoReflect.Descriptor instead.

func (*GetInfoRequest) ProtoMessage

func (*GetInfoRequest) ProtoMessage()

func (*GetInfoRequest) ProtoReflect

func (x *GetInfoRequest) ProtoReflect() protoreflect.Message

func (*GetInfoRequest) Reset

func (x *GetInfoRequest) Reset()

func (*GetInfoRequest) String

func (x *GetInfoRequest) String() string

type GetInfoResponse

type GetInfoResponse struct {
	Version    string `protobuf:"bytes,9,opt,name=version,proto3" json:"version,omitempty"`
	Node       string `protobuf:"bytes,10,opt,name=node,proto3" json:"node,omitempty"`
	Network    string `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
	NodePubkey string `protobuf:"bytes,7,opt,name=node_pubkey,json=nodePubkey,proto3" json:"node_pubkey,omitempty"`
	// one of: running, disabled, error
	AutoSwapStatus string `protobuf:"bytes,11,opt,name=auto_swap_status,json=autoSwapStatus,proto3" json:"auto_swap_status,omitempty"`
	// mapping of the currency to the latest block height.
	BlockHeights *BlockHeights `protobuf:"bytes,8,opt,name=block_heights,json=blockHeights,proto3" json:"block_heights,omitempty"`
	// swaps that need a manual interaction to refund
	RefundableSwaps []string `protobuf:"bytes,12,rep,name=refundable_swaps,json=refundableSwaps,proto3" json:"refundable_swaps,omitempty"`
	// the currently authenticated tenant
	Tenant *Tenant `protobuf:"bytes,13,opt,name=tenant,proto3,oneof" json:"tenant,omitempty"`
	// swaps that need a manual interaction to claim
	ClaimableSwaps []string `protobuf:"bytes,14,rep,name=claimable_swaps,json=claimableSwaps,proto3" json:"claimable_swaps,omitempty"`
	// Deprecated: Marked as deprecated in boltzrpc.proto.
	Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	// Deprecated: Marked as deprecated in boltzrpc.proto.
	LndPubkey string `protobuf:"bytes,3,opt,name=lnd_pubkey,json=lndPubkey,proto3" json:"lnd_pubkey,omitempty"`
	// Deprecated: Marked as deprecated in boltzrpc.proto.
	BlockHeight uint32 `protobuf:"varint,4,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	// Deprecated: Marked as deprecated in boltzrpc.proto.
	PendingSwaps []string `protobuf:"bytes,5,rep,name=pending_swaps,json=pendingSwaps,proto3" json:"pending_swaps,omitempty"`
	// Deprecated: Marked as deprecated in boltzrpc.proto.
	PendingReverseSwaps []string `protobuf:"bytes,6,rep,name=pending_reverse_swaps,json=pendingReverseSwaps,proto3" json:"pending_reverse_swaps,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInfoResponse) Descriptor deprecated

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

Deprecated: Use GetInfoResponse.ProtoReflect.Descriptor instead.

func (*GetInfoResponse) GetAutoSwapStatus

func (x *GetInfoResponse) GetAutoSwapStatus() string

func (*GetInfoResponse) GetBlockHeight deprecated

func (x *GetInfoResponse) GetBlockHeight() uint32

Deprecated: Marked as deprecated in boltzrpc.proto.

func (*GetInfoResponse) GetBlockHeights

func (x *GetInfoResponse) GetBlockHeights() *BlockHeights

func (*GetInfoResponse) GetClaimableSwaps

func (x *GetInfoResponse) GetClaimableSwaps() []string

func (*GetInfoResponse) GetLndPubkey deprecated

func (x *GetInfoResponse) GetLndPubkey() string

Deprecated: Marked as deprecated in boltzrpc.proto.

func (*GetInfoResponse) GetNetwork

func (x *GetInfoResponse) GetNetwork() string

func (*GetInfoResponse) GetNode

func (x *GetInfoResponse) GetNode() string

func (*GetInfoResponse) GetNodePubkey

func (x *GetInfoResponse) GetNodePubkey() string

func (*GetInfoResponse) GetPendingReverseSwaps deprecated

func (x *GetInfoResponse) GetPendingReverseSwaps() []string

Deprecated: Marked as deprecated in boltzrpc.proto.

func (*GetInfoResponse) GetPendingSwaps deprecated

func (x *GetInfoResponse) GetPendingSwaps() []string

Deprecated: Marked as deprecated in boltzrpc.proto.

func (*GetInfoResponse) GetRefundableSwaps

func (x *GetInfoResponse) GetRefundableSwaps() []string

func (*GetInfoResponse) GetSymbol deprecated

func (x *GetInfoResponse) GetSymbol() string

Deprecated: Marked as deprecated in boltzrpc.proto.

func (*GetInfoResponse) GetTenant

func (x *GetInfoResponse) GetTenant() *Tenant

func (*GetInfoResponse) GetVersion

func (x *GetInfoResponse) GetVersion() string

func (*GetInfoResponse) ProtoMessage

func (*GetInfoResponse) ProtoMessage()

func (*GetInfoResponse) ProtoReflect

func (x *GetInfoResponse) ProtoReflect() protoreflect.Message

func (*GetInfoResponse) Reset

func (x *GetInfoResponse) Reset()

func (*GetInfoResponse) String

func (x *GetInfoResponse) String() string

type GetPairInfoRequest

type GetPairInfoRequest struct {
	Type SwapType `protobuf:"varint,1,opt,name=type,proto3,enum=boltzrpc.SwapType" json:"type,omitempty"`
	Pair *Pair    `protobuf:"bytes,2,opt,name=pair,proto3" json:"pair,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPairInfoRequest) Descriptor deprecated

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

Deprecated: Use GetPairInfoRequest.ProtoReflect.Descriptor instead.

func (*GetPairInfoRequest) GetPair

func (x *GetPairInfoRequest) GetPair() *Pair

func (*GetPairInfoRequest) GetType

func (x *GetPairInfoRequest) GetType() SwapType

func (*GetPairInfoRequest) ProtoMessage

func (*GetPairInfoRequest) ProtoMessage()

func (*GetPairInfoRequest) ProtoReflect

func (x *GetPairInfoRequest) ProtoReflect() protoreflect.Message

func (*GetPairInfoRequest) Reset

func (x *GetPairInfoRequest) Reset()

func (*GetPairInfoRequest) String

func (x *GetPairInfoRequest) String() string

type GetPairsResponse

type GetPairsResponse struct {
	Submarine []*PairInfo `protobuf:"bytes,1,rep,name=submarine,proto3" json:"submarine,omitempty"`
	Reverse   []*PairInfo `protobuf:"bytes,2,rep,name=reverse,proto3" json:"reverse,omitempty"`
	Chain     []*PairInfo `protobuf:"bytes,3,rep,name=chain,proto3" json:"chain,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPairsResponse) Descriptor deprecated

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

Deprecated: Use GetPairsResponse.ProtoReflect.Descriptor instead.

func (*GetPairsResponse) GetChain

func (x *GetPairsResponse) GetChain() []*PairInfo

func (*GetPairsResponse) GetReverse

func (x *GetPairsResponse) GetReverse() []*PairInfo

func (*GetPairsResponse) GetSubmarine

func (x *GetPairsResponse) GetSubmarine() []*PairInfo

func (*GetPairsResponse) ProtoMessage

func (*GetPairsResponse) ProtoMessage()

func (*GetPairsResponse) ProtoReflect

func (x *GetPairsResponse) ProtoReflect() protoreflect.Message

func (*GetPairsResponse) Reset

func (x *GetPairsResponse) Reset()

func (*GetPairsResponse) String

func (x *GetPairsResponse) String() string

type GetServiceInfoRequest

type GetServiceInfoRequest struct {
	// contains filtered or unexported fields
}

func (*GetServiceInfoRequest) Descriptor deprecated

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

Deprecated: Use GetServiceInfoRequest.ProtoReflect.Descriptor instead.

func (*GetServiceInfoRequest) ProtoMessage

func (*GetServiceInfoRequest) ProtoMessage()

func (*GetServiceInfoRequest) ProtoReflect

func (x *GetServiceInfoRequest) ProtoReflect() protoreflect.Message

func (*GetServiceInfoRequest) Reset

func (x *GetServiceInfoRequest) Reset()

func (*GetServiceInfoRequest) String

func (x *GetServiceInfoRequest) String() string

type GetServiceInfoResponse

type GetServiceInfoResponse struct {
	Fees   *Fees   `protobuf:"bytes,1,opt,name=fees,proto3" json:"fees,omitempty"`
	Limits *Limits `protobuf:"bytes,2,opt,name=limits,proto3" json:"limits,omitempty"`
	// contains filtered or unexported fields
}

func (*GetServiceInfoResponse) Descriptor deprecated

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

Deprecated: Use GetServiceInfoResponse.ProtoReflect.Descriptor instead.

func (*GetServiceInfoResponse) GetFees

func (x *GetServiceInfoResponse) GetFees() *Fees

func (*GetServiceInfoResponse) GetLimits

func (x *GetServiceInfoResponse) GetLimits() *Limits

func (*GetServiceInfoResponse) ProtoMessage

func (*GetServiceInfoResponse) ProtoMessage()

func (*GetServiceInfoResponse) ProtoReflect

func (x *GetServiceInfoResponse) ProtoReflect() protoreflect.Message

func (*GetServiceInfoResponse) Reset

func (x *GetServiceInfoResponse) Reset()

func (*GetServiceInfoResponse) String

func (x *GetServiceInfoResponse) String() string

type GetStatsRequest

type GetStatsRequest struct {
	Include IncludeSwaps `protobuf:"varint,1,opt,name=include,proto3,enum=boltzrpc.IncludeSwaps" json:"include,omitempty"`
	// contains filtered or unexported fields
}

func (*GetStatsRequest) Descriptor deprecated

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

Deprecated: Use GetStatsRequest.ProtoReflect.Descriptor instead.

func (*GetStatsRequest) GetInclude

func (x *GetStatsRequest) GetInclude() IncludeSwaps

func (*GetStatsRequest) ProtoMessage

func (*GetStatsRequest) ProtoMessage()

func (*GetStatsRequest) ProtoReflect

func (x *GetStatsRequest) ProtoReflect() protoreflect.Message

func (*GetStatsRequest) Reset

func (x *GetStatsRequest) Reset()

func (*GetStatsRequest) String

func (x *GetStatsRequest) String() string

type GetStatsResponse

type GetStatsResponse struct {
	Stats *SwapStats `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats,omitempty"`
	// contains filtered or unexported fields
}

func (*GetStatsResponse) Descriptor deprecated

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

Deprecated: Use GetStatsResponse.ProtoReflect.Descriptor instead.

func (*GetStatsResponse) GetStats

func (x *GetStatsResponse) GetStats() *SwapStats

func (*GetStatsResponse) ProtoMessage

func (*GetStatsResponse) ProtoMessage()

func (*GetStatsResponse) ProtoReflect

func (x *GetStatsResponse) ProtoReflect() protoreflect.Message

func (*GetStatsResponse) Reset

func (x *GetStatsResponse) Reset()

func (*GetStatsResponse) String

func (x *GetStatsResponse) String() string

type GetSubaccountsRequest

type GetSubaccountsRequest struct {
	WalletId uint64 `protobuf:"varint,1,opt,name=wallet_id,json=walletId,proto3" json:"wallet_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSubaccountsRequest) Descriptor deprecated

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

Deprecated: Use GetSubaccountsRequest.ProtoReflect.Descriptor instead.

func (*GetSubaccountsRequest) GetWalletId

func (x *GetSubaccountsRequest) GetWalletId() uint64

func (*GetSubaccountsRequest) ProtoMessage

func (*GetSubaccountsRequest) ProtoMessage()

func (*GetSubaccountsRequest) ProtoReflect

func (x *GetSubaccountsRequest) ProtoReflect() protoreflect.Message

func (*GetSubaccountsRequest) Reset

func (x *GetSubaccountsRequest) Reset()

func (*GetSubaccountsRequest) String

func (x *GetSubaccountsRequest) String() string

type GetSubaccountsResponse

type GetSubaccountsResponse struct {
	Current     *uint64       `protobuf:"varint,1,opt,name=current,proto3,oneof" json:"current,omitempty"`
	Subaccounts []*Subaccount `protobuf:"bytes,2,rep,name=subaccounts,proto3" json:"subaccounts,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSubaccountsResponse) Descriptor deprecated

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

Deprecated: Use GetSubaccountsResponse.ProtoReflect.Descriptor instead.

func (*GetSubaccountsResponse) GetCurrent

func (x *GetSubaccountsResponse) GetCurrent() uint64

func (*GetSubaccountsResponse) GetSubaccounts

func (x *GetSubaccountsResponse) GetSubaccounts() []*Subaccount

func (*GetSubaccountsResponse) ProtoMessage

func (*GetSubaccountsResponse) ProtoMessage()

func (*GetSubaccountsResponse) ProtoReflect

func (x *GetSubaccountsResponse) ProtoReflect() protoreflect.Message

func (*GetSubaccountsResponse) Reset

func (x *GetSubaccountsResponse) Reset()

func (*GetSubaccountsResponse) String

func (x *GetSubaccountsResponse) String() string

type GetSwapInfoRequest

type GetSwapInfoRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSwapInfoRequest) Descriptor deprecated

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

Deprecated: Use GetSwapInfoRequest.ProtoReflect.Descriptor instead.

func (*GetSwapInfoRequest) GetId

func (x *GetSwapInfoRequest) GetId() string

func (*GetSwapInfoRequest) ProtoMessage

func (*GetSwapInfoRequest) ProtoMessage()

func (*GetSwapInfoRequest) ProtoReflect

func (x *GetSwapInfoRequest) ProtoReflect() protoreflect.Message

func (*GetSwapInfoRequest) Reset

func (x *GetSwapInfoRequest) Reset()

func (*GetSwapInfoRequest) String

func (x *GetSwapInfoRequest) String() string

type GetSwapInfoResponse

type GetSwapInfoResponse struct {
	Swap            *SwapInfo            `protobuf:"bytes,1,opt,name=swap,proto3" json:"swap,omitempty"`
	ChannelCreation *ChannelCreationInfo `protobuf:"bytes,2,opt,name=channel_creation,json=channelCreation,proto3" json:"channel_creation,omitempty"`
	ReverseSwap     *ReverseSwapInfo     `protobuf:"bytes,3,opt,name=reverse_swap,json=reverseSwap,proto3" json:"reverse_swap,omitempty"`
	ChainSwap       *ChainSwapInfo       `protobuf:"bytes,4,opt,name=chain_swap,json=chainSwap,proto3" json:"chain_swap,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSwapInfoResponse) Descriptor deprecated

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

Deprecated: Use GetSwapInfoResponse.ProtoReflect.Descriptor instead.

func (*GetSwapInfoResponse) GetChainSwap

func (x *GetSwapInfoResponse) GetChainSwap() *ChainSwapInfo

func (*GetSwapInfoResponse) GetChannelCreation

func (x *GetSwapInfoResponse) GetChannelCreation() *ChannelCreationInfo

func (*GetSwapInfoResponse) GetReverseSwap

func (x *GetSwapInfoResponse) GetReverseSwap() *ReverseSwapInfo

func (*GetSwapInfoResponse) GetSwap

func (x *GetSwapInfoResponse) GetSwap() *SwapInfo

func (*GetSwapInfoResponse) ProtoMessage

func (*GetSwapInfoResponse) ProtoMessage()

func (*GetSwapInfoResponse) ProtoReflect

func (x *GetSwapInfoResponse) ProtoReflect() protoreflect.Message

func (*GetSwapInfoResponse) Reset

func (x *GetSwapInfoResponse) Reset()

func (*GetSwapInfoResponse) String

func (x *GetSwapInfoResponse) String() string

type GetTenantRequest

type GetTenantRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTenantRequest) Descriptor deprecated

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

Deprecated: Use GetTenantRequest.ProtoReflect.Descriptor instead.

func (*GetTenantRequest) GetName

func (x *GetTenantRequest) GetName() string

func (*GetTenantRequest) ProtoMessage

func (*GetTenantRequest) ProtoMessage()

func (*GetTenantRequest) ProtoReflect

func (x *GetTenantRequest) ProtoReflect() protoreflect.Message

func (*GetTenantRequest) Reset

func (x *GetTenantRequest) Reset()

func (*GetTenantRequest) String

func (x *GetTenantRequest) String() string

type GetWalletCredentialsRequest

type GetWalletCredentialsRequest struct {
	Id       uint64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Password *string `protobuf:"bytes,2,opt,name=password,proto3,oneof" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*GetWalletCredentialsRequest) Descriptor deprecated

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

Deprecated: Use GetWalletCredentialsRequest.ProtoReflect.Descriptor instead.

func (*GetWalletCredentialsRequest) GetId

func (*GetWalletCredentialsRequest) GetPassword

func (x *GetWalletCredentialsRequest) GetPassword() string

func (*GetWalletCredentialsRequest) ProtoMessage

func (*GetWalletCredentialsRequest) ProtoMessage()

func (*GetWalletCredentialsRequest) ProtoReflect

func (*GetWalletCredentialsRequest) Reset

func (x *GetWalletCredentialsRequest) Reset()

func (*GetWalletCredentialsRequest) String

func (x *GetWalletCredentialsRequest) String() string

type GetWalletRequest

type GetWalletRequest struct {
	Name *string `protobuf:"bytes,1,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Id   *uint64 `protobuf:"varint,2,opt,name=id,proto3,oneof" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetWalletRequest) Descriptor deprecated

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

Deprecated: Use GetWalletRequest.ProtoReflect.Descriptor instead.

func (*GetWalletRequest) GetId

func (x *GetWalletRequest) GetId() uint64

func (*GetWalletRequest) GetName

func (x *GetWalletRequest) GetName() string

func (*GetWalletRequest) ProtoMessage

func (*GetWalletRequest) ProtoMessage()

func (*GetWalletRequest) ProtoReflect

func (x *GetWalletRequest) ProtoReflect() protoreflect.Message

func (*GetWalletRequest) Reset

func (x *GetWalletRequest) Reset()

func (*GetWalletRequest) String

func (x *GetWalletRequest) String() string

type GetWalletsRequest

type GetWalletsRequest struct {
	Currency        *Currency `protobuf:"varint,1,opt,name=currency,proto3,enum=boltzrpc.Currency,oneof" json:"currency,omitempty"`
	IncludeReadonly *bool     `protobuf:"varint,2,opt,name=include_readonly,json=includeReadonly,proto3,oneof" json:"include_readonly,omitempty"`
	// contains filtered or unexported fields
}

func (*GetWalletsRequest) Descriptor deprecated

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

Deprecated: Use GetWalletsRequest.ProtoReflect.Descriptor instead.

func (*GetWalletsRequest) GetCurrency

func (x *GetWalletsRequest) GetCurrency() Currency

func (*GetWalletsRequest) GetIncludeReadonly

func (x *GetWalletsRequest) GetIncludeReadonly() bool

func (*GetWalletsRequest) ProtoMessage

func (*GetWalletsRequest) ProtoMessage()

func (*GetWalletsRequest) ProtoReflect

func (x *GetWalletsRequest) ProtoReflect() protoreflect.Message

func (*GetWalletsRequest) Reset

func (x *GetWalletsRequest) Reset()

func (*GetWalletsRequest) String

func (x *GetWalletsRequest) String() string

type ImportWalletRequest

type ImportWalletRequest struct {
	Credentials *WalletCredentials `protobuf:"bytes,1,opt,name=credentials,proto3" json:"credentials,omitempty"`
	Params      *WalletParams      `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

func (*ImportWalletRequest) Descriptor deprecated

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

Deprecated: Use ImportWalletRequest.ProtoReflect.Descriptor instead.

func (*ImportWalletRequest) GetCredentials

func (x *ImportWalletRequest) GetCredentials() *WalletCredentials

func (*ImportWalletRequest) GetParams

func (x *ImportWalletRequest) GetParams() *WalletParams

func (*ImportWalletRequest) ProtoMessage

func (*ImportWalletRequest) ProtoMessage()

func (*ImportWalletRequest) ProtoReflect

func (x *ImportWalletRequest) ProtoReflect() protoreflect.Message

func (*ImportWalletRequest) Reset

func (x *ImportWalletRequest) Reset()

func (*ImportWalletRequest) String

func (x *ImportWalletRequest) String() string

type ImportWalletResponse

type ImportWalletResponse struct {
	// contains filtered or unexported fields
}

func (*ImportWalletResponse) Descriptor deprecated

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

Deprecated: Use ImportWalletResponse.ProtoReflect.Descriptor instead.

func (*ImportWalletResponse) ProtoMessage

func (*ImportWalletResponse) ProtoMessage()

func (*ImportWalletResponse) ProtoReflect

func (x *ImportWalletResponse) ProtoReflect() protoreflect.Message

func (*ImportWalletResponse) Reset

func (x *ImportWalletResponse) Reset()

func (*ImportWalletResponse) String

func (x *ImportWalletResponse) String() string

type IncludeSwaps

type IncludeSwaps int32
const (
	IncludeSwaps_ALL    IncludeSwaps = 0
	IncludeSwaps_MANUAL IncludeSwaps = 1
	IncludeSwaps_AUTO   IncludeSwaps = 2
)

func (IncludeSwaps) Descriptor

func (IncludeSwaps) Enum

func (x IncludeSwaps) Enum() *IncludeSwaps

func (IncludeSwaps) EnumDescriptor deprecated

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

Deprecated: Use IncludeSwaps.Descriptor instead.

func (IncludeSwaps) Number

func (IncludeSwaps) String

func (x IncludeSwaps) String() string

func (IncludeSwaps) Type

type LightningChannel

type LightningChannel struct {
	Id          *ChannelId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Capacity    uint64     `protobuf:"varint,2,opt,name=capacity,proto3" json:"capacity,omitempty"`
	OutboundSat uint64     `protobuf:"varint,3,opt,name=outbound_sat,json=outboundSat,proto3" json:"outbound_sat,omitempty"`
	InboundSat  uint64     `protobuf:"varint,4,opt,name=inbound_sat,json=inboundSat,proto3" json:"inbound_sat,omitempty"`
	PeerId      string     `protobuf:"bytes,5,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
	// contains filtered or unexported fields
}

func (*LightningChannel) Descriptor deprecated

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

Deprecated: Use LightningChannel.ProtoReflect.Descriptor instead.

func (*LightningChannel) GetCapacity

func (x *LightningChannel) GetCapacity() uint64

func (*LightningChannel) GetId

func (x *LightningChannel) GetId() *ChannelId

func (*LightningChannel) GetInboundSat

func (x *LightningChannel) GetInboundSat() uint64

func (*LightningChannel) GetOutboundSat

func (x *LightningChannel) GetOutboundSat() uint64

func (*LightningChannel) GetPeerId

func (x *LightningChannel) GetPeerId() string

func (*LightningChannel) ProtoMessage

func (*LightningChannel) ProtoMessage()

func (*LightningChannel) ProtoReflect

func (x *LightningChannel) ProtoReflect() protoreflect.Message

func (*LightningChannel) Reset

func (x *LightningChannel) Reset()

func (*LightningChannel) String

func (x *LightningChannel) String() string

type Limits

type Limits struct {
	Minimal               uint64 `protobuf:"varint,1,opt,name=minimal,proto3" json:"minimal,omitempty"`
	Maximal               uint64 `protobuf:"varint,2,opt,name=maximal,proto3" json:"maximal,omitempty"`
	MaximalZeroConfAmount uint64 `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Limits) Descriptor deprecated

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

Deprecated: Use Limits.ProtoReflect.Descriptor instead.

func (*Limits) GetMaximal

func (x *Limits) GetMaximal() uint64

func (*Limits) GetMaximalZeroConfAmount

func (x *Limits) GetMaximalZeroConfAmount() uint64

func (*Limits) GetMinimal

func (x *Limits) GetMinimal() uint64

func (*Limits) ProtoMessage

func (*Limits) ProtoMessage()

func (*Limits) ProtoReflect

func (x *Limits) ProtoReflect() protoreflect.Message

func (*Limits) Reset

func (x *Limits) Reset()

func (*Limits) String

func (x *Limits) String() string

type ListSwapsRequest

type ListSwapsRequest struct {
	From    *Currency    `protobuf:"varint,1,opt,name=from,proto3,enum=boltzrpc.Currency,oneof" json:"from,omitempty"`
	To      *Currency    `protobuf:"varint,2,opt,name=to,proto3,enum=boltzrpc.Currency,oneof" json:"to,omitempty"`
	State   *SwapState   `protobuf:"varint,4,opt,name=state,proto3,enum=boltzrpc.SwapState,oneof" json:"state,omitempty"`
	Include IncludeSwaps `protobuf:"varint,5,opt,name=include,proto3,enum=boltzrpc.IncludeSwaps" json:"include,omitempty"`
	Limit   *uint64      `protobuf:"varint,6,opt,name=limit,proto3,oneof" json:"limit,omitempty"`
	Offset  *uint64      `protobuf:"varint,7,opt,name=offset,proto3,oneof" json:"offset,omitempty"`
	// wether to return swaps in the shared `all_swaps` list or in the detailed lists.
	// the `limit` and `offset` are only considered when `unify` is true.
	Unify *bool `protobuf:"varint,8,opt,name=unify,proto3,oneof" json:"unify,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSwapsRequest) Descriptor deprecated

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

Deprecated: Use ListSwapsRequest.ProtoReflect.Descriptor instead.

func (*ListSwapsRequest) GetFrom

func (x *ListSwapsRequest) GetFrom() Currency

func (*ListSwapsRequest) GetInclude

func (x *ListSwapsRequest) GetInclude() IncludeSwaps

func (*ListSwapsRequest) GetLimit

func (x *ListSwapsRequest) GetLimit() uint64

func (*ListSwapsRequest) GetOffset

func (x *ListSwapsRequest) GetOffset() uint64

func (*ListSwapsRequest) GetState

func (x *ListSwapsRequest) GetState() SwapState

func (*ListSwapsRequest) GetTo

func (x *ListSwapsRequest) GetTo() Currency

func (*ListSwapsRequest) GetUnify

func (x *ListSwapsRequest) GetUnify() bool

func (*ListSwapsRequest) ProtoMessage

func (*ListSwapsRequest) ProtoMessage()

func (*ListSwapsRequest) ProtoReflect

func (x *ListSwapsRequest) ProtoReflect() protoreflect.Message

func (*ListSwapsRequest) Reset

func (x *ListSwapsRequest) Reset()

func (*ListSwapsRequest) String

func (x *ListSwapsRequest) String() string

type ListSwapsResponse

type ListSwapsResponse struct {
	Swaps []*SwapInfo `protobuf:"bytes,1,rep,name=swaps,proto3" json:"swaps,omitempty"`
	// Deprecated: Marked as deprecated in boltzrpc.proto.
	ChannelCreations []*CombinedChannelSwapInfo `protobuf:"bytes,2,rep,name=channel_creations,json=channelCreations,proto3" json:"channel_creations,omitempty"`
	ReverseSwaps     []*ReverseSwapInfo         `protobuf:"bytes,3,rep,name=reverse_swaps,json=reverseSwaps,proto3" json:"reverse_swaps,omitempty"`
	ChainSwaps       []*ChainSwapInfo           `protobuf:"bytes,4,rep,name=chain_swaps,json=chainSwaps,proto3" json:"chain_swaps,omitempty"`
	// populated when `unify` is set to true in the request
	AllSwaps []*AnySwapInfo `protobuf:"bytes,5,rep,name=all_swaps,json=allSwaps,proto3" json:"all_swaps,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSwapsResponse) Descriptor deprecated

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

Deprecated: Use ListSwapsResponse.ProtoReflect.Descriptor instead.

func (*ListSwapsResponse) GetAllSwaps

func (x *ListSwapsResponse) GetAllSwaps() []*AnySwapInfo

func (*ListSwapsResponse) GetChainSwaps

func (x *ListSwapsResponse) GetChainSwaps() []*ChainSwapInfo

func (*ListSwapsResponse) GetChannelCreations deprecated

func (x *ListSwapsResponse) GetChannelCreations() []*CombinedChannelSwapInfo

Deprecated: Marked as deprecated in boltzrpc.proto.

func (*ListSwapsResponse) GetReverseSwaps

func (x *ListSwapsResponse) GetReverseSwaps() []*ReverseSwapInfo

func (*ListSwapsResponse) GetSwaps

func (x *ListSwapsResponse) GetSwaps() []*SwapInfo

func (*ListSwapsResponse) ProtoMessage

func (*ListSwapsResponse) ProtoMessage()

func (*ListSwapsResponse) ProtoReflect

func (x *ListSwapsResponse) ProtoReflect() protoreflect.Message

func (*ListSwapsResponse) Reset

func (x *ListSwapsResponse) Reset()

func (*ListSwapsResponse) String

func (x *ListSwapsResponse) String() string

type ListTenantsRequest

type ListTenantsRequest struct {
	// contains filtered or unexported fields
}

func (*ListTenantsRequest) Descriptor deprecated

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

Deprecated: Use ListTenantsRequest.ProtoReflect.Descriptor instead.

func (*ListTenantsRequest) ProtoMessage

func (*ListTenantsRequest) ProtoMessage()

func (*ListTenantsRequest) ProtoReflect

func (x *ListTenantsRequest) ProtoReflect() protoreflect.Message

func (*ListTenantsRequest) Reset

func (x *ListTenantsRequest) Reset()

func (*ListTenantsRequest) String

func (x *ListTenantsRequest) String() string

type ListTenantsResponse

type ListTenantsResponse struct {
	Tenants []*Tenant `protobuf:"bytes,1,rep,name=tenants,proto3" json:"tenants,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTenantsResponse) Descriptor deprecated

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

Deprecated: Use ListTenantsResponse.ProtoReflect.Descriptor instead.

func (*ListTenantsResponse) GetTenants

func (x *ListTenantsResponse) GetTenants() []*Tenant

func (*ListTenantsResponse) ProtoMessage

func (*ListTenantsResponse) ProtoMessage()

func (*ListTenantsResponse) ProtoReflect

func (x *ListTenantsResponse) ProtoReflect() protoreflect.Message

func (*ListTenantsResponse) Reset

func (x *ListTenantsResponse) Reset()

func (*ListTenantsResponse) String

func (x *ListTenantsResponse) String() string

type ListWalletTransactionsRequest

type ListWalletTransactionsRequest struct {
	Id                 uint64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ExcludeSwapRelated *bool   `protobuf:"varint,2,opt,name=exclude_swap_related,json=excludeSwapRelated,proto3,oneof" json:"exclude_swap_related,omitempty"`
	Limit              *uint64 `protobuf:"varint,3,opt,name=limit,proto3,oneof" json:"limit,omitempty"`
	Offset             *uint64 `protobuf:"varint,4,opt,name=offset,proto3,oneof" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*ListWalletTransactionsRequest) Descriptor deprecated

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

Deprecated: Use ListWalletTransactionsRequest.ProtoReflect.Descriptor instead.

func (*ListWalletTransactionsRequest) GetExcludeSwapRelated

func (x *ListWalletTransactionsRequest) GetExcludeSwapRelated() bool

func (*ListWalletTransactionsRequest) GetId

func (*ListWalletTransactionsRequest) GetLimit

func (x *ListWalletTransactionsRequest) GetLimit() uint64

func (*ListWalletTransactionsRequest) GetOffset

func (x *ListWalletTransactionsRequest) GetOffset() uint64

func (*ListWalletTransactionsRequest) ProtoMessage

func (*ListWalletTransactionsRequest) ProtoMessage()

func (*ListWalletTransactionsRequest) ProtoReflect

func (*ListWalletTransactionsRequest) Reset

func (x *ListWalletTransactionsRequest) Reset()

func (*ListWalletTransactionsRequest) String

type ListWalletTransactionsResponse

type ListWalletTransactionsResponse struct {
	Transactions []*WalletTransaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"`
	// contains filtered or unexported fields
}

func (*ListWalletTransactionsResponse) Descriptor deprecated

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

Deprecated: Use ListWalletTransactionsResponse.ProtoReflect.Descriptor instead.

func (*ListWalletTransactionsResponse) GetTransactions

func (x *ListWalletTransactionsResponse) GetTransactions() []*WalletTransaction

func (*ListWalletTransactionsResponse) ProtoMessage

func (*ListWalletTransactionsResponse) ProtoMessage()

func (*ListWalletTransactionsResponse) ProtoReflect

func (*ListWalletTransactionsResponse) Reset

func (x *ListWalletTransactionsResponse) Reset()

func (*ListWalletTransactionsResponse) String

type MacaroonAction

type MacaroonAction int32
const (
	MacaroonAction_READ  MacaroonAction = 0
	MacaroonAction_WRITE MacaroonAction = 1
)

func (MacaroonAction) Descriptor

func (MacaroonAction) Enum

func (x MacaroonAction) Enum() *MacaroonAction

func (MacaroonAction) EnumDescriptor deprecated

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

Deprecated: Use MacaroonAction.Descriptor instead.

func (MacaroonAction) Number

func (MacaroonAction) String

func (x MacaroonAction) String() string

func (MacaroonAction) Type

type MacaroonPermissions

type MacaroonPermissions struct {
	Action MacaroonAction `protobuf:"varint,2,opt,name=action,proto3,enum=boltzrpc.MacaroonAction" json:"action,omitempty"`
	// contains filtered or unexported fields
}

func (*MacaroonPermissions) Descriptor deprecated

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

Deprecated: Use MacaroonPermissions.ProtoReflect.Descriptor instead.

func (*MacaroonPermissions) GetAction

func (x *MacaroonPermissions) GetAction() MacaroonAction

func (*MacaroonPermissions) ProtoMessage

func (*MacaroonPermissions) ProtoMessage()

func (*MacaroonPermissions) ProtoReflect

func (x *MacaroonPermissions) ProtoReflect() protoreflect.Message

func (*MacaroonPermissions) Reset

func (x *MacaroonPermissions) Reset()

func (*MacaroonPermissions) String

func (x *MacaroonPermissions) String() string

type MinerFees

type MinerFees struct {
	Normal  uint32 `protobuf:"varint,1,opt,name=normal,proto3" json:"normal,omitempty"`
	Reverse uint32 `protobuf:"varint,2,opt,name=reverse,proto3" json:"reverse,omitempty"`
	// contains filtered or unexported fields
}

func (*MinerFees) Descriptor deprecated

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

Deprecated: Use MinerFees.ProtoReflect.Descriptor instead.

func (*MinerFees) GetNormal

func (x *MinerFees) GetNormal() uint32

func (*MinerFees) GetReverse

func (x *MinerFees) GetReverse() uint32

func (*MinerFees) ProtoMessage

func (*MinerFees) ProtoMessage()

func (*MinerFees) ProtoReflect

func (x *MinerFees) ProtoReflect() protoreflect.Message

func (*MinerFees) Reset

func (x *MinerFees) Reset()

func (*MinerFees) String

func (x *MinerFees) String() string

type Pair

type Pair struct {
	From Currency `protobuf:"varint,1,opt,name=from,proto3,enum=boltzrpc.Currency" json:"from,omitempty"`
	To   Currency `protobuf:"varint,2,opt,name=to,proto3,enum=boltzrpc.Currency" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*Pair) Descriptor deprecated

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

Deprecated: Use Pair.ProtoReflect.Descriptor instead.

func (*Pair) GetFrom

func (x *Pair) GetFrom() Currency

func (*Pair) GetTo

func (x *Pair) GetTo() Currency

func (*Pair) ProtoMessage

func (*Pair) ProtoMessage()

func (*Pair) ProtoReflect

func (x *Pair) ProtoReflect() protoreflect.Message

func (*Pair) Reset

func (x *Pair) Reset()

func (*Pair) String

func (x *Pair) String() string

type PairInfo

type PairInfo struct {
	Pair   *Pair     `protobuf:"bytes,1,opt,name=pair,proto3" json:"pair,omitempty"`
	Fees   *SwapFees `protobuf:"bytes,2,opt,name=fees,proto3" json:"fees,omitempty"`
	Limits *Limits   `protobuf:"bytes,3,opt,name=limits,proto3" json:"limits,omitempty"`
	Hash   string    `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*PairInfo) Descriptor deprecated

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

Deprecated: Use PairInfo.ProtoReflect.Descriptor instead.

func (*PairInfo) GetFees

func (x *PairInfo) GetFees() *SwapFees

func (*PairInfo) GetHash

func (x *PairInfo) GetHash() string

func (*PairInfo) GetLimits

func (x *PairInfo) GetLimits() *Limits

func (*PairInfo) GetPair

func (x *PairInfo) GetPair() *Pair

func (*PairInfo) ProtoMessage

func (*PairInfo) ProtoMessage()

func (*PairInfo) ProtoReflect

func (x *PairInfo) ProtoReflect() protoreflect.Message

func (*PairInfo) Reset

func (x *PairInfo) Reset()

func (*PairInfo) String

func (x *PairInfo) String() string

type RefundSwapRequest

type RefundSwapRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Types that are assignable to Destination:
	//
	//	*RefundSwapRequest_Address
	//	*RefundSwapRequest_WalletId
	Destination isRefundSwapRequest_Destination `protobuf_oneof:"destination"`
	// contains filtered or unexported fields
}

func (*RefundSwapRequest) Descriptor deprecated

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

Deprecated: Use RefundSwapRequest.ProtoReflect.Descriptor instead.

func (*RefundSwapRequest) GetAddress

func (x *RefundSwapRequest) GetAddress() string

func (*RefundSwapRequest) GetDestination

func (m *RefundSwapRequest) GetDestination() isRefundSwapRequest_Destination

func (*RefundSwapRequest) GetId

func (x *RefundSwapRequest) GetId() string

func (*RefundSwapRequest) GetWalletId

func (x *RefundSwapRequest) GetWalletId() uint64

func (*RefundSwapRequest) ProtoMessage

func (*RefundSwapRequest) ProtoMessage()

func (*RefundSwapRequest) ProtoReflect

func (x *RefundSwapRequest) ProtoReflect() protoreflect.Message

func (*RefundSwapRequest) Reset

func (x *RefundSwapRequest) Reset()

func (*RefundSwapRequest) String

func (x *RefundSwapRequest) String() string

type RefundSwapRequest_Address

type RefundSwapRequest_Address struct {
	Address string `protobuf:"bytes,2,opt,name=address,proto3,oneof"`
}

type RefundSwapRequest_WalletId

type RefundSwapRequest_WalletId struct {
	WalletId uint64 `protobuf:"varint,3,opt,name=wallet_id,json=walletId,proto3,oneof"`
}

type RemoveWalletRequest

type RemoveWalletRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveWalletRequest) Descriptor deprecated

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

Deprecated: Use RemoveWalletRequest.ProtoReflect.Descriptor instead.

func (*RemoveWalletRequest) GetId

func (x *RemoveWalletRequest) GetId() uint64

func (*RemoveWalletRequest) ProtoMessage

func (*RemoveWalletRequest) ProtoMessage()

func (*RemoveWalletRequest) ProtoReflect

func (x *RemoveWalletRequest) ProtoReflect() protoreflect.Message

func (*RemoveWalletRequest) Reset

func (x *RemoveWalletRequest) Reset()

func (*RemoveWalletRequest) String

func (x *RemoveWalletRequest) String() string

type RemoveWalletResponse

type RemoveWalletResponse struct {
	// contains filtered or unexported fields
}

func (*RemoveWalletResponse) Descriptor deprecated

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

Deprecated: Use RemoveWalletResponse.ProtoReflect.Descriptor instead.

func (*RemoveWalletResponse) ProtoMessage

func (*RemoveWalletResponse) ProtoMessage()

func (*RemoveWalletResponse) ProtoReflect

func (x *RemoveWalletResponse) ProtoReflect() protoreflect.Message

func (*RemoveWalletResponse) Reset

func (x *RemoveWalletResponse) Reset()

func (*RemoveWalletResponse) String

func (x *RemoveWalletResponse) String() string

type ReverseSwapInfo

type ReverseSwapInfo struct {
	Id    string    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	State SwapState `protobuf:"varint,2,opt,name=state,proto3,enum=boltzrpc.SwapState" json:"state,omitempty"`
	Error string    `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// Latest status message of the Boltz backend
	Status              string       `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
	PrivateKey          string       `protobuf:"bytes,5,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	Preimage            string       `protobuf:"bytes,6,opt,name=preimage,proto3" json:"preimage,omitempty"`
	RedeemScript        string       `protobuf:"bytes,7,opt,name=redeem_script,json=redeemScript,proto3" json:"redeem_script,omitempty"`
	Invoice             string       `protobuf:"bytes,8,opt,name=invoice,proto3" json:"invoice,omitempty"`
	ClaimAddress        string       `protobuf:"bytes,9,opt,name=claim_address,json=claimAddress,proto3" json:"claim_address,omitempty"`
	OnchainAmount       uint64       `protobuf:"varint,10,opt,name=onchain_amount,json=onchainAmount,proto3" json:"onchain_amount,omitempty"`
	InvoiceAmount       uint64       `protobuf:"varint,25,opt,name=invoice_amount,json=invoiceAmount,proto3" json:"invoice_amount,omitempty"`
	TimeoutBlockHeight  uint32       `protobuf:"varint,11,opt,name=timeout_block_height,json=timeoutBlockHeight,proto3" json:"timeout_block_height,omitempty"`
	LockupTransactionId string       `protobuf:"bytes,12,opt,name=lockup_transaction_id,json=lockupTransactionId,proto3" json:"lockup_transaction_id,omitempty"`
	ClaimTransactionId  string       `protobuf:"bytes,13,opt,name=claim_transaction_id,json=claimTransactionId,proto3" json:"claim_transaction_id,omitempty"`
	Pair                *Pair        `protobuf:"bytes,14,opt,name=pair,proto3" json:"pair,omitempty"`
	ChanIds             []*ChannelId `protobuf:"bytes,15,rep,name=chan_ids,json=chanIds,proto3" json:"chan_ids,omitempty"`
	BlindingKey         *string      `protobuf:"bytes,16,opt,name=blinding_key,json=blindingKey,proto3,oneof" json:"blinding_key,omitempty"`
	CreatedAt           int64        `protobuf:"varint,17,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	PaidAt              *int64       `protobuf:"varint,23,opt,name=paid_at,json=paidAt,proto3,oneof" json:"paid_at,omitempty"` // the time when the invoice was paid
	ServiceFee          *uint64      `protobuf:"varint,18,opt,name=service_fee,json=serviceFee,proto3,oneof" json:"service_fee,omitempty"`
	OnchainFee          *uint64      `protobuf:"varint,19,opt,name=onchain_fee,json=onchainFee,proto3,oneof" json:"onchain_fee,omitempty"`
	RoutingFeeMsat      *uint64      `protobuf:"varint,20,opt,name=routing_fee_msat,json=routingFeeMsat,proto3,oneof" json:"routing_fee_msat,omitempty"`
	ExternalPay         bool         `protobuf:"varint,21,opt,name=external_pay,json=externalPay,proto3" json:"external_pay,omitempty"`
	TenantId            uint64       `protobuf:"varint,22,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	IsAuto              bool         `protobuf:"varint,24,opt,name=is_auto,json=isAuto,proto3" json:"is_auto,omitempty"`
	// contains filtered or unexported fields
}

func (*ReverseSwapInfo) Descriptor deprecated

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

Deprecated: Use ReverseSwapInfo.ProtoReflect.Descriptor instead.

func (*ReverseSwapInfo) GetBlindingKey

func (x *ReverseSwapInfo) GetBlindingKey() string

func (*ReverseSwapInfo) GetChanIds

func (x *ReverseSwapInfo) GetChanIds() []*ChannelId

func (*ReverseSwapInfo) GetClaimAddress

func (x *ReverseSwapInfo) GetClaimAddress() string

func (*ReverseSwapInfo) GetClaimTransactionId

func (x *ReverseSwapInfo) GetClaimTransactionId() string

func (*ReverseSwapInfo) GetCreatedAt

func (x *ReverseSwapInfo) GetCreatedAt() int64

func (*ReverseSwapInfo) GetError

func (x *ReverseSwapInfo) GetError() string

func (*ReverseSwapInfo) GetExternalPay

func (x *ReverseSwapInfo) GetExternalPay() bool

func (*ReverseSwapInfo) GetId

func (x *ReverseSwapInfo) GetId() string

func (*ReverseSwapInfo) GetInvoice

func (x *ReverseSwapInfo) GetInvoice() string

func (*ReverseSwapInfo) GetInvoiceAmount

func (x *ReverseSwapInfo) GetInvoiceAmount() uint64

func (*ReverseSwapInfo) GetIsAuto

func (x *ReverseSwapInfo) GetIsAuto() bool

func (*ReverseSwapInfo) GetLockupTransactionId

func (x *ReverseSwapInfo) GetLockupTransactionId() string

func (*ReverseSwapInfo) GetOnchainAmount

func (x *ReverseSwapInfo) GetOnchainAmount() uint64

func (*ReverseSwapInfo) GetOnchainFee

func (x *ReverseSwapInfo) GetOnchainFee() uint64

func (*ReverseSwapInfo) GetPaidAt

func (x *ReverseSwapInfo) GetPaidAt() int64

func (*ReverseSwapInfo) GetPair

func (x *ReverseSwapInfo) GetPair() *Pair

func (*ReverseSwapInfo) GetPreimage

func (x *ReverseSwapInfo) GetPreimage() string

func (*ReverseSwapInfo) GetPrivateKey

func (x *ReverseSwapInfo) GetPrivateKey() string

func (*ReverseSwapInfo) GetRedeemScript

func (x *ReverseSwapInfo) GetRedeemScript() string

func (*ReverseSwapInfo) GetRoutingFeeMsat

func (x *ReverseSwapInfo) GetRoutingFeeMsat() uint64

func (*ReverseSwapInfo) GetServiceFee

func (x *ReverseSwapInfo) GetServiceFee() uint64

func (*ReverseSwapInfo) GetState

func (x *ReverseSwapInfo) GetState() SwapState

func (*ReverseSwapInfo) GetStatus

func (x *ReverseSwapInfo) GetStatus() string

func (*ReverseSwapInfo) GetTenantId

func (x *ReverseSwapInfo) GetTenantId() uint64

func (*ReverseSwapInfo) GetTimeoutBlockHeight

func (x *ReverseSwapInfo) GetTimeoutBlockHeight() uint32

func (*ReverseSwapInfo) ProtoMessage

func (*ReverseSwapInfo) ProtoMessage()

func (*ReverseSwapInfo) ProtoReflect

func (x *ReverseSwapInfo) ProtoReflect() protoreflect.Message

func (*ReverseSwapInfo) Reset

func (x *ReverseSwapInfo) Reset()

func (*ReverseSwapInfo) String

func (x *ReverseSwapInfo) String() string

type SetSubaccountRequest

type SetSubaccountRequest struct {
	WalletId uint64 `protobuf:"varint,1,opt,name=wallet_id,json=walletId,proto3" json:"wallet_id,omitempty"`
	// The subaccount to use. If not set, a new one will be created.
	Subaccount *uint64 `protobuf:"varint,2,opt,name=subaccount,proto3,oneof" json:"subaccount,omitempty"`
	// contains filtered or unexported fields
}

func (*SetSubaccountRequest) Descriptor deprecated

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

Deprecated: Use SetSubaccountRequest.ProtoReflect.Descriptor instead.

func (*SetSubaccountRequest) GetSubaccount

func (x *SetSubaccountRequest) GetSubaccount() uint64

func (*SetSubaccountRequest) GetWalletId

func (x *SetSubaccountRequest) GetWalletId() uint64

func (*SetSubaccountRequest) ProtoMessage

func (*SetSubaccountRequest) ProtoMessage()

func (*SetSubaccountRequest) ProtoReflect

func (x *SetSubaccountRequest) ProtoReflect() protoreflect.Message

func (*SetSubaccountRequest) Reset

func (x *SetSubaccountRequest) Reset()

func (*SetSubaccountRequest) String

func (x *SetSubaccountRequest) String() string

type Subaccount

type Subaccount struct {
	Balance     *Balance `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"`
	Pointer     uint64   `protobuf:"varint,2,opt,name=pointer,proto3" json:"pointer,omitempty"`
	Type        string   `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	Descriptors []string `protobuf:"bytes,4,rep,name=descriptors,proto3" json:"descriptors,omitempty"`
	// contains filtered or unexported fields
}

func (*Subaccount) Descriptor deprecated

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

Deprecated: Use Subaccount.ProtoReflect.Descriptor instead.

func (*Subaccount) GetBalance

func (x *Subaccount) GetBalance() *Balance

func (*Subaccount) GetDescriptors

func (x *Subaccount) GetDescriptors() []string

func (*Subaccount) GetPointer

func (x *Subaccount) GetPointer() uint64

func (*Subaccount) GetType

func (x *Subaccount) GetType() string

func (*Subaccount) ProtoMessage

func (*Subaccount) ProtoMessage()

func (*Subaccount) ProtoReflect

func (x *Subaccount) ProtoReflect() protoreflect.Message

func (*Subaccount) Reset

func (x *Subaccount) Reset()

func (*Subaccount) String

func (x *Subaccount) String() string

type SwapFees

type SwapFees struct {
	Percentage float64 `protobuf:"fixed64,1,opt,name=percentage,proto3" json:"percentage,omitempty"`
	MinerFees  uint64  `protobuf:"varint,2,opt,name=miner_fees,json=minerFees,proto3" json:"miner_fees,omitempty"`
	// contains filtered or unexported fields
}

func (*SwapFees) Descriptor deprecated

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

Deprecated: Use SwapFees.ProtoReflect.Descriptor instead.

func (*SwapFees) GetMinerFees

func (x *SwapFees) GetMinerFees() uint64

func (*SwapFees) GetPercentage

func (x *SwapFees) GetPercentage() float64

func (*SwapFees) ProtoMessage

func (*SwapFees) ProtoMessage()

func (*SwapFees) ProtoReflect

func (x *SwapFees) ProtoReflect() protoreflect.Message

func (*SwapFees) Reset

func (x *SwapFees) Reset()

func (*SwapFees) String

func (x *SwapFees) String() string

type SwapInfo

type SwapInfo struct {
	Id    string    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Pair  *Pair     `protobuf:"bytes,22,opt,name=pair,proto3" json:"pair,omitempty"`
	State SwapState `protobuf:"varint,2,opt,name=state,proto3,enum=boltzrpc.SwapState" json:"state,omitempty"`
	Error string    `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// Latest status message of the Boltz backend
	Status              string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
	PrivateKey          string `protobuf:"bytes,5,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	Preimage            string `protobuf:"bytes,6,opt,name=preimage,proto3" json:"preimage,omitempty"`
	RedeemScript        string `protobuf:"bytes,7,opt,name=redeem_script,json=redeemScript,proto3" json:"redeem_script,omitempty"`
	Invoice             string `protobuf:"bytes,8,opt,name=invoice,proto3" json:"invoice,omitempty"`
	LockupAddress       string `protobuf:"bytes,9,opt,name=lockup_address,json=lockupAddress,proto3" json:"lockup_address,omitempty"`
	ExpectedAmount      uint64 `protobuf:"varint,10,opt,name=expected_amount,json=expectedAmount,proto3" json:"expected_amount,omitempty"`
	TimeoutBlockHeight  uint32 `protobuf:"varint,11,opt,name=timeout_block_height,json=timeoutBlockHeight,proto3" json:"timeout_block_height,omitempty"`
	LockupTransactionId string `protobuf:"bytes,12,opt,name=lockup_transaction_id,json=lockupTransactionId,proto3" json:"lockup_transaction_id,omitempty"`
	// If the swap times out or fails for some other reason, the damon will automatically refund the coins sent to the
	// `lockup_address` back to the configured wallet or the address specified in the `refund_address` field.
	RefundTransactionId string       `protobuf:"bytes,13,opt,name=refund_transaction_id,json=refundTransactionId,proto3" json:"refund_transaction_id,omitempty"`
	RefundAddress       *string      `protobuf:"bytes,19,opt,name=refund_address,json=refundAddress,proto3,oneof" json:"refund_address,omitempty"`
	ChanIds             []*ChannelId `protobuf:"bytes,14,rep,name=chan_ids,json=chanIds,proto3" json:"chan_ids,omitempty"`
	BlindingKey         *string      `protobuf:"bytes,15,opt,name=blinding_key,json=blindingKey,proto3,oneof" json:"blinding_key,omitempty"`
	CreatedAt           int64        `protobuf:"varint,16,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	ServiceFee          *uint64      `protobuf:"varint,17,opt,name=service_fee,json=serviceFee,proto3,oneof" json:"service_fee,omitempty"`
	OnchainFee          *uint64      `protobuf:"varint,18,opt,name=onchain_fee,json=onchainFee,proto3,oneof" json:"onchain_fee,omitempty"`
	// internal wallet which was used to pay the swap
	WalletId *uint64 `protobuf:"varint,20,opt,name=wallet_id,json=walletId,proto3,oneof" json:"wallet_id,omitempty"`
	TenantId uint64  `protobuf:"varint,21,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	IsAuto   bool    `protobuf:"varint,23,opt,name=is_auto,json=isAuto,proto3" json:"is_auto,omitempty"`
	// contains filtered or unexported fields
}

func (*SwapInfo) Descriptor deprecated

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

Deprecated: Use SwapInfo.ProtoReflect.Descriptor instead.

func (*SwapInfo) GetBlindingKey

func (x *SwapInfo) GetBlindingKey() string

func (*SwapInfo) GetChanIds

func (x *SwapInfo) GetChanIds() []*ChannelId

func (*SwapInfo) GetCreatedAt

func (x *SwapInfo) GetCreatedAt() int64

func (*SwapInfo) GetError

func (x *SwapInfo) GetError() string

func (*SwapInfo) GetExpectedAmount

func (x *SwapInfo) GetExpectedAmount() uint64

func (*SwapInfo) GetId

func (x *SwapInfo) GetId() string

func (*SwapInfo) GetInvoice

func (x *SwapInfo) GetInvoice() string

func (*SwapInfo) GetIsAuto

func (x *SwapInfo) GetIsAuto() bool

func (*SwapInfo) GetLockupAddress

func (x *SwapInfo) GetLockupAddress() string

func (*SwapInfo) GetLockupTransactionId

func (x *SwapInfo) GetLockupTransactionId() string

func (*SwapInfo) GetOnchainFee

func (x *SwapInfo) GetOnchainFee() uint64

func (*SwapInfo) GetPair

func (x *SwapInfo) GetPair() *Pair

func (*SwapInfo) GetPreimage

func (x *SwapInfo) GetPreimage() string

func (*SwapInfo) GetPrivateKey

func (x *SwapInfo) GetPrivateKey() string

func (*SwapInfo) GetRedeemScript

func (x *SwapInfo) GetRedeemScript() string

func (*SwapInfo) GetRefundAddress

func (x *SwapInfo) GetRefundAddress() string

func (*SwapInfo) GetRefundTransactionId

func (x *SwapInfo) GetRefundTransactionId() string

func (*SwapInfo) GetServiceFee

func (x *SwapInfo) GetServiceFee() uint64

func (*SwapInfo) GetState

func (x *SwapInfo) GetState() SwapState

func (*SwapInfo) GetStatus

func (x *SwapInfo) GetStatus() string

func (*SwapInfo) GetTenantId

func (x *SwapInfo) GetTenantId() uint64

func (*SwapInfo) GetTimeoutBlockHeight

func (x *SwapInfo) GetTimeoutBlockHeight() uint32

func (*SwapInfo) GetWalletId

func (x *SwapInfo) GetWalletId() uint64

func (*SwapInfo) ProtoMessage

func (*SwapInfo) ProtoMessage()

func (*SwapInfo) ProtoReflect

func (x *SwapInfo) ProtoReflect() protoreflect.Message

func (*SwapInfo) Reset

func (x *SwapInfo) Reset()

func (*SwapInfo) String

func (x *SwapInfo) String() string

type SwapState

type SwapState int32
const (
	SwapState_PENDING    SwapState = 0
	SwapState_SUCCESSFUL SwapState = 1
	// Unknown client error. Check the error field of the message for more information
	SwapState_ERROR SwapState = 2
	// Unknown server error. Check the status field of the message for more information
	SwapState_SERVER_ERROR SwapState = 3
	// Client refunded locked coins after the HTLC timed out
	SwapState_REFUNDED SwapState = 4
	// Client noticed that the HTLC timed out but didn't find any outputs to refund
	SwapState_ABANDONED SwapState = 5
)

func (SwapState) Descriptor

func (SwapState) Descriptor() protoreflect.EnumDescriptor

func (SwapState) Enum

func (x SwapState) Enum() *SwapState

func (SwapState) EnumDescriptor deprecated

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

Deprecated: Use SwapState.Descriptor instead.

func (SwapState) Number

func (x SwapState) Number() protoreflect.EnumNumber

func (SwapState) String

func (x SwapState) String() string

func (SwapState) Type

type SwapStats

type SwapStats struct {
	TotalFees    uint64 `protobuf:"varint,1,opt,name=total_fees,json=totalFees,proto3" json:"total_fees,omitempty"`
	TotalAmount  uint64 `protobuf:"varint,2,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"`
	AvgFees      uint64 `protobuf:"varint,3,opt,name=avg_fees,json=avgFees,proto3" json:"avg_fees,omitempty"`
	AvgAmount    uint64 `protobuf:"varint,4,opt,name=avg_amount,json=avgAmount,proto3" json:"avg_amount,omitempty"`
	Count        uint64 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"`
	SuccessCount uint64 `protobuf:"varint,6,opt,name=success_count,json=successCount,proto3" json:"success_count,omitempty"`
	// contains filtered or unexported fields
}

func (*SwapStats) Descriptor deprecated

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

Deprecated: Use SwapStats.ProtoReflect.Descriptor instead.

func (*SwapStats) GetAvgAmount

func (x *SwapStats) GetAvgAmount() uint64

func (*SwapStats) GetAvgFees

func (x *SwapStats) GetAvgFees() uint64

func (*SwapStats) GetCount

func (x *SwapStats) GetCount() uint64

func (*SwapStats) GetSuccessCount

func (x *SwapStats) GetSuccessCount() uint64

func (*SwapStats) GetTotalAmount

func (x *SwapStats) GetTotalAmount() uint64

func (*SwapStats) GetTotalFees

func (x *SwapStats) GetTotalFees() uint64

func (*SwapStats) ProtoMessage

func (*SwapStats) ProtoMessage()

func (*SwapStats) ProtoReflect

func (x *SwapStats) ProtoReflect() protoreflect.Message

func (*SwapStats) Reset

func (x *SwapStats) Reset()

func (*SwapStats) String

func (x *SwapStats) String() string

type SwapType

type SwapType int32
const (
	SwapType_SUBMARINE SwapType = 0
	SwapType_REVERSE   SwapType = 1
	SwapType_CHAIN     SwapType = 2
)

func (SwapType) Descriptor

func (SwapType) Descriptor() protoreflect.EnumDescriptor

func (SwapType) Enum

func (x SwapType) Enum() *SwapType

func (SwapType) EnumDescriptor deprecated

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

Deprecated: Use SwapType.Descriptor instead.

func (SwapType) Number

func (x SwapType) Number() protoreflect.EnumNumber

func (SwapType) String

func (x SwapType) String() string

func (SwapType) Type

type Tenant

type Tenant struct {
	Id   uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Tenant) Descriptor deprecated

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

Deprecated: Use Tenant.ProtoReflect.Descriptor instead.

func (*Tenant) GetId

func (x *Tenant) GetId() uint64

func (*Tenant) GetName

func (x *Tenant) GetName() string

func (*Tenant) ProtoMessage

func (*Tenant) ProtoMessage()

func (*Tenant) ProtoReflect

func (x *Tenant) ProtoReflect() protoreflect.Message

func (*Tenant) Reset

func (x *Tenant) Reset()

func (*Tenant) String

func (x *Tenant) String() string

type TransactionInfo

type TransactionInfo struct {

	// will be populated for LOCKUP, REFUND and CLAIM
	SwapId *string         `protobuf:"bytes,1,opt,name=swap_id,json=swapId,proto3,oneof" json:"swap_id,omitempty"`
	Type   TransactionType `protobuf:"varint,2,opt,name=type,proto3,enum=boltzrpc.TransactionType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionInfo) Descriptor deprecated

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

Deprecated: Use TransactionInfo.ProtoReflect.Descriptor instead.

func (*TransactionInfo) GetSwapId

func (x *TransactionInfo) GetSwapId() string

func (*TransactionInfo) GetType

func (x *TransactionInfo) GetType() TransactionType

func (*TransactionInfo) ProtoMessage

func (*TransactionInfo) ProtoMessage()

func (*TransactionInfo) ProtoReflect

func (x *TransactionInfo) ProtoReflect() protoreflect.Message

func (*TransactionInfo) Reset

func (x *TransactionInfo) Reset()

func (*TransactionInfo) String

func (x *TransactionInfo) String() string

type TransactionOutput

type TransactionOutput struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Amount  uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// wether the address is controlled by the wallet
	IsOurAddress bool `protobuf:"varint,3,opt,name=is_our_address,json=isOurAddress,proto3" json:"is_our_address,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionOutput) Descriptor deprecated

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

Deprecated: Use TransactionOutput.ProtoReflect.Descriptor instead.

func (*TransactionOutput) GetAddress

func (x *TransactionOutput) GetAddress() string

func (*TransactionOutput) GetAmount

func (x *TransactionOutput) GetAmount() uint64

func (*TransactionOutput) GetIsOurAddress

func (x *TransactionOutput) GetIsOurAddress() bool

func (*TransactionOutput) ProtoMessage

func (*TransactionOutput) ProtoMessage()

func (*TransactionOutput) ProtoReflect

func (x *TransactionOutput) ProtoReflect() protoreflect.Message

func (*TransactionOutput) Reset

func (x *TransactionOutput) Reset()

func (*TransactionOutput) String

func (x *TransactionOutput) String() string

type TransactionType

type TransactionType int32
const (
	TransactionType_UNKNOWN       TransactionType = 0
	TransactionType_LOCKUP        TransactionType = 1
	TransactionType_REFUND        TransactionType = 2
	TransactionType_CLAIM         TransactionType = 3
	TransactionType_CONSOLIDATION TransactionType = 4
)

func (TransactionType) Descriptor

func (TransactionType) Enum

func (x TransactionType) Enum() *TransactionType

func (TransactionType) EnumDescriptor deprecated

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

Deprecated: Use TransactionType.Descriptor instead.

func (TransactionType) Number

func (TransactionType) String

func (x TransactionType) String() string

func (TransactionType) Type

type UnimplementedBoltzServer

type UnimplementedBoltzServer struct {
}

UnimplementedBoltzServer must be embedded to have forward compatible implementations.

func (UnimplementedBoltzServer) BakeMacaroon

func (UnimplementedBoltzServer) ChangeWalletPassword

func (UnimplementedBoltzServer) ClaimSwaps

func (UnimplementedBoltzServer) CreateChainSwap

func (UnimplementedBoltzServer) CreateChannel

func (UnimplementedBoltzServer) CreateSwap

func (UnimplementedBoltzServer) CreateTenant

func (UnimplementedBoltzServer) CreateWallet

func (UnimplementedBoltzServer) Deposit

func (UnimplementedBoltzServer) GetInfo

func (UnimplementedBoltzServer) GetPairInfo

func (UnimplementedBoltzServer) GetPairs

func (UnimplementedBoltzServer) GetServiceInfo

func (UnimplementedBoltzServer) GetStats

func (UnimplementedBoltzServer) GetSubaccounts

func (UnimplementedBoltzServer) GetSwapInfo

func (UnimplementedBoltzServer) GetSwapInfoStream

func (UnimplementedBoltzServer) GetTenant

func (UnimplementedBoltzServer) GetWallet

func (UnimplementedBoltzServer) GetWalletCredentials

func (UnimplementedBoltzServer) GetWalletSendFee

func (UnimplementedBoltzServer) GetWallets

func (UnimplementedBoltzServer) ImportWallet

func (UnimplementedBoltzServer) ListSwaps

func (UnimplementedBoltzServer) ListTenants

func (UnimplementedBoltzServer) RefundSwap

func (UnimplementedBoltzServer) RemoveWallet

func (UnimplementedBoltzServer) SetSubaccount

func (UnimplementedBoltzServer) Stop

func (UnimplementedBoltzServer) Unlock

func (UnimplementedBoltzServer) WalletReceive

func (UnimplementedBoltzServer) WalletSend

type UnlockRequest

type UnlockRequest struct {
	Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*UnlockRequest) Descriptor deprecated

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

Deprecated: Use UnlockRequest.ProtoReflect.Descriptor instead.

func (*UnlockRequest) GetPassword

func (x *UnlockRequest) GetPassword() string

func (*UnlockRequest) ProtoMessage

func (*UnlockRequest) ProtoMessage()

func (*UnlockRequest) ProtoReflect

func (x *UnlockRequest) ProtoReflect() protoreflect.Message

func (*UnlockRequest) Reset

func (x *UnlockRequest) Reset()

func (*UnlockRequest) String

func (x *UnlockRequest) String() string

type UnsafeBoltzServer

type UnsafeBoltzServer interface {
	// contains filtered or unexported methods
}

UnsafeBoltzServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BoltzServer will result in compilation errors.

type VerifyWalletPasswordRequest

type VerifyWalletPasswordRequest struct {
	Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyWalletPasswordRequest) Descriptor deprecated

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

Deprecated: Use VerifyWalletPasswordRequest.ProtoReflect.Descriptor instead.

func (*VerifyWalletPasswordRequest) GetPassword

func (x *VerifyWalletPasswordRequest) GetPassword() string

func (*VerifyWalletPasswordRequest) ProtoMessage

func (*VerifyWalletPasswordRequest) ProtoMessage()

func (*VerifyWalletPasswordRequest) ProtoReflect

func (*VerifyWalletPasswordRequest) Reset

func (x *VerifyWalletPasswordRequest) Reset()

func (*VerifyWalletPasswordRequest) String

func (x *VerifyWalletPasswordRequest) String() string

type VerifyWalletPasswordResponse

type VerifyWalletPasswordResponse struct {
	Correct bool `protobuf:"varint,1,opt,name=correct,proto3" json:"correct,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyWalletPasswordResponse) Descriptor deprecated

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

Deprecated: Use VerifyWalletPasswordResponse.ProtoReflect.Descriptor instead.

func (*VerifyWalletPasswordResponse) GetCorrect

func (x *VerifyWalletPasswordResponse) GetCorrect() bool

func (*VerifyWalletPasswordResponse) ProtoMessage

func (*VerifyWalletPasswordResponse) ProtoMessage()

func (*VerifyWalletPasswordResponse) ProtoReflect

func (*VerifyWalletPasswordResponse) Reset

func (x *VerifyWalletPasswordResponse) Reset()

func (*VerifyWalletPasswordResponse) String

type Wallet

type Wallet struct {
	Id       uint64   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name     string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Currency Currency `protobuf:"varint,3,opt,name=currency,proto3,enum=boltzrpc.Currency" json:"currency,omitempty"`
	Readonly bool     `protobuf:"varint,4,opt,name=readonly,proto3" json:"readonly,omitempty"`
	Balance  *Balance `protobuf:"bytes,5,opt,name=balance,proto3" json:"balance,omitempty"`
	TenantId uint64   `protobuf:"varint,6,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Wallet) Descriptor deprecated

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

Deprecated: Use Wallet.ProtoReflect.Descriptor instead.

func (*Wallet) GetBalance

func (x *Wallet) GetBalance() *Balance

func (*Wallet) GetCurrency

func (x *Wallet) GetCurrency() Currency

func (*Wallet) GetId

func (x *Wallet) GetId() uint64

func (*Wallet) GetName

func (x *Wallet) GetName() string

func (*Wallet) GetReadonly

func (x *Wallet) GetReadonly() bool

func (*Wallet) GetTenantId

func (x *Wallet) GetTenantId() uint64

func (*Wallet) ProtoMessage

func (*Wallet) ProtoMessage()

func (*Wallet) ProtoReflect

func (x *Wallet) ProtoReflect() protoreflect.Message

func (*Wallet) Reset

func (x *Wallet) Reset()

func (*Wallet) String

func (x *Wallet) String() string

type WalletCredentials

type WalletCredentials struct {

	// only one of these is allowed to be present
	Mnemonic       *string `protobuf:"bytes,1,opt,name=mnemonic,proto3,oneof" json:"mnemonic,omitempty"`
	Xpub           *string `protobuf:"bytes,2,opt,name=xpub,proto3,oneof" json:"xpub,omitempty"`
	CoreDescriptor *string `protobuf:"bytes,3,opt,name=core_descriptor,json=coreDescriptor,proto3,oneof" json:"core_descriptor,omitempty"`
	// only used in combination with mnemonic
	Subaccount *uint64 `protobuf:"varint,4,opt,name=subaccount,proto3,oneof" json:"subaccount,omitempty"`
	// contains filtered or unexported fields
}

func (*WalletCredentials) Descriptor deprecated

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

Deprecated: Use WalletCredentials.ProtoReflect.Descriptor instead.

func (*WalletCredentials) GetCoreDescriptor

func (x *WalletCredentials) GetCoreDescriptor() string

func (*WalletCredentials) GetMnemonic

func (x *WalletCredentials) GetMnemonic() string

func (*WalletCredentials) GetSubaccount

func (x *WalletCredentials) GetSubaccount() uint64

func (*WalletCredentials) GetXpub

func (x *WalletCredentials) GetXpub() string

func (*WalletCredentials) ProtoMessage

func (*WalletCredentials) ProtoMessage()

func (*WalletCredentials) ProtoReflect

func (x *WalletCredentials) ProtoReflect() protoreflect.Message

func (*WalletCredentials) Reset

func (x *WalletCredentials) Reset()

func (*WalletCredentials) String

func (x *WalletCredentials) String() string

type WalletParams

type WalletParams struct {
	Name     string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Currency Currency `protobuf:"varint,2,opt,name=currency,proto3,enum=boltzrpc.Currency" json:"currency,omitempty"`
	// the password to encrypt the wallet with. If there are existing encrypted wallets, the same password has to be used.
	Password *string `protobuf:"bytes,3,opt,name=password,proto3,oneof" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*WalletParams) Descriptor deprecated

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

Deprecated: Use WalletParams.ProtoReflect.Descriptor instead.

func (*WalletParams) GetCurrency

func (x *WalletParams) GetCurrency() Currency

func (*WalletParams) GetName

func (x *WalletParams) GetName() string

func (*WalletParams) GetPassword

func (x *WalletParams) GetPassword() string

func (*WalletParams) ProtoMessage

func (*WalletParams) ProtoMessage()

func (*WalletParams) ProtoReflect

func (x *WalletParams) ProtoReflect() protoreflect.Message

func (*WalletParams) Reset

func (x *WalletParams) Reset()

func (*WalletParams) String

func (x *WalletParams) String() string

type WalletReceiveRequest

type WalletReceiveRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*WalletReceiveRequest) Descriptor deprecated

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

Deprecated: Use WalletReceiveRequest.ProtoReflect.Descriptor instead.

func (*WalletReceiveRequest) GetId

func (x *WalletReceiveRequest) GetId() uint64

func (*WalletReceiveRequest) ProtoMessage

func (*WalletReceiveRequest) ProtoMessage()

func (*WalletReceiveRequest) ProtoReflect

func (x *WalletReceiveRequest) ProtoReflect() protoreflect.Message

func (*WalletReceiveRequest) Reset

func (x *WalletReceiveRequest) Reset()

func (*WalletReceiveRequest) String

func (x *WalletReceiveRequest) String() string

type WalletReceiveResponse

type WalletReceiveResponse struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*WalletReceiveResponse) Descriptor deprecated

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

Deprecated: Use WalletReceiveResponse.ProtoReflect.Descriptor instead.

func (*WalletReceiveResponse) GetAddress

func (x *WalletReceiveResponse) GetAddress() string

func (*WalletReceiveResponse) ProtoMessage

func (*WalletReceiveResponse) ProtoMessage()

func (*WalletReceiveResponse) ProtoReflect

func (x *WalletReceiveResponse) ProtoReflect() protoreflect.Message

func (*WalletReceiveResponse) Reset

func (x *WalletReceiveResponse) Reset()

func (*WalletReceiveResponse) String

func (x *WalletReceiveResponse) String() string

type WalletSendFee

type WalletSendFee struct {

	// amount of sats which would be sent
	Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	Fee    uint64 `protobuf:"varint,2,opt,name=fee,proto3" json:"fee,omitempty"`
	// the fee rate used for the estimation in sat/vbyte
	FeeRate float64 `protobuf:"fixed64,3,opt,name=fee_rate,json=feeRate,proto3" json:"fee_rate,omitempty"`
	// contains filtered or unexported fields
}

func (*WalletSendFee) Descriptor deprecated

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

Deprecated: Use WalletSendFee.ProtoReflect.Descriptor instead.

func (*WalletSendFee) GetAmount

func (x *WalletSendFee) GetAmount() uint64

func (*WalletSendFee) GetFee

func (x *WalletSendFee) GetFee() uint64

func (*WalletSendFee) GetFeeRate

func (x *WalletSendFee) GetFeeRate() float64

func (*WalletSendFee) ProtoMessage

func (*WalletSendFee) ProtoMessage()

func (*WalletSendFee) ProtoReflect

func (x *WalletSendFee) ProtoReflect() protoreflect.Message

func (*WalletSendFee) Reset

func (x *WalletSendFee) Reset()

func (*WalletSendFee) String

func (x *WalletSendFee) String() string

type WalletSendRequest

type WalletSendRequest struct {
	Id      uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// Amount of satoshis to be sent to 'address`
	Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// Fee rate to use for the transaction
	SatPerVbyte *float64 `protobuf:"fixed64,4,opt,name=sat_per_vbyte,json=satPerVbyte,proto3,oneof" json:"sat_per_vbyte,omitempty"`
	// Sends all available funds to the address. The `amount` field is ignored.
	SendAll *bool `protobuf:"varint,5,opt,name=send_all,json=sendAll,proto3,oneof" json:"send_all,omitempty"`
	// whether `address` is the lockup of a swap.
	IsSwapAddress *bool `protobuf:"varint,6,opt,name=is_swap_address,json=isSwapAddress,proto3,oneof" json:"is_swap_address,omitempty"`
	// contains filtered or unexported fields
}

func (*WalletSendRequest) Descriptor deprecated

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

Deprecated: Use WalletSendRequest.ProtoReflect.Descriptor instead.

func (*WalletSendRequest) GetAddress

func (x *WalletSendRequest) GetAddress() string

func (*WalletSendRequest) GetAmount

func (x *WalletSendRequest) GetAmount() uint64

func (*WalletSendRequest) GetId

func (x *WalletSendRequest) GetId() uint64

func (*WalletSendRequest) GetIsSwapAddress

func (x *WalletSendRequest) GetIsSwapAddress() bool

func (*WalletSendRequest) GetSatPerVbyte

func (x *WalletSendRequest) GetSatPerVbyte() float64

func (*WalletSendRequest) GetSendAll

func (x *WalletSendRequest) GetSendAll() bool

func (*WalletSendRequest) ProtoMessage

func (*WalletSendRequest) ProtoMessage()

func (*WalletSendRequest) ProtoReflect

func (x *WalletSendRequest) ProtoReflect() protoreflect.Message

func (*WalletSendRequest) Reset

func (x *WalletSendRequest) Reset()

func (*WalletSendRequest) String

func (x *WalletSendRequest) String() string

type WalletSendResponse

type WalletSendResponse struct {
	TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
	// contains filtered or unexported fields
}

func (*WalletSendResponse) Descriptor deprecated

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

Deprecated: Use WalletSendResponse.ProtoReflect.Descriptor instead.

func (*WalletSendResponse) GetTxId

func (x *WalletSendResponse) GetTxId() string

func (*WalletSendResponse) ProtoMessage

func (*WalletSendResponse) ProtoMessage()

func (*WalletSendResponse) ProtoReflect

func (x *WalletSendResponse) ProtoReflect() protoreflect.Message

func (*WalletSendResponse) Reset

func (x *WalletSendResponse) Reset()

func (*WalletSendResponse) String

func (x *WalletSendResponse) String() string

type WalletTransaction

type WalletTransaction struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// balance change of the wallet in satoshis.
	// its the sum of all output values minus the sum of all input values which are controlled by the wallet.
	// positive values indicate incoming transactions, negative values outgoing transactions
	BalanceChange int64                `protobuf:"varint,2,opt,name=balance_change,json=balanceChange,proto3" json:"balance_change,omitempty"`
	Timestamp     int64                `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Outputs       []*TransactionOutput `protobuf:"bytes,4,rep,name=outputs,proto3" json:"outputs,omitempty"`
	BlockHeight   uint32               `protobuf:"varint,6,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	// additional informations about the tx (type, related swaps etc.)
	Infos []*TransactionInfo `protobuf:"bytes,7,rep,name=infos,proto3" json:"infos,omitempty"`
	// contains filtered or unexported fields
}

func (*WalletTransaction) Descriptor deprecated

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

Deprecated: Use WalletTransaction.ProtoReflect.Descriptor instead.

func (*WalletTransaction) GetBalanceChange

func (x *WalletTransaction) GetBalanceChange() int64

func (*WalletTransaction) GetBlockHeight

func (x *WalletTransaction) GetBlockHeight() uint32

func (*WalletTransaction) GetId

func (x *WalletTransaction) GetId() string

func (*WalletTransaction) GetInfos

func (x *WalletTransaction) GetInfos() []*TransactionInfo

func (*WalletTransaction) GetOutputs

func (x *WalletTransaction) GetOutputs() []*TransactionOutput

func (*WalletTransaction) GetTimestamp

func (x *WalletTransaction) GetTimestamp() int64

func (*WalletTransaction) ProtoMessage

func (*WalletTransaction) ProtoMessage()

func (*WalletTransaction) ProtoReflect

func (x *WalletTransaction) ProtoReflect() protoreflect.Message

func (*WalletTransaction) Reset

func (x *WalletTransaction) Reset()

func (*WalletTransaction) String

func (x *WalletTransaction) String() string

type Wallets

type Wallets struct {
	Wallets []*Wallet `protobuf:"bytes,1,rep,name=wallets,proto3" json:"wallets,omitempty"`
	// contains filtered or unexported fields
}

func (*Wallets) Descriptor deprecated

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

Deprecated: Use Wallets.ProtoReflect.Descriptor instead.

func (*Wallets) GetWallets

func (x *Wallets) GetWallets() []*Wallet

func (*Wallets) ProtoMessage

func (*Wallets) ProtoMessage()

func (*Wallets) ProtoReflect

func (x *Wallets) ProtoReflect() protoreflect.Message

func (*Wallets) Reset

func (x *Wallets) Reset()

func (*Wallets) String

func (x *Wallets) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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