Vercel deployment of this Oracle service: https://oracle-demo.vercel.app/docs
A code example of how smart contract PriceBet uses this Oracle.
$ npm install
Step 1. Create a .env
file under the project root directory from template .env.example
.
Generate RABIN_PRIV_P
and RABIN_PRIV_Q
with command npm run genRabinPrivKey
.
Generate PRIVATE_KEY
with command npm run genBsvPrivKey
.
Step 2. Run this app with the following commands.
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
Step 3. View Swagger docs at http://localhost:3000/docs
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov