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
This is a modernised version of the py-substrate-interface library, with the ability to use it asynchronously (as well as synchronously). It aims to be almost fully API-compatible with the original library.
1
+
# Async Substrate Interface
2
+
This project provides an asynchronous interface for interacting with [Substrate](https://substrate.io/)-based blockchains. It is based on the [py-substrate-interface](https://github.com/polkascan/py-substrate-interface) project.
2
3
3
-
In addition to it's async nature, it is additionally improved with using bt-decode rather than py-scale-codec for significantly faster SCALE decoding.
4
+
Additionally, this project uses [bt-decode](https://github.com/opentensor/bt-decode) instead of [py-scale-codec](https://github.com/polkascan/py-scale-codec) for faster [SCALE](https://docs.substrate.io/reference/scale-codec/) decoding.
5
+
6
+
## Installation
7
+
8
+
To install the package, use the following command:
9
+
10
+
```bash
11
+
pip install async-substrate-interface
12
+
```
13
+
14
+
## Usage
15
+
16
+
Here are examples of how to use the sync and async inferfaces:
17
+
18
+
```python
19
+
from async_substrate_interface import SubstrateInterface
0 commit comments