Open joadr opened 4 years ago
Hello, we are still having this issue, could anybody help us?
One of the members of the Telegram Dev Channels responded as:
trongrid has access frequency restrictions, 15qps, if you need high frequency access, it is recommended to build a local node, you can refer to the document for details https://developers.tron.network/docs/fullnode
Hope this helps. Did u come around with some other solution BTW?
One of the members of the Telegram Dev Channels responded as:
trongrid has access frequency restrictions, 15qps, if you need high frequency access, it is recommended to build a local node, you can refer to the document for details https://developers.tron.network/docs/fullnode
Hope this helps. Did u come around with some other solution BTW?
Status code 503 for a rate-limit is nonsense. It should be 409.
Anyways we sorted this out by stopping receiving TRON via smart contract execution. Before, as soon we found a new block, we went through all transactions and checked if it was TransferContract
type or TriggerSmartContract
. If the second type, we would make a new request calling the gettransactioninfobyid
RPC method in order to check if TRX was sent to any of our addresses. This is what made us make many requests per second. So, we just stopped supporting the TriggerSmartContract
method as it seems that less than 0,1% of the transactions we were receiving were not from smart contracts.
The optimal way of doing this anyway, that almost all other blockchains support is getting everything in a single call for each block. For example, on Ethereum, we get all normal transactions & smart contract transactions (aka. Internal Transactions), with the trace_block RPC method, and finally, all tokens transfer with get_logs (that way, for checking if any transactions arrive, we have to call 2 queries per block, instead of having to call per transaction.
Hello,
On my application I'm getting very inconsistent results on the mentioned method, executed as follows:
Results vary from Status 503 (many of the times), this response:
and this response (The correct one):
What could be going wrong? we are having difficulties receiving transactions because of this, and we are spending lots of resources to manually check on tronscan for incoming transactions. Help is very much appreciated.
Thanks, Joaquin