estimate_tx_fee

package
v0.0.0-...-8b20efb Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EtherScanHTTPTimeout = 10 * time.Second // timeout for query etherscan.io
)

Variables

View Source
var (
	// TxFeeOfContract collect avg gas of contract Txs
	TxFeeOfContract map[string]*big.Int

	TxFeeResources []TxFeeResource
)

Functions

func UpdateTxFee

func UpdateTxFee()

func UpdateTxFeeDaemon

func UpdateTxFeeDaemon(ctx context.Context)

Types

type ATxList

type ATxList struct {
	BlockNumber       string
	TimeStamp         string
	Hash              string
	Nonce             string
	BlockHash         string
	TransactionIndex  string
	From              string
	To                string
	Value             string
	Gas               string
	GasPrice          string
	IsError           string
	TxreceiptStatus   string
	Input             string
	ContractAddress   string
	CumulativeGasUsed string
	GasUsed           string
	Confirmations     string
}

type TxFeeResource

type TxFeeResource struct {
	Name    string
	Address string
	Methods []string
}

type TxLists

type TxLists struct {
	Status  string
	Message string
	Result  []ATxList
}

Jump to

Keyboard shortcuts

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