tx

package
v0.0.0-...-d4ead40 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tx

type Tx struct {
}

Tx for Template

func (*Tx) AddSignatures

func (tx *Tx) AddSignatures(...xc.TxSignature) error

AddSignatures adds a signature to Tx

func (*Tx) GetSignatures

func (tx *Tx) GetSignatures() []xc.TxSignature

GetSignatures returns back signatures, which may be used for signed-transaction broadcasting

func (Tx) Hash

func (tx Tx) Hash() xc.TxHash

Hash returns the tx hash or id

func (Tx) Serialize

func (tx Tx) Serialize() ([]byte, error)

Serialize returns the serialized tx

func (Tx) Sighashes

func (tx Tx) Sighashes() ([]xc.TxDataToSign, error)

Sighashes returns the tx payload to sign, aka sighash

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳