UNPKG

blocktrail-sdk

Version:

BlockTrail's Developer Friendly API binding for NodeJS

14 lines (13 loc) 495 B
/* jshint -W101 */ var blocktrail = require('../'); // require('blocktrail-sdk') when trying example from in your own project var client = new blocktrail.InsightBitcoinService({ host: 'http://198.199.68.115:3001/insight-api' }); //client.getBatchUnspentOutputs(['LNB1bo9HKUx84emLbz4FyHmw81MLgDCd1v']) client.getBatchUnspentOutputs(['1P8JEyFzdmWcTEkYGhnXCHDDHkGtMhvrS3']) .then(function (result) { console.log(result) }, function (err) { console.log('error') console.log(err) });