Closed Whatislove118 closed 6 months ago
version: 0.4.0 python: 3.11
Description:
When i try to use async provider for Tron
from tronpy.providers import HTTPProvider, AsyncHTTPProvider
like this: self.client = Tron(AsyncHTTPProvider(api_key=self.api_key))
self.client = Tron(AsyncHTTPProvider(api_key=self.api_key))
I got error: TypeError: provider is not a HTTPProvider
You need to use AsyncTron with AsyncHTTPProvider
version: 0.4.0 python: 3.11
Description:
When i try to use async provider for Tron
from tronpy.providers import HTTPProvider, AsyncHTTPProvider
like this:
self.client = Tron(AsyncHTTPProvider(api_key=self.api_key))
I got error: TypeError: provider is not a HTTPProvider