web3.js icon indicating copy to clipboard operation
web3.js copied to clipboard

Example of EIP-1559 Transfer for ERC20 token

Open innerop opened this issue 3 years ago • 7 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

What would you like to say about Web3.js' documentation?

This particular example of an EIP-1559 transaction to transfer ER20 token from one address to another, which should be very common (e.g. for sending USDC), is not covered in the docs and I googled the entire web with no results. Can you please help?

Examples/References

No response

innerop avatar Jan 05 '23 16:01 innerop

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.

github-actions[bot] avatar Mar 27 '23 00:03 github-actions[bot]

We should add this in 4.x docs

jdevcs avatar Jun 08 '23 10:06 jdevcs

Add a tutorial and add it to the SmartContract section. Also refer to - https://docs.web3js.org/guides/basics/eth/#eip-1559-transaction

mconnelly8 avatar Nov 14 '23 15:11 mconnelly8

Hey would love to take this up

sarthak1dev avatar Mar 07 '24 12:03 sarthak1dev

Hey @sarthak1dev, thanks for offering. Please assign yourself and let us know if you have any questions.

mconnelly8 avatar Mar 07 '24 20:03 mconnelly8

The structure for this doc would be as follows

  • The need for eip1559
  • Brief about gas fee changes due to eip1159
  • Example of a simple transaction with a walkthrough(tutorial)

Is this acceptable?

sarthak1dev avatar Mar 07 '24 21:03 sarthak1dev

Created docs with a detailed example and sent pull request #6874

sarthak1dev avatar Mar 08 '24 06:03 sarthak1dev