tx

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2020 License: BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input interface {
	TransactionID() types.Bytes
	N() int
	UnlockScript() ScriptSig
	Sequence() int
	Coinbase() types.Bytes
}

type Output

type Output interface {
	Value() types.Amount
	N() int
	LockScript() ScriptPubKey
}

type ScriptPubKey

type ScriptPubKey interface {
	Bytes() types.Bytes
	Asm() string
	RequiredSignatures() int
	Type() string
	Addresses() []string
}

type ScriptSig

type ScriptSig interface {
	Bytes() types.Bytes
	Asm() string
}

type Tx

type Tx interface {
	ID() types.Bytes
	Hash() types.Bytes
	BlockHash() types.Bytes
	Confirmations() int
	BlockTime() types.UnixTime
	UTXO() (TxUTXO, bool)
}

type TxBCH

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

func (*TxBCH) BlockHash

func (tx *TxBCH) BlockHash() types.Bytes

func (*TxBCH) BlockTime

func (tx *TxBCH) BlockTime() types.UnixTime

func (*TxBCH) Confirmations

func (tx *TxBCH) Confirmations() int

func (*TxBCH) Hash

func (tx *TxBCH) Hash() types.Bytes

func (*TxBCH) ID

func (tx *TxBCH) ID() types.Bytes

func (*TxBCH) Inputs

func (tx *TxBCH) Inputs() []Input

func (*TxBCH) LockTime

func (tx *TxBCH) LockTime() types.UnixTime

func (*TxBCH) Outputs

func (tx *TxBCH) Outputs() []Output

func (*TxBCH) UTXO

func (tx *TxBCH) UTXO() (TxUTXO, bool)

func (*TxBCH) UnmarshalJSON

func (tx *TxBCH) UnmarshalJSON(b []byte) error

type TxBTC

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

func (*TxBTC) BlockHash

func (tx *TxBTC) BlockHash() types.Bytes

func (*TxBTC) BlockTime

func (tx *TxBTC) BlockTime() types.UnixTime

func (*TxBTC) Confirmations

func (tx *TxBTC) Confirmations() int

func (*TxBTC) Hash

func (tx *TxBTC) Hash() types.Bytes

func (*TxBTC) ID

func (tx *TxBTC) ID() types.Bytes

func (*TxBTC) Inputs

func (tx *TxBTC) Inputs() []Input

func (*TxBTC) LockTime

func (tx *TxBTC) LockTime() types.UnixTime

func (*TxBTC) Outputs

func (tx *TxBTC) Outputs() []Output

func (*TxBTC) UTXO

func (tx *TxBTC) UTXO() (TxUTXO, bool)

func (*TxBTC) UnmarshalJSON

func (tx *TxBTC) UnmarshalJSON(b []byte) error

type TxDCR

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

func (*TxDCR) BlockHash

func (tx *TxDCR) BlockHash() types.Bytes

func (*TxDCR) BlockTime

func (tx *TxDCR) BlockTime() types.UnixTime

func (*TxDCR) Confirmations

func (tx *TxDCR) Confirmations() int

func (*TxDCR) Hash

func (tx *TxDCR) Hash() types.Bytes

func (*TxDCR) ID

func (tx *TxDCR) ID() types.Bytes

func (*TxDCR) Inputs

func (tx *TxDCR) Inputs() []Input

func (*TxDCR) LockTime

func (tx *TxDCR) LockTime() types.UnixTime

func (*TxDCR) Outputs

func (tx *TxDCR) Outputs() []Output

func (*TxDCR) UTXO

func (tx *TxDCR) UTXO() (TxUTXO, bool)

func (*TxDCR) UnmarshalJSON

func (tx *TxDCR) UnmarshalJSON(b []byte) error

type TxDOGE

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

func (*TxDOGE) BlockHash

func (tx *TxDOGE) BlockHash() types.Bytes

func (*TxDOGE) BlockTime

func (tx *TxDOGE) BlockTime() types.UnixTime

func (*TxDOGE) Confirmations

func (tx *TxDOGE) Confirmations() int

func (*TxDOGE) Hash

func (tx *TxDOGE) Hash() types.Bytes

func (*TxDOGE) ID

func (tx *TxDOGE) ID() types.Bytes

func (*TxDOGE) Inputs

func (tx *TxDOGE) Inputs() []Input

func (*TxDOGE) LockTime

func (tx *TxDOGE) LockTime() types.UnixTime

func (*TxDOGE) Outputs

func (tx *TxDOGE) Outputs() []Output

func (*TxDOGE) UTXO

func (tx *TxDOGE) UTXO() (TxUTXO, bool)

func (*TxDOGE) UnmarshalJSON

func (tx *TxDOGE) UnmarshalJSON(b []byte) error

type TxLTC

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

func (*TxLTC) BlockHash

func (tx *TxLTC) BlockHash() types.Bytes

func (*TxLTC) BlockTime

func (tx *TxLTC) BlockTime() types.UnixTime

func (*TxLTC) Confirmations

func (tx *TxLTC) Confirmations() int

func (*TxLTC) Hash

func (tx *TxLTC) Hash() types.Bytes

func (*TxLTC) ID

func (tx *TxLTC) ID() types.Bytes

func (*TxLTC) Inputs

func (tx *TxLTC) Inputs() []Input

func (*TxLTC) LockTime

func (tx *TxLTC) LockTime() types.UnixTime

func (*TxLTC) Outputs

func (tx *TxLTC) Outputs() []Output

func (*TxLTC) UTXO

func (tx *TxLTC) UTXO() (TxUTXO, bool)

func (*TxLTC) UnmarshalJSON

func (tx *TxLTC) UnmarshalJSON(b []byte) error

type TxUTXO

type TxUTXO interface {
	LockTime() types.UnixTime
	Inputs() []Input
	Outputs() []Output
}

Jump to

Keyboard shortcuts

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