// // Verify your BitGo Access Token here // // Copyright 2015, BitGo, Inc. All Rights Reserved. // const BitGoJS = require('../src/index.js'); if (process.argv.length < 3) { console.log('usage:\n\t' + process.argv[0] + ' ' + process.argv[1] + ' '); process.exit(-1); } // For Testnet environment set env to test // For Livenet environment set env to prod const accessToken = process.argv[2]; const bitgo = new BitGoJS.BitGo({ env: 'test', accessToken: accessToken }); console.log('BitGoJS library version: ' + bitgo.version()); bitgo.session({}) .then(function(res) { console.log(res); }) .catch(function(err) { console.log(err); });