Closed NoR3s closed 5 years ago
Try
const alice1 = bitcoin.ECPair.makeRandom({ network: bitcoin.networks.regtest })
@NoR3S it is assumed understand the basics of JavaScript before using this library.
@coinflippa regtest
in that scenario is undefined too! Use testnet
.
const alice1 = bitcoin.ECPair.makeRandom({ network: bitcoin.networks.testnet })
Hello im getting everytime refrence error or missing imports.
i follow the examples witch are shown on the git i just try the following code to create a simple random adress
const alice1 = bitcoin.ECPair.makeRandom({ network: regtest })
This happends also when using other examples that im missing things. ReferenceError: regtest is not defined
version im using is "bitcoinjs-lib": "^4.0.1",