transaction

package
v0.0.0-...-77e7770 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: LGPL-3.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTransaction

func NewTransaction(nonce uint64, to *common.Address, amount *big.Int, gasLimit uint64, gasPrices []*big.Int, data []byte) (client.CommonTransaction, error)

NewTransaction is the ethereum transaction constructor

Types

type TX

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

func (*TX) Hash

func (a *TX) Hash() common.Hash

func (*TX) RawWithSignature

func (a *TX) RawWithSignature(signer client.Signer, domainID *big.Int) ([]byte, error)

RawWithSignature mostly copies WithSignature interface of type.Transaction from go-ethereum, but return raw byte representation of transaction to be compatible and interchangeable between different go-ethereum forks WithSignature returns a new transaction with the given signature. This signature needs to be in the [R || S || V] format where V is 0 or 1.

type TxFabric

type TxFabric func(nonce uint64, to *common.Address, amount *big.Int, gasLimit uint64, gasPrices []*big.Int, data []byte) (client.CommonTransaction, error)

Jump to

Keyboard shortcuts

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