Create a off-chain oracle server and integrate with solidity smart contract
-
clone the repo
-
change the env to .env and fill the info:
// The private key of account
PRIVATE_KEY=
// The INFURA project id
INFURA_API_KEY=
// Deployed smart contract address (which emits the event to request off-chain price data)
CA=
- See detail introduction from my blog