You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{"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'];
The text was updated successfully, but these errors were encountered:
{"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'];
The text was updated successfully, but these errors were encountered: