pkg

package
v0.0.0-...-12b49db Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthTx

type EthTx struct {
	Nonce    uint64   `json:"nonce"`
	GasPrice *big.Int `json:"gasPrice"`
	GasLimit uint64   `json:"gasLimit"`
	To       string   `json:"to"`
	Value    *big.Int `json:"value"`
	Data     string   `json:"data"`
	From     string   `json:"from"`
	ChainId  *big.Int `json:"chainId,omitempty"`
	R        string   `json:"r,omitempty"`
	V        string   `json:"v,omitempty"`
	S        string   `json:"s,omitempty"`
}

func DecodeTx

func DecodeTx(hexTx string) (*EthTx, error)

func (*EthTx) ToJSON

func (e *EthTx) ToJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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