All Questions
Tagged with offchain-worker offchain-storage
9
questions
3
votes
1
answer
87
views
Offchain indexing storage overwrites during forks
We are using offchain indexing to store some value that will be read in offchain worker .
The keys that we are using to store data via offchain indexing is as following:
key = some_prefix + ...
1
vote
1
answer
67
views
Iterating on a storage from Offchain Worker Concerns
I have a StorageMap named PublicKeyToMsaId which has around 300K inserted items and I want to iterate on all of those keys-values in offchain-worker to create a reverse map in offchain storage.
To ...
1
vote
0
answers
28
views
offchain worker choose key to sign and send
I have multiple keys in my node storage with offchain worker running, there are currently 2 ways to sign and send transactions, it is done either for all of the keys stored locally, or 1 unspecified ...
1
vote
0
answers
37
views
Fetching offchain storage value returns different value than the value fetched using localStorageGet function
I need to get the rpc_url value set initially from the explorer. The localStorageGet rpc function returns the correct value of the rpc_url.
This returns https://eth-mainnet.g.alchemy.com/v2/MY_API_KEY
...
2
votes
1
answer
85
views
Is it possible to write-access Local Storage from the Node?
My use case is this:
an Offchain Worker sends Http requests to certain endpoints.
These endpoints are hardcoded on chain under current implementation.
I would like to be able to configure those ...
2
votes
0
answers
85
views
Offchain cache/view of on-chain storage data
I am implementing a pallet, that stores in on-chain storage (aka StorageNMap's) some user provided data. Pallet is performing offchain computations by iterating on-chain storage from offchain-worker ...
1
vote
1
answer
57
views
Configure OCW to run every x blocks or on demand
I understand that off-chain workers are spawned during block import, quote:
Offchain workers are spawned during each block import. However, they aren't executed during initial blockchain ...
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 "...
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 ...