Skip to content

Instantly share code, notes, and snippets.

@smiled0g
Created August 29, 2020 10:37
Show Gist options
  • Save smiled0g/eacfbda8a7853ed1c6c4057fc3365342 to your computer and use it in GitHub Desktop.
Save smiled0g/eacfbda8a7853ed1c6c4057fc3365342 to your computer and use it in GitHub Desktop.
BAND/USD Oracle Script
// 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