Created
August 29, 2020 10:37
-
-
Save smiled0g/eacfbda8a7853ed1c6c4057fc3365342 to your computer and use it in GitHub Desktop.
BAND/USD Oracle Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Chain parameters | |
const endpoint = 'https://guanyu-devnet.bandchain.org/rest' | |
// Request parameters | |
const oracleScriptId = 13 | |
const params = { | |
"base_symbol": "BAND", | |
"quote_symbol": "USD", | |
"aggregation_method": "median", | |
"multiplier": 1000000 | |
} | |
const validatorCounts = { | |
minCount: 3, | |
askCount: 4, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment