python-sdk icon indicating copy to clipboard operation
python-sdk copied to clipboard

Please review the function of manually setting the gas fee.

Open ArtWide opened this issue 2 years ago • 0 comments

Recently, there has been a large change in gas fees for EVM chains.

I often have transactions failing or having to wait for a response for too long, and I modify the SDK myself as needed to adjust the gas fee.

Example) contract_wapper.py

tx = func(*args).buildTransaction( TxParams(gas_price=provider.eth.gas_price).as_dict() )

boost = 1.5 tx = func(*args).buildTransaction( TxParams(gas_price=int(provider.eth.gas_price * boost)).as_dict() )

I hope these features will be officially supported. Gas fees vary from network to network, so it would be helpful for them if users specified % gas fees to increase.

ArtWide avatar Dec 27 '23 07:12 ArtWide