Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Pass arguments to off-chain worker #3912

@xlc

Description

@xlc

How to pass arguments to off-chain worker? AFAIK it is possible to configure session key for offchain worker to consume. But can this session key be arbitrary string?

For example, I would like to pass API key to off-chain worker so it can fetch data from exchanges. The offchain code can check if it has API key configured to do actual work.

In the end, I would like to build an oracle module that allow people to stake to become an operator. Then they can configure a session key and one or more external services API keys to start submit data using offchain worker. This makes a permisionless decentralised oracle network possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    J0-enhancementAn additional feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions