You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(sdk): regenerate protos for injective-core/indexer and align v1.19
Regenerate Python protobuf stubs from the updated injective-core and indexer
API definitions, and align the SDK (clients, composer, tests, examples) with
the new message types and RPC surface.
Also refresh buf/codegen inputs where applicable, drop removed modules and
legacy client surfaces that no longer exist upstream, and update dev tooling
(e.g. Ruff for lint/import order) so CI and pre-commit stay green.
- Recommended for new applications and when you need access to the latest exchange features
100
-
- Example:
101
-
```python
102
-
from pyinjective.async_client_v2 import AsyncClient
103
-
from pyinjective.network import Network
104
-
105
-
asyncdefmain():
106
-
# Initialize client with mainnet
107
-
client = AsyncClient(network=Network.mainnet())
108
-
# Or use testnet
109
-
# client = AsyncClient(network=Network.testnet())
110
-
# Use V2 exchange queries here
111
-
```
112
-
113
-
Both clients provide similar interfaces but with different underlying implementations. Choose V2 for new projects unless you have specific requirements for V1 compatibility.
75
+
## Async client (exchange V2)
76
+
77
+
The Injective Python SDK exposes `AsyncClient` from the `async_client_v2` module:
0 commit comments