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 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
Click to show internal directories.
Click to hide internal directories.