wallet

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(wallet ports.WalletService) (*Service, error)

func (*Service) Account

func (s *Service) Account() ports.Account

func (*Service) Close

func (s *Service) Close()

func (*Service) CompleteSwap

func (s *Service) CompleteSwap(
	account string, swapRequest ports.SwapRequest, msatsPerByte uint64,
	feesToAdd bool,
) (string, []ports.Utxo, int64, error)

func (*Service) NativeAsset

func (s *Service) NativeAsset() string

func (*Service) Network

func (s *Service) Network() network.Network

func (*Service) Notification

func (s *Service) Notification() ports.Notification

func (*Service) RegisterHandlerForTxEvent

func (s *Service) RegisterHandlerForTxEvent(
	handler func(ports.WalletTxNotification) bool,
)

func (*Service) RegisterHandlerForUtxoEvent

func (s *Service) RegisterHandlerForUtxoEvent(
	handler func(ports.WalletUtxoNotification) bool,
)

func (*Service) SendToMany

func (s *Service) SendToMany(
	account string, outs []ports.TxOutput, msatsPerByte uint64,
) (string, error)

func (*Service) Transaction

func (s *Service) Transaction() ports.Transaction

func (*Service) Wallet

func (s *Service) Wallet() ports.Wallet

Jump to

Keyboard shortcuts

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