btcwallet

package
v0.0.0-...-4da76ec Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWalletNotLoaded = fmt.Errorf("wallet not loaded, create or unlock it first")
)

Functions

func NewService

func NewService(cfg WalletConfig, options ...WalletOption) (ports.WalletService, error)

NewService creates the wallet service, an option must be set to configure the chain source.

Types

type WalletConfig

type WalletConfig struct {
	Datadir    string
	Network    common.Network
	EsploraURL string
}

type WalletOption

type WalletOption func(*service) error

func WithNeutrino

func WithNeutrino(initialPeer string) WalletOption

WithNeutrino creates a start a neutrino node using the provided service datadir

func WithPollingBitcoind

func WithPollingBitcoind(host, user, pass string) WalletOption

Jump to

Keyboard shortcuts

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