gasstation

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2019 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GasStation

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

GasStation provide gas related api

func NewGasStation

func NewGasStation(bc blockchain.Blockchain, cfg config.API, limit uint64) *GasStation

NewGasStation creates a new gas station

func (*GasStation) ActionGasLimit added in v0.6.0

func (gs *GasStation) ActionGasLimit() uint64

ActionGasLimit returns the action gas limit

func (*GasStation) EstimateGasForAction

func (gs *GasStation) EstimateGasForAction(actPb *iotextypes.Action) (uint64, error)

EstimateGasForAction estimate gas for action

func (*GasStation) SuggestGasPrice

func (gs *GasStation) SuggestGasPrice() (uint64, error)

SuggestGasPrice suggest gas price

Jump to

Keyboard shortcuts

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