Is any option to get data to off-chain workers from runtime? For example, I have used runtime to store something. How can I access this data from off-chain woker without using HTTP calls?


1 Answer 1


Do you mean accessing the pallet's storage? Yes, off-chain workers can do this. Take a look e.g. hereaverage_price is reading data from the Prices storage.

  • From this readme: github.com/paritytech/substrate/tree/… we know that we can send data from off-chain worker -- > runtime. What if would like to send the data from runtime to an off-chain worker?
    – P.E
    Commented Oct 13, 2022 at 13:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.