I'm kind of new to Ethereum network. I used to implement Stellar before. I have successfully implemented my JavaScript app to transfer Eth already. Therefore, I want to expand my above app to accept/transfer ERC20 tokens on the markets, by still using web3js, I wonder
- Do I have to implement web3.eth.Contract for my app wallet to achieve ERC20 tokens compatible ?
- If not, is there any other easy ways to implement this ?
What is the
SOME_ERC20_FILE.json
file as shown in code below (that is related to ABI) ? Where can I get an example of this JSON file ?const fs = require('fs'); const parsedFile = JSON.parse(fs.readFileSync(SOME_ERC20_FILE.json)); const abi = parsedFile.abi; const myContract = new web3.eth.Contract(abi, 0x012345678912345678012345678012345678012);
Thank you in advance.