node_default_gas_price_strategy
Documentation for eth_defi.gas.node_default_gas_price_strategy function.
- node_default_gas_price_strategy(web3, transaction_params)[source]
Gas price strategy for blockchains not supporting dynamic gas fees.
This gas price strategy will query the JSON-RPC for the suggested flat fee. It works on chains that do not support EIP-1559 London hardfork style base fee + max fee dynamic pricing.
These include
BNB Chain
Example:
from eth_defi.gas import node_default_gas_price_strategy web3.eth.set_gas_price_strategy(node_default_gas_price_strategy)
For more information see