Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- var Client = require('bitcoin-core');
- var client = new Client({
- host: '188.166.108.202',
- port: 28332,
- username: 'highcoinrpc',
- password: '6dciixZydwiGN7ENFfVkhA4oJmwNK7Cc42K2hF29UuUi',
- timeout: 30000
- });
- client.getBalance('*', 6, function(err, balance, resHeaders) {
- if (err) return console.log(err);
- console.log('Balance:', balance);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement