This project is for learning purposes,the main goal is to get the balance for an account address from the Ethereum network using 0x libraries
The main component is called TokenAccountBalance
, it is inside TokenAccountBalance folder. All the other elements on the App.tsx file are just for testing purposes. Eg: the input for the token address and the callback message from the Account input.
- Having MetaMask ready (logged in) and installed is required.
yarn install
yarn start
Pending
- Notify the user when his balance changes.
- Use probably
render props
pattern to isolate the main componentTokenAccountBalance
or create a custom hook for the logic. With any of these patterns, we can leverage the UI entirely to the user. - Add functional/unit tests.
- Add the functionality to save/search for token addresses and user addresses. Something like favorites for the addresses.