Documentation
¶
Index ¶
Constants ¶
View Source
const DecimalUnit = piecefunc.DecimalUnit
Variables ¶
View Source
var DecimalUnitBn = big.NewInt(DecimalUnit)
View Source
var DefaultMaxTipCap = big.NewInt(100000 * 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) SuggestTipCap ¶
SuggestTipCap returns a tip cap so that newly created transaction can have a very high chance to be included in the following blocks.
Note, for legacy transactions and the legacy eth_gasPrice RPC call, it will be necessary to add the basefee to the returned number to fall back to the legacy behavior.
Click to show internal directories.
Click to hide internal directories.