common

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Common

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

func New

func New(logger logging.Logger, signer crypto.Signer, chainId *big.Int, chainEndpoint string) (*Common, error)

func (*Common) All

func (c *Common) All(ctx context.Context, req *chain.AllRequest) (*chain.AllResponse, error)

type TxCommonRequest

type TxCommonRequest struct {
	From     string `json:"from"`
	Nonce    string `json:"nonce"`
	To       string `json:"to"`       // recipient of the transaction
	Data     string `json:"data"`     // transaction data
	GasPrice string `json:"gasPrice"` // gas price or nil if suggested gas price should be used
	GasLimit string `json:"gasLimit"` // gas limit or 0 if it should be estimated
	Value    string `json:"value"`    // amount of wei to send
}

Jump to

Keyboard shortcuts

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