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

how to get balance trc20 #20

Closed
kaankozan opened this issue Mar 15, 2019 · 9 comments
Closed

how to get balance trc20 #20

kaankozan opened this issue Mar 15, 2019 · 9 comments

Comments

@kaankozan
Copy link
Contributor

hi
i use
$tron->getAccount('address')

but i dont get trc20 token balance

how to find trc20 token balance

@kaankozan
Copy link
Contributor Author

can u help me

@serderovsh
Copy link
Contributor

serderovsh commented Mar 22, 2019

https://github.com/iexbase/tron-api/blob/master/src/Tron.php#L464
There are no other methods in the Tron documentation!

@kaankozan
Copy link
Contributor Author

but this method doesnt get trc20 token balance...

@kaankozan
Copy link
Contributor Author

can u help me pls

@serderovsh
Copy link
Contributor

there is no other method in the Tron documentation

Only available https://github.com/iexbase/tron-api/blob/master/src/Tron.php#L464

@kaankozan
Copy link
Contributor Author

function balanceOf(address tokenOwner) public constant returns (uint balance);

https://developers.tron.network/docs/trc10-token

@serderovsh
Copy link
Contributor

This is a contact balance, in tron-api there is no possibility to manage a contract yet.

@kaankozan
Copy link
Contributor Author

do u add to contact balance

@mr-mr7
Copy link

mr-mr7 commented Jun 18, 2024

solved it???????

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

3 participants