Registry / networking / sc-rpc-api

sc-rpc-api

JSON →
library0.57.0rscratesunverified

Substrate RPC interfaces for blockchain node communication.

# Cargo.toml [dependencies] sc-rpc-api = "0.57.0"
INSTALL
IMPORT
SIG · SC-RPC-API
S
sc-rpc-api
networkingrustv0.57.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

StateApi
use sc_rpc_api::state::StateApi;

Imports the StateApi trait from Substrate RPC API.

use sc_rpc_api::state::StateApi; fn main() { // Example: trait for Substrate state RPC println!("Substrate RPC API available"); }
Debug
Known issues
gotchaRequires Substrate runtime dependencies and feature flags.
fix
Enable the 'std' feature and ensure substrate dependencies are in Cargo.toml.
affects: >=0.57.0
Upgrade
Version history
0.57.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
sc-rpc-api — cargo add sc-rpc-api · libregistry