I cannot work with Smart Contract using Node.js

I’ve been trying to link a smart contract with ethers.js in my project. const Provider= new ethers.providers.JsonRpcProvider( `https://goerli.infura.io/v3/` ); const TokenContract = new ethers.Contract( TokenAddress, abiSource.token.abi, Provider );` I tried to run this but couldn’t get the balance of the token contract. Extracted RPC link from the Metamask. Who can help me with this problem?… Read More I cannot work with Smart Contract using Node.js

Ethers.js: ReferenceError: utils is not defined

I’m trying to create a listener for incoming transactions with ethers.js (v5.6). According to the docs, to listen to incoming transactions you need to create this filter: // List all token transfers *to* myAddress: filter = { address: tokenAddress, topics: [ utils.id("Transfer(address,address,uint256)"), null, hexZeroPad(myAddress, 32) ] }; Having this in my script gives me an… Read More Ethers.js: ReferenceError: utils is not defined