lib

package
v0.0.0-...-2292cb8 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SignEthTx

func SignEthTx(itx *InputTX, chainID int64, pk string) (string, error)

func SignTX

func SignTX(txd *TXData, chainID int64, pk string) (string, error)

Types

type InputTX

type InputTX struct {
	AccountNonce uint64
	Price        string
	Amount       string
	Payload      string
	Recipient    string
	GasLimit     uint64
}

type TXData

type TXData struct {
	AccountNonce uint64
	Price        *big.Int
	GasLimit     uint64
	Recipient    common.Address
	Amount       *big.Int
	Payload      []byte
}

func MKTXData

func MKTXData(itx *InputTX) (*TXData, error)

Jump to

Keyboard shortcuts

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