andelf / tronpy

TRON Python Client Library.
MIT License
204 stars 96 forks source link

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

Closed ye-gz-1996 closed 1 year ago

ye-gz-1996 commented 2 years ago

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 commented 2 years ago

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

MrNaif2018 commented 1 year ago

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)