Skip to content

happyeric77/golangSolidityOracle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create a central oracle of blockchain by golang

Create a off-chain oracle server and integrate with solidity smart contract

How to use

  1. clone the repo

  2. 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=
  1. See detail introduction from my blog