Documentation ¶
Index ¶
Constants ¶
View Source
const ( AsDefaultCertainty = math.MaxUint64 DecimalUnit = piecefunc.DecimalUnit )
Variables ¶
View Source
var ( DefaultMaxGasPrice = big.NewInt(10000000 * params.GWei) DecimalUnitBn = big.NewInt(DecimalUnit) )
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) EffectiveMinGasPrice ¶
EffectiveMinGasPrice returns softly enforced minimum gas price on top of on-chain minimum gas price (base fee)
func (*Oracle) SuggestTip ¶
SuggestTip 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.