Created
July 20, 2020 09:47
-
-
Save tansawit/fc4380ae1b277493633e303384fbfa74 to your computer and use it in GitHub Desktop.
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
// Instantiating BandChain with REST endpoint | |
const bandchain = new BandChain(endpoint); | |
// Create an instance of OracleScript with the script ID | |
const oracleScript = await bandchain.getOracleScript(oracleScriptID); | |
// Initiate obi object to be used for decoding the result later | |
const obi = new Obi(schema); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment