Trait sp_offchain::OffchainWorkerApi [−][src]
The offchain worker api.
Provided methods
fn offchain_worker_before_version_2(
&self,
__runtime_api_at_param__: &BlockId<Block>,
number: NumberFor<Block>
) -> Result<(), Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
number: NumberFor<Block>
) -> Result<(), Self::Error>
👎 Deprecated
Starts the off-chain task for given block number.
fn offchain_worker_before_version_2_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
number: NumberFor<Block>
) -> Result<(), Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
number: NumberFor<Block>
) -> Result<(), Self::Error>
👎 Deprecated
Starts the off-chain task for given block number.
fn offchain_worker(
&self,
__runtime_api_at_param__: &BlockId<Block>,
header: &Block::Header
) -> Result<(), Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
header: &Block::Header
) -> Result<(), Self::Error>
Starts the off-chain task for given block header.
fn offchain_worker_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
header: &Block::Header
) -> Result<(), Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
header: &Block::Header
) -> Result<(), Self::Error>
Starts the off-chain task for given block header.