get

package
v0.2.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LockScriptFromAddress

func LockScriptFromAddress(address wallet.Address) ([]byte, error)

Types

type Balance

type Balance struct {
	LockScript []byte
	Address    string
	Balance    int64
	Spendable  int64
	UtxoCount  int
	Spends     int
	OutUtxos   bool

	Utxos []*Utxo
}

func NewBalance

func NewBalance(lockScript []byte) *Balance

func NewBalanceFromAddress

func NewBalanceFromAddress(address string) (*Balance, error)

func (*Balance) CalculateWithUtxos

func (b *Balance) CalculateWithUtxos() error

func (*Balance) GetBalance

func (b *Balance) GetBalance() error

func (*Balance) GetBalanceByUtxos

func (b *Balance) GetBalanceByUtxos() error

type BlockTx

type BlockTx struct {
	BlockHash [32]byte
	TxHash    [32]byte
	BlockTx   *chain.BlockTx
	TxBlock   *chain.TxBlock
}

func NewBlockTx

func NewBlockTx(blockHash, txHash [32]byte) *BlockTx

func (*BlockTx) Get

func (b *BlockTx) Get() error

type Tx

type Tx struct {
	TxHash    [32]byte
	BlockHash [32]byte
	Raw       []byte
}

func NewTx

func NewTx(txHash [32]byte) *Tx

func (*Tx) Get

func (t *Tx) Get() error

type TxBlock

type TxBlock struct {
	Txs []*chain.TxBlock
}

func NewTxBlock

func NewTxBlock() *TxBlock

func (*TxBlock) Get

func (b *TxBlock) Get(txHashes [][32]byte) error

type Utxo

type Utxo struct {
	Item item.LockUtxo

	TxLost *item.TxLost
}

Jump to

Keyboard shortcuts

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