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) *GasStation
NewGasStation creates a new gas station
func (*GasStation) EstimateGasForAction ¶
func (gs *GasStation) EstimateGasForAction(actPb *iotextypes.Action) (uint64, error)
EstimateGasForAction estimate gas for action
func (*GasStation) IsSystemAction ¶ added in v0.7.1
func (gs *GasStation) IsSystemAction(act action.SealedEnvelope) bool
IsSystemAction determine whether input action belongs to system action
func (*GasStation) SuggestGasPrice ¶
func (gs *GasStation) SuggestGasPrice() (uint64, error)
SuggestGasPrice suggest gas price
Click to show internal directories.
Click to hide internal directories.