evmtransaction

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: LGPL-3.0 Imports: 7 Imported by: 0

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(key *ecdsa.PrivateKey, 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