docs.rs failed to build substrate-rpc-client-0.27.0-dev.6
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
substrate-rpc-client-0.54.0
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
# use substrate_rpc_client::{ws_client, StateApi};
# use sp_core::{H256, storage::StorageKey};
#[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();
}