35 breaking releases

new 0.46.0 Jan 14, 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

#642 in Magic Beans

Download history 960/week @ 2024-09-27 606/week @ 2024-10-04 747/week @ 2024-10-11 1262/week @ 2024-10-18 748/week @ 2024-10-25 680/week @ 2024-11-01 511/week @ 2024-11-08 699/week @ 2024-11-15 713/week @ 2024-11-22 609/week @ 2024-11-29 772/week @ 2024-12-06 903/week @ 2024-12-13 370/week @ 2024-12-20 194/week @ 2024-12-27 777/week @ 2025-01-03 1127/week @ 2025-01-10

2,555 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