Created
November 21, 2014 19:53
-
-
Save maraoz/e4accbe567deafefd797 to your computer and use it in GitHub Desktop.
Bitcore default network configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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