Crates.io | sc-offchain |
lib.rs | sc-offchain |
version | 40.0.0 |
source | src |
created_at | 2020-02-27 12:02:07.923788 |
updated_at | 2024-09-26 09:53:58.376272 |
description | Substrate offchain workers |
homepage | https://paritytech.github.io/polkadot-sdk/ |
repository | https://github.com/paritytech/polkadot-sdk.git |
max_upload_size | |
id | 213074 |
size | 76,783 |
Substrate offchain workers.
The offchain workers is a special function of the runtime that gets executed after block is imported. During execution it's able to asynchronously submit extrinsics that will either be propagated to other nodes or added to the next block produced by the node as unsigned transactions.
Offchain workers can be used for computation-heavy tasks that are not feasible for execution during regular block processing. It can either be tasks that no consensus is required for, or some form of consensus over the data can be built on-chain for instance via:
License: GPL-3.0-or-later WITH Classpath-exception-2.0
Polkadot SDK stable2409