Documentation ¶
Index ¶
Constants ¶
View Source
const DecimalUnit = piecefunc.DecimalUnit
Variables ¶
View Source
var DecimalUnitBn = big.NewInt(DecimalUnit)
View Source
var DefaultMaxPrice = big.NewInt(1000000 * params.GWei)
Functions ¶
This section is empty.
Types ¶
type Oracle ¶
type Oracle struct {
// contains filtered or unexported fields
}
Oracle recommends gas prices based on the content of recent blocks. Suitable for both light and full clients.
func NewOracle ¶
NewOracle returns a new gasprice oracle which can recommend suitable gasprice for newly created transaction.
func (*Oracle) SuggestPrice ¶
SuggestPrice returns a gasprice so that newly created transaction can have a very high chance to be included in the following blocks.
Click to show internal directories.
Click to hide internal directories.