This is the error:
TypeError: keyPair.getAddress is not a functionThis is the script:
var bitcoin = require("bitcoinjs-lib")
var keyPair = bitcoin.ECPair.makeRandom();console.log(keyPair.getAddress());
var address = keyPair.getAddress();=====================
M2
As Dr. McCoy told the Captain, it's worse than that.
getAddress has been removed.https://github.com/bitcoinjs/bitcoi...
=====================
M2