wallets

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FullWallet

type FullWallet struct {
	PrivateKey    *ec.PrivateKey `json:"privateKey,omitempty"`
	WalletAddress string         `json:"walletAddress,omitempty"`
	LastSync      time.Time      `json:"lastSync"`
}

func CreateWallet

func CreateWallet(wif string) (*FullWallet, error)

func (*FullWallet) Sync

func (f *FullWallet) Sync() ([]UTXO, error)

type UTXO

type UTXO struct {
	Vout     uint32 `json:"vout"`
	Satoshis uint64 `json:"satoshis"`
	Txid     string `json:"txid"`
}

type UtxosResponse

type UtxosResponse struct {
	Utxos []UTXO `json:"unspent"`
}

Jump to

Keyboard shortcuts

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