andelf / tronpy

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

TODO: TronGrid API support #16

Closed andelf closed 1 year ago

andelf commented 3 years ago

See-also: #14

andelf commented 3 years ago

/cc @Badiboy

spidemen commented 3 years ago

please make a method when create a TRON object, since you get random api key cannot meet current highly TPS.
like ``` client = Tron(network='shasta', API_KEY='xxxxxx')

andelf commented 3 years ago

@spidemen How about:

https://tronpy.readthedocs.io/en/latest/client.html#using-trongrid-api-key

spidemen commented 3 years ago

TypeError: init() got an unexpected keyword argument 'HTTPProvider'

MrNaif2018 commented 1 year ago

TypeError: init() got an unexpected keyword argument 'HTTPProvider'

You have probably passed it as a keyword argument, instead do client = Tron(HTTPProvider(api_key="Your api_key here"))

As for the trongrid API, I wonder if it's of any use. I was able to implement all payment processing functions completely without it for example. Not sure what is useful in it

MrNaif2018 commented 1 year ago

I don't think that's needed because of ability of good to use APIs way better than trongrid (i.e. Ankr giving 3 million requests per day for free).

P.S. @andelf Please enable "Build forked pull requests" in CircleCI project settings, it's hard to review pull requests without CI running on them