36 breaking releases

new 0.47.0 Jan 29, 2025
0.44.0 Sep 26, 2024
0.43.0 Jul 18, 2024
0.36.0 Mar 18, 2024
0.0.0 Nov 21, 2022

#46 in #parity

Download history 593/week @ 2024-10-09 983/week @ 2024-10-16 1146/week @ 2024-10-23 705/week @ 2024-10-30 482/week @ 2024-11-06 649/week @ 2024-11-13 853/week @ 2024-11-20 507/week @ 2024-11-27 701/week @ 2024-12-04 956/week @ 2024-12-11 510/week @ 2024-12-18 264/week @ 2024-12-25 436/week @ 2025-01-01 1192/week @ 2025-01-08 1287/week @ 2025-01-15 1432/week @ 2025-01-22

4,349 downloads per month
Used in 8 crates (3 directly)

Apache-2.0 and GPL-3.0-or-later…

1MB
8K SLoC

Release

Polkadot SDK Stable 2412


lib.rs:

Shared JSON-RPC client related code and abstractions.

It exposes a WebSocket JSON-RPC client that implements the RPC interface in sc-rpc-api along with some abstractions.

Usage


#[tokio::main]
async fn main() {

    let client = ws_client("ws://127.0.0.1:9944").await.unwrap();
    client.storage(StorageKey(vec![]), Some(H256::zero())).await.unwrap();

    // if all type params are not known you need to provide type params
    StateApi::<H256>::storage(&client, StorageKey(vec![]), None).await.unwrap();
}

Dependencies

~77–115MB
~2M SLoC