Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getTransactionCount #185

Open
Tak-Pesar opened this issue Aug 28, 2023 · 0 comments
Open

getTransactionCount #185

Tak-Pesar opened this issue Aug 28, 2023 · 0 comments

Comments

@Tak-Pesar
Copy link

Tak-Pesar commented Aug 28, 2023

this is my 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) {
    exit($e->getMessage());
}

$tron->setAddress('...');

$tron->setPrivateKey('...');

var_dump($tron->getBalance(fromTron : true)); // 100

var_dump($tron->getTransactionCount());

IEXBase\TronAPI\Tron::getTransactionCount(): Return value must be of type int, null returned
671
Undefined array key "num"
671

this url for Transactions changed !
and also :

var_dump($tron->getTransactionsRelated('...','to'));

i get this error :

Client error: POST https://api.trongrid.io/walletextension/gettransactionstothis resulted in a 405 Method Not Allowed response:

Error 405 HTTP method POST (truncated...)

113

I also had this problem in the Python library and I brought it to your attention

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant