0

Suppose we want to create a chain which has a native oracle "module" - is it possible to customize the validators to provide the information, or do we develop a pallet for this?

In either case, we need some kind of affirmative data on-chain that provides data for applications to easily use.

Would be super grateful if someone pointed me to the right direction here!

1 Answer 1

1

normally you will need ocw to achieve that and with sp_io::offchain::is_validator() to feed oracle only by validators.

Just take im-online for reference

1
  • Thanks! And how will the data be passed to the other oracles for consensus gathering?
    – meow
    Commented May 19, 2022 at 12:51

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.