bitcoinjs / bitcoinjs-lib

A javascript Bitcoin library for node.js and browsers.
MIT License
5.67k stars 2.1k forks source link

javascript: keypair.getAddress is not a function #1571

Closed escapefelicity closed 4 years ago

escapefelicity commented 4 years ago

var bitcoin = require('bitcoinjs-lib'); var keypair = bitcoin.ECPair.makeRandom()

var address = keypair.getAddress().toString();

junderw commented 4 years ago

https://github.com/bitcoinjs/bitcoinjs-lib/blob/master/CHANGELOG.md#400

"removed" bullet point 3.

It was removed in v4 almost 2 years ago. Please read the examples linked in the README for examples pertaining to the current version.

escapefelicity commented 4 years ago

Thank you Jonathan. I was tearing my hair out. I'll buy you a beer. Send your BTC or DGB address.

On Sun, May 17, 2020 at 9:09 PM Jonathan Underwood notifications@github.com wrote:

Closed #1571 https://github.com/bitcoinjs/bitcoinjs-lib/issues/1571.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bitcoinjs/bitcoinjs-lib/issues/1571#event-3344585204, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIOSCUFCIWPHWLOF6ZVSINTRR7VZZANCNFSM4NDK3PSQ .