Solved javascript: TypeError: keyPair.getAddress is not a function

Clone / X
May 16, 2020 at 06:38:37
Specs: w7 64, i3 8G
This is the error:
TypeError: keyPair.getAddress is not a function

This is the script:
var bitcoin = require("bitcoinjs-lib")
var keyPair = bitcoin.ECPair.makeRandom();

console.log(keyPair.getAddress());
var address = keyPair.getAddress();

=====================

M2


See More: javascript: TypeError: keyPair.getAddress is not a function

Reply ↓  Report •

#1
May 17, 2020 at 09:54:01
✔ Best Answer
As Dr. McCoy told the Captain, it's worse than that.
getAddress has been removed.

https://github.com/bitcoinjs/bitcoi...

=====================

M2


Reply ↓  Report •
Related Solutions


Ask Question