How to retrieve totalBalance of an ERC20 token contract?

Im using this to get the toalbalance of “AGI” in the contract https://ropsten.etherscan.io/address/0xe462cbee0cd420f6c199b0194b1d8d93fb5e7720#code window.addEventListener(‘load’, async() => { // Wait for loading completion to avoid race conditions with web3 injection timing. if(window.ethereum) { const web3 = new Web3(window.ethereum); try { // Request account access if needed await window.ethereum.enable(); // Acccounts now exposed return web3; } catch…

Transactions are failing randomly for multiple reasons when sending them in bulk for a benchmark

I’m trying to benchmark a private blockchain network (3 Vagrant nodes with 2gb of RAM running Geth Clique PoA, on an i7 7th gen Intel Core machine), following this process: A function launch n functions per second Those launched functions are reading a JSON file indicating what they should do (ex: deploy a contract and…

I need someone to make me a UI for a smart Contract

The contract i need this ui for can be found here. https://ropsten.etherscan.io/address/0xe462cbee0cd420f6c199b0194b1d8d93fb5e7720#writeContract This contract needs to first approve amount of token that can be spent in my contract. than i need buy, withdraw reinvest and sell function on my UI. As well as token Balance of AGI and Contract Balance of SNET- which also need…