wlt

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InputGetter

type InputGetter struct {
	Address wallet.Addr
	UTXOs   []memo.UTXO
	Client  *lib.Client
	// contains filtered or unexported fields
}

func NewInputGetter

func NewInputGetter(address wallet.Addr, client *lib.Client) *InputGetter

func (*InputGetter) AddChangeUTXO

func (g *InputGetter) AddChangeUTXO(utxo memo.UTXO)

func (*InputGetter) GetUTXOs

func (g *InputGetter) GetUTXOs(*memo.UTXORequest) ([]memo.UTXO, error)

func (*InputGetter) MarkUTXOsUsed

func (g *InputGetter) MarkUTXOsUsed(used []memo.UTXO)

func (*InputGetter) NewTx

func (g *InputGetter) NewTx()

func (*InputGetter) SetPkHashesToUse

func (g *InputGetter) SetPkHashesToUse([][]byte)

type Wallet

type Wallet struct {
	Key     wallet.PrivateKey
	Address wallet.Addr
	Getter  *InputGetter
}

func NewWallet

func NewWallet(key wallet.PrivateKey, client *lib.Client) *Wallet

func (*Wallet) BasicTx

func (w *Wallet) BasicTx(script memo.Script) (*memo.Tx, error)

Jump to

Keyboard shortcuts

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