Registry / other / sp-offchain

sp-offchain

JSON →
library42.0.0rscratesunverified

Substrate offchain workers primitives for off-chain computation.

# Cargo.toml [dependencies] sp-offchain = "42.0.0"
INSTALL
IMPORT
SIG · SP-OFFCHAIN
S
sp-offchain
otherrustv42.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.

OffchainWorker
use sp_offchain::OffchainWorker;

Use offchain worker primitives in Substrate.

use sp_offchain::OffchainWorker; fn main() { // Offchain workers are typically used within Substrate runtime. // This is a placeholder for demonstration. println!("Offchain worker primitives"); }
Debug
Known issues
gotchaThis crate is part of Substrate and requires a full Substrate runtime environment.
fix
Use within a Substrate node or runtime; not standalone.
affects: *
Upgrade
Version history
42.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
4
Amazon
1
Resources
sp-offchain — cargo add sp-offchain · libregistry