tx

package
v0.0.0-...-aedf21f Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const MORTAL_PERIOD = 4096

How many blocks the transaction will stay valid for

Variables

This section is empty.

Functions

func HashSerialized

func HashSerialized(serialized []byte) []byte

Types

type Tx

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

Tx for Template

func NewTx

func NewTx(extrinsic extrinsic.DynamicExtrinsic, sender types.MultiAddress, tip uint64, txInput *tx_input.TxInput) (*Tx, error)

func (*Tx) AddSignatures

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

AddSignatures adds a signature to Tx

func (Tx) GetSignatures

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

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