Issue with Smart Contract Interaction on TRON Nile Testnet (Possible TronGrid Rate Limiting)

I am trying to interact with my smart contracts deployed on the TRON Nile Testnet, but I keep encountering the following error:

Error: AggregateError at Contract.at
(/home/achiever/TRON/backend/node_modules/tronweb/lib/commonjs/lib/contract/index.js:
117:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at 
async getTokenContract (/home/achiever/TRON/backend/core/contracts.js:9:27) at async 
/home/achiever/TRON/backend/routes/user.js:16:23

rich text editor imagerich text editor image

Details:

  • This error occurs about 8 out of 10 times when I attempt to interact with the contract.
  • I have tried various ways to troubleshoot but haven’t found relevant resources.
  • I suspect that this might be due to rate limiting on TronGrid.

Questions:

  1. Can someone confirm if this issue is related to TronGrid’s rate limits?
  2. If so, how can I mitigate or resolve this issue?
  3. Are there alternative methods or providers to interact with the TRON blockchain to avoid this problem?

Any help or suggestions would be appreciated!

@SimbadMarino could be of help

2 Likes

Hello and sorry for the late response @reddy , have you tried using shasta testnet?

I’ve also experienced glitches with nile in the past, documentation usually points towards Shasta as well.

1 Like

It seems like you did not pass the abi of the smart contract. Check the above link.

const abi = [...];       
const instance = await tronWeb.contract(abi,'contractAddress');
1 Like