{"Error":"request rate exceeded the allowed_rps(10), and the query server is suspended for 5 s"}
How Can I fix this rate limit error?
Code :
$fullNode = new \IEXBase\TronAPI\Provider\HttpProvider('https://api.trongrid.io');
$solidityNode = new \IEXBase\TronAPI\Provider\HttpProvider('https://api.trongrid.io');
$eventServer = new \IEXBase\TronAPI\Provider\HttpProvider('https://api.trongrid.io');
try {
$tron = new \IEXBase\TronAPI\Tron($fullNode, $solidityNode, $eventServer);
} catch (\IEXBase\TronAPI\Exception\TronException $e) {
SendMessage(REPORT_CHANNEL, "❗️Tron Blockchain Error While Checking Payments On Cron : " . $e->getMessage());
break;
}
$tron->setAddress($u_wallet_trx_address);
$balance = $tron->getBalance(null, true);
$tron->setPrivateKey($u_wallet_trx_pvkey);
$result = $tron->send(trx_wallet, $balance - '0.000001')['result'];
{"Error":"request rate exceeded the allowed_rps(10), and the query server is suspended for 5 s"} How Can I fix this rate limit error? Code : $fullNode = new \IEXBase\TronAPI\Provider\HttpProvider('https://api.trongrid.io'); $solidityNode = new \IEXBase\TronAPI\Provider\HttpProvider('https://api.trongrid.io'); $eventServer = new \IEXBase\TronAPI\Provider\HttpProvider('https://api.trongrid.io'); try { $tron = new \IEXBase\TronAPI\Tron($fullNode, $solidityNode, $eventServer); } catch (\IEXBase\TronAPI\Exception\TronException $e) { SendMessage(REPORT_CHANNEL, "❗️Tron Blockchain Error While Checking Payments On Cron : " . $e->getMessage()); break; }
$tron->setAddress($u_wallet_trx_address); $balance = $tron->getBalance(null, true); $tron->setPrivateKey($u_wallet_trx_pvkey); $result = $tron->send(trx_wallet, $balance - '0.000001')['result'];