iotex-core: github.com/iotexproject/iotex-core/gasstation Index | Files

package gasstation

import "github.com/iotexproject/iotex-core/gasstation"

Index

Package Files

gasstattion.go

type GasStation Uses

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

GasStation provide gas related api

func NewGasStation Uses

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

NewGasStation creates a new gas station

func (*GasStation) EstimateGasForAction Uses

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

EstimateGasForAction estimate gas for action

func (*GasStation) IsSystemAction Uses

func (gs *GasStation) IsSystemAction(act action.SealedEnvelope) bool

IsSystemAction determine whether input action belongs to system action

func (*GasStation) SuggestGasPrice Uses

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

SuggestGasPrice suggest gas price

Package gasstation imports 7 packages (graph) and is imported by 1 packages. Updated 2019-12-06. Refresh now. Tools for package owners.