wallet

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package wallet is one source for a whole self-custody wallet (a Ledger, a Trezor…): every account it holds, one key or address per line, each read on its own blockchain by the matching connector.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detect

func Detect(line string) (source.Detected, error)

Detect recognizes one account and checks it can be read.

func Lines

func Lines(raw string) []string

Lines splits the accounts field: one per line, blank lines and # comments skipped.

func New

func New(cfg source.Config) (source.Source, error)

func Preview

func Preview(ctx context.Context, line string, cfg source.Config) ([]model.Balance, error)

Preview reads the balances of one account, as it is now.

Types

type Wallet

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

func (*Wallet) Activities

func (w *Wallet) Activities(ctx context.Context, f source.Fetch) error

func (*Wallet) Balances

func (w *Wallet) Balances(ctx context.Context) ([]model.Balance, error)

func (*Wallet) State

func (w *Wallet) State() []byte

func (*Wallet) Test

func (w *Wallet) Test(ctx context.Context) error

Test checks every account answers.

Jump to

Keyboard shortcuts

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