evmtransaction

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: LGPL-3.0 Imports: 6 Imported by: 17

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) (evmclient.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 evmclient.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.

Jump to

Keyboard shortcuts

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