Skip to main content

Questions tagged [offchain-worker]

Oracle-like capabilities for Substrate chains.

0 votes
0 answers
73 views

offchain indexing for large files

I'm new to the project and currently working on a pallet, which is supposed to deal with large files offchain. Pallet, offchain indexing and the offchain worker are all working fine, still I get "...
langi667's user avatar
0 votes
1 answer
149 views

Is there any way to interact between ink smart contract and off-chain worker?

I know that we can interact between smart contract and runtime (and vice versa) but I can not find a way that I can fetch data from API (in off-chain worker pallet) and pass those data to the smart ...
Hoang Viet Nguyen's user avatar
4 votes
1 answer
158 views

How to verify that a signed payload of an unsigned extrinsic is signed by a local account?

I've been following the how-to guide to implementing unsigned extrinsic call with a signed payload. My pallet defines the following KeyTypeId: pub const KEY_TYPE: KeyTypeId = KeyTypeId(*b"ver!&...
digital illusion's user avatar
0 votes
1 answer
94 views

Implementing an Identity Management pallet, would be more efficient in a Relay or Parachain?

I'm implementing an Identity Management pallet for an administrative ecosystem. Suppose that using the same architecture as Polkadot. Questions It would be more secure, efficient and scalable to have ...
Alexandre Ribeiro's user avatar
2 votes
1 answer
130 views

Offchain Worker Not Initializing - Cumulus Parachain Template

I am observing unexpected behavior with the Cumulus Parachain Template. Our pallet uses off-chain workers (OCW), and the functionality successfully runs when we attach it to the Substrate Node ...
Brendan's user avatar
  • 65
1 vote
1 answer
42 views

how does work offchain in substrate ( pokadot ) [closed]

I Wanna know about off-chain in the substrate ( Polkadot ) how does work? How is it mine from the onchain ( main chain in Polkadot )? maybe somebody wants to hack the off-chain and they do it a ...
Kianoush Dortaj's user avatar
1 vote
0 answers
56 views

Enabling Offchain workers in a parachain

I know the way to enable ocw in a solo chain is to edit the service.rs as per the documentation and it works perfectly. I have tried making equivalent changes to the service.rs in my parachain but ...
rh00's user avatar
  • 33
2 votes
1 answer
98 views

Can an off-chain worker read/write the state of an EVM contract?

Let's assume we have a frontier-based node with smart contract X. From an off-chain worker, we want to call X.some_method() which will return data, and then the worker would use this data to make some ...
Adam Wierzbicki's user avatar
0 votes
1 answer
152 views

How to get data to off-chain worker from runtime?

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?
P.E's user avatar
  • 181
0 votes
0 answers
37 views

Is there a way to create a peer to peer network on top of substrate?

Most of substrate tutorials are based on on-chain logic so there's not much information on this topic. Is there a way to use Substrate's in-built p2p network for other purposes such as constant ...
Kofi's user avatar
  • 143
1 vote
0 answers
111 views

using any account for offchain worker signed transaction

I'm trying to implement the following sequence: Alice calls extrinsicA extrinsicA calls off-chain worker off-chain worker invokes an external service off-chain worker uses Alice for a signed ...
digital illusion's user avatar
2 votes
1 answer
118 views

Working up-to-date complete source code for offchain workers?

Hello Substrate community I've been trying to integrate an offchain worker capable of API calls on top of an existing Substrate cluster of 3 nodes I already have up and running successfully (based on ...
PoCk3T's user avatar
  • 23
0 votes
3 answers
236 views

Enabling off-chain workers for substrate-node-template

I'm trying to test offchain workers in my local substrate node. It seems that by default the ocw is not enabled? I've only been able to see logs from ocw's when running the node with the --dev option (...
random-bacon's user avatar
1 vote
1 answer
39 views

What is Offchain Call in TransactionSource?

What is an Off-Chain Call in this scenario? for instance an Off-Chain Worker, or an Off-Chain Call source: https://github.com/paritytech/substrate/blob/master/primitives/runtime/src/...
Stefan Muto's user avatar
2 votes
1 answer
68 views

How to write a dispatch function which can only access from offchain worker with signed extrinsic/transaction?

I want to modify some on-chain storage from offchain worker by sending a signed transaction, so I write a dispatch function which handles the transaction. But the dispatch function also can be ...
kugool's user avatar
  • 171

15 30 50 per page