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

TODO: TronGrid API support #16

Closed
andelf opened this issue Jan 24, 2021 · 6 comments
Closed

TODO: TronGrid API support #16

andelf opened this issue Jan 24, 2021 · 6 comments

Comments

@andelf
Copy link
Owner

andelf commented Jan 24, 2021

See-also: #14

@andelf
Copy link
Owner Author

andelf commented Jan 24, 2021

  • Since almost all TronGrid APIs have paging support, a generator(yield) style might be useful
  • Handle rate-limiter error
  • Configurable retries(avoiding hitting rate-limiter)
  • Must use a different request session(HTTP client instance), since it may have an API Key support soon
  • Poll style for the event API

/cc @Badiboy

@spidemen
Copy link

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
Copy link
Owner Author

andelf commented May 26, 2021

@spidemen
Copy link

spidemen commented Jun 1, 2021

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

@MrNaif2018
Copy link
Collaborator

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
Copy link
Collaborator

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

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