Request-response oracle supporting arbitrary data
-
Deploy Oracle.sol or implement and deploy custom IOracle.sol interface.
-
Inherit from OracleConsumer.sol and deploy contract defining a callback for oracle.
-
Define ENDPOINT_URI, PRIVATE_KEY, ADDRESS, ABI and TASK_ID in .env file and run oracle_service or use provided interface in custom program.
-
Call oracle from oracle consumer to access off-chain data.