Registry / networking / sc-rpc

sc-rpc

JSON →
library52.0.0rscratesunverified

Substrate Client RPC provides JSON-RPC endpoints for interacting with Substrate-based blockchain nodes.

# Cargo.toml [dependencies] sc-rpc = "52.0.0"
INSTALL
IMPORT
SIG · SC-RPC
S
sc-rpc
networkingrustv52.0.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.

RpcModule
use sc_rpc::RpcModule;

Creates a basic RPC module with a single method.

use sc_rpc::RpcModule; fn main() { let mut module = RpcModule::new(()); module.register_method("hello", |_, _| Ok("world")); }
Debug
Known issues
gotchaRequires Substrate runtime dependencies; not standalone.
fix
Ensure you are building within a Substrate node project with proper dependencies.
affects: >=0.0.0
Upgrade
Version history
52.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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