[][src]Trait substrate_offchain_primitives::OffchainWorkerApi

pub trait OffchainWorkerApi<Block: BlockT>: Core<Block> {
    fn offchain_worker(
        &self,
        at: &BlockId<Block>,
        number: NumberFor<Block>
    ) -> Result<(), Error> { ... }
fn offchain_worker_with_context(
        &self,
        at: &BlockId<Block>,
        context: ExecutionContext,
        number: NumberFor<Block>
    ) -> Result<(), Error> { ... } }

The offchain worker api.

Provided methods

fn offchain_worker(
    &self,
    at: &BlockId<Block>,
    number: NumberFor<Block>
) -> Result<(), Error>

Starts the off-chain task for given block number.

fn offchain_worker_with_context(
    &self,
    at: &BlockId<Block>,
    context: ExecutionContext,
    number: NumberFor<Block>
) -> Result<(), Error>

Starts the off-chain task for given block number.

Loading content...

Trait Implementations

impl<Block: BlockT> RuntimeApiInfo for dyn OffchainWorkerApi<Block>[src]

Implementors

Loading content...