there was already a thread started that discusses Event subscription and I think it is generally an important topic to define the best way for developers to obtain, filter and subscribe to historic/new chain-data.
Today I thought about providing an oracle and how I should implement the backend. The backend should subscribe to all OracleQueryTx that are calling my oracle.
Currently I am only aware of two different approaches:
- use the middleware-application (which is actively developed and provides WebSocket support)
- poll the chain to obtain new transactions
Is there any other way to get the data? As far as I know the WebSocket implementation on the node is only available to handle off-chain communication between state channel participants.
Which approach does the team recommend?