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

Error : tronpy.exceptions.AddressNotFound: account not found on-chain #2

Closed
itsAPK opened this issue Aug 29, 2020 · 1 comment
Closed

Comments

@itsAPK
Copy link
Contributor

itsAPK commented Aug 29, 2020

Got error tronpy.exceptions.AddressNotFound: account not found on-chain When I try to get Balance of address.

Code :

from tronpy import Tron

from pprint import pprint

client = Tron(network='nile')

address=client.generate_address()['base58check_address']

pprint(client.get_account_balance(address))

Traceback :

Traceback (most recent call last):
  File "tron.py", line 9, in <module>
    pprint(client.get_account_balance(address))
  File "G:\BOT\tipbot\env\lib\site-packages\tronpy\tron.py", line 517, in get_account_balance
    info = self.get_account(addr)
  File "G:\BOT\tipbot\env\lib\site-packages\tronpy\tron.py", line 501, in get_account
    raise AddressNotFound("account not found on-chain")
tronpy.exceptions.AddressNotFound: account not found on-chain
@andelf
Copy link
Owner

andelf commented Aug 30, 2020

You must use a faucet to get TRX and activate your account on-chian.

Faucet Page: https://nileex.io/join/getJoinPage

@itsAPK itsAPK closed this as completed Sep 2, 2020
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

2 participants