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

My private tron full node can't work with tronpy #45

Closed
ye-gz-1996 opened this issue Apr 3, 2022 · 2 comments
Closed

My private tron full node can't work with tronpy #45

ye-gz-1996 opened this issue Apr 3, 2022 · 2 comments

Comments

@ye-gz-1996
Copy link

My private node can get the latest block,
client = Tron(HTTPProvider("my_address"))
client.get_latest_block_number()
Works fine, but client.generate_address() throws an error
The error message displayed is: account not found on-chain
I think it has something to do with me not filling in the api, but how does the private full node get the api?

@danielqba
Copy link
Contributor

AFAIK client.generate_address() won't check if an address exists (is activated) on-chain. Can you try get_account_balance("address")?

@MrNaif2018
Copy link
Collaborator

generate_address() just creates a cryptographically random address without any network requests

But of course it won't exist in blockchain because it needs to be activated (1 TRX activation fee)

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