Registry / other / sp-blockchain

sp-blockchain

JSON →
library45.0.0rscratesunverified

Substrate blockchain traits and primitives.

# Cargo.toml [dependencies] sp-blockchain = "45.0.0"
INSTALL
IMPORT
SIG · SP-BLOCKCHAIN
S
sp-blockchain
otherrustv45.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.

HeaderBackend
use sp_blockchain::HeaderBackend;

Demonstrates using the HeaderBackend trait to query blockchain info.

use sp_blockchain::HeaderBackend; fn example<B: HeaderBackend<()>>(backend: &B) { let info = backend.info(); println!("Best block: {:?}", info.best_hash); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
45.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources