Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Oracle-like capabilities for Substrate chains.
1
vote
How to get on-chain data on pallet?
Any data you want to retrieve from the runtime and runtime logic must be stored.
So if you want to be able to get a transaction by the hash within the on-chain environment, you will need to store a ma …
5
votes
Accepted
Can I call external APIs inside my pallet?
To add to Sam's post:
It should be noted that Offchain Workers are very often misunderstood. It is not trivial just to write some random http request as part of pallet development and expect it to wor …
6
votes
Accepted
How to avoid multiple OCWs duplicating work?
It sounds to me that you are using offchain workers incorrectly. They should not be thought of as trusted applications which can modify your runtime's state or behave in expected ways. In fact, you sh …