PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo-express/node_modules/bitgo/example
Просмотр файла: getAddressBalance.js
//
// Check the balance of an address on the bitcoin blockchain.
// Does not require authentication or have a notion on which user the address belongs to.
//
// Copyright 2014, BitGo, Inc. All Rights Reserved.
//
var BitGoJS = require('../src/index.js');
if (process.argv.length < 2) {
console.log("usage:\n\t" + process.argv[0] + " " + process.argv[1] + " <address>");
process.exit(-1);
}
var address = '2N4Xz4itCdKKUREiySS7oBzoXUKnuxP4nRD';
if (process.argv.length > 2) {
address = process.argv[2];
}
var bitgo = new BitGoJS.BitGo();
// Now get the Address information
bitgo.blockchain().getAddress({address: address}, function(err, response) {
if (err) { console.log(err); process.exit(-1); }
console.log('Address info is: ');
console.dir(response);
});
Выполнить команду
Для локальной разработки. Не используйте в интернете!