Advertisement
Guest User

Untitled

a guest
Jul 5th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. const Client = require('bitcoin-core');
  2. const client = new Client({ network: 'mainnet' });
  3.  
  4. client.getInfo().then((help) => console.log(help));
  5.  
  6. var client = new bitcoin.Client({
  7. host: 'localhost',
  8. port: 8332,
  9. user: 'username',
  10. pass: 'password',
  11. timeout: 30000
  12. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement