bsv

package
v1.0.0-beta.37 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeeUnit

type FeeUnit struct {
	Satoshis Satoshis `json:"satoshis"` // Fee in satoshis of the amount of Bytes
	Bytes    int      `json:"bytes"`    // Number of bytes that the Fee covers
}

FeeUnit specifies how much satoshis will be paid per specific amount of bytes in a transaction see https://github.com/bitcoin-sv-specs/brfc-misc/tree/master/feespec

func (*FeeUnit) IsLowerThan

func (f *FeeUnit) IsLowerThan(other *FeeUnit) bool

IsLowerThan compare two fee units

func (*FeeUnit) IsValid

func (f *FeeUnit) IsValid() bool

IsValid returns true if the Bytes in fee are greater than 0

func (*FeeUnit) IsZero

func (f *FeeUnit) IsZero() bool

IsZero returns true if the fee unit suggest no fees (free)

func (*FeeUnit) String

func (f *FeeUnit) String() string

String returns the fee unit as a string

type Outpoint

type Outpoint struct {
	TxID string
	Vout uint32
}

Outpoint is a struct that represents a pair consisting of a transaction ID and an output index This represents a specific unspent transaction output (UTXO)

func (*Outpoint) String

func (o *Outpoint) String() string

String returns a string representation of outpoint

type Satoshis

type Satoshis uint64

Satoshis specifies a type that should be used to store value in satoshis

Jump to

Keyboard shortcuts

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