andelf / tronpy

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

Add "Tron-Pro-Api-Key" parameter to the constructor Tron() #88

Closed artemengineer closed 1 year ago

artemengineer commented 1 year ago

Example: client = Tron(conf={"api_key": "11111-1111-1111-11111-11111"})

add in the file tron.py: self.provider = HTTPProvider(conf_for_name(network), self.conf["timeout"], self.conf["api_key"])

MrNaif2018 commented 1 year ago

Trongrid is just one centralised service. I don't see much reason to add api keys specifically for it