I'm off-chain
indexing some pallet events into my off-chain local storage using an OCW
. Now, I want to be able to retrieve this data via RPC from an external service.
Is this possible? Does it require the OCW
to access the local-storage
as part of the RPC query?
Do Custom RPC
work for the off-chain runtime?
https://docs.substrate.io/v3/runtime/custom-rpcs/
Any example will be appreciate it. TIA, Cheers!
NB: I'm not after an Oracle, I need the opposite case.