aragon / use-wallet

👛 useWallet() · All-in-one solution to connect a dapp to an Ethereum provider.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

erc20 Example

arsen3d opened this issue · comments

Would be nice if there was an example of getting balance and sending of ERC20 token.

Hey there, thanks for the suggestion!

However, getting balances or sending tokens (or more broadly, contract interactions) is not something useWallet is designed to do. useWallet is merely an interface between your react application and wallet provider. This is why we don't have requested examples and won't be adding them in the future, either. If you are interested in this type of functionality you will have to check out libraries like ethers.js or web3.