tron-api-python icon indicating copy to clipboard operation
tron-api-python copied to clipboard

Examples do not show how to include owner details

Open antsmc2 opened this issue 6 years ago • 2 comments

I find that the documentation/examples do not mention how to create the tron instance with contract owner information. After reading the source code I was able to figure out the following code and it works. Without this, I kept getting errors during the contract deploy step.

test_url = 'https://api.shasta.trongrid.io'
tron = Tron(full_node=test_url, solidity_node=test_url, event_server=test_url,
            private_key='af2389b556*****',        # my private key
            default_address='TQB3j6w7****')     # my tron address

Any chance to update the document to include the following information?

antsmc2 avatar Sep 30 '19 23:09 antsmc2

documentation for such a library is not much needed, just a couple of times to jump into the source code and read (but the documentation would certainly be better :)

GoEdgar avatar Oct 06 '19 14:10 GoEdgar

All methods are commented out.

serderovsh avatar Oct 07 '19 19:10 serderovsh