-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
web3.eth.accounts.signTransaction VS EIP-1559 #5141
Comments
BTW, When I am using the maxFeePerGas and maxPriorityFeePerGas with gasPrice in web3.eth.accounts.signTransaction (undocumented way) It will say and error: eip-1559 transactions don't support gasPrice But if I remove gasPrice , it will execute web3.eth.gasPrice and make me can't sign offline. Looks like a code problem? |
Hi @overdoignism, thanks for reaching out. EIP 1559 is supported by web3js, however, gasPrice shouldn't be passed in this case. Regarding the documentation, could you open a PR updating the docs? Our focus this period is the 4.x rewriting. |
I'm trying to use the web3js to make an offline sign, for studying and a little offline wallet project. Sorry for that-- I really don't know the relationship between max/priority fee and gas price.
Sorry - I have no idea how to fix the document. (What is correct?) :~ |
Hi @overdoignism can you provide what options you are passing into signTransaction? this is the logic behind signTransaction https://github.com/ChainSafe/web3.js/blob/1.x/packages/web3-eth-accounts/src/index.js#L355 |
It's my code:
Everything work fine but If maxFeePerGas and maxPriorityFeePerGas present, |
@overdoignism Yes documentation needs to be updated. Would like to contribute and open PR for that change? |
I hope but have no idea how to... :~ I still studying about Ethereum, web3js, even the JavaScript and GitHub, on the basic stage. |
This PR addresses documentation |
Is there an existing issue for this?
What would you like to say about Web3.js' documentation?
When we read the document part for web3.eth.accounts.signTransaction,
There is only have gas and gas price, no max priority, no max fee.
May you update this part document for support EIP-1559?
Or it need to update the API library code?
Thanks.
Examples/References
No response
The text was updated successfully, but these errors were encountered: