This example shows how DefraDB can be used for off-chain Oracle data management. It makes use of ERC-3668: CCIP Read: Secure off-chain data retrieval to execute GraphQL queries and mutations.
Start DefraDB with CORS enabled.
defradb start --allowed-origins="*"
Run the hardhat script.
npm run viem-example
# or
npm run ethers-example