Skip to main content

All Questions

Tagged with
2 votes
1 answer
151 views

How can I create OCW that won't activates every block, but will activates only when I call function that it represents?

I wanna create OCW that will send a http request to the API and get the response and use this response in runtime code to call extrinsic with this data. This OCW should triggers only when I want to ...
Artem Levchuk's user avatar
2 votes
1 answer
124 views

Only one node should make http call from OCW

I'm trying to figure out with OCW. And have a question is it possible to configure OCW so that if one node starts an HTTP call in OCW other nodes will skip it. I checked all examples I could find ...
Leu Barycheuski's user avatar
3 votes
1 answer
82 views

Can we enable off-chain workers http client to support web-sockets request?

As for now it supports rest request, and some duration limitation due to valid reasons. So my question is can we enable or work with web sockets for monitoring data changes , as for now we are only ...
Mrisho Lukamba's user avatar