W

web3-tokens

A web3.js version 4.x plugin that gives you contract instance of the most common token standards like ERC-20, ERC-721, ERC-777, ERC-1155 and more. So you don't have to search for an abi jsons anymore.


The problem web3-tokens solves

web3.js currently only supports the basic json RPC functions like fetching the native coin balances, blocks etc. and sending basic transactions. Tokens standards like ERC-20 and the NFT standards have become an essential part of every EVM chain but in web3.js one always needs to fetch ABI json files of every contract that one wants to interact with. This plugin solves this by creating a web3-tokens package that can easyily be included to make web3.js support those essential standards.

Challenges I ran into

I had to learn a lot of things like:

  • Using the new version 4.x of web3.js.
  • Using the new plugin structure.
  • Testing web3.js code.

Technologies used

Discussion