Skip to content

Instantly share code, notes, and snippets.

@maraoz
Created November 21, 2014 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maraoz/e4accbe567deafefd797 to your computer and use it in GitHub Desktop.
Save maraoz/e4accbe567deafefd797 to your computer and use it in GitHub Desktop.
Bitcore default network configuration
var bitcore = require('bitcore');
// Returns a livenet address
var address = new bitcore.PrivateKey().toAddress();
// Returns a testnet address
var address = new bitcore.PrivateKey().toAddress(bitcore.testnet);
bitcore.defaultNetwork = bitcore.testnet;
// Returns a testnet address
var address = new bitcore.PrivateKey().toAddress();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment