bitcoinjs / bitcoinjs-lib

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

bitcoin.payments is undefined in version 3.3.2. #1155

Closed educob closed 6 years ago

educob commented 6 years ago

Hi. We are told to install bitcoinjs-lib using "npm install bitcoinjs-lib". This installs 3.3.2 version.

In that version there is no bitcoin.payments which is used in the test examples.

What version should I use and where can I find examples compatible with that version? Thanks. For what version are the examples coded?

dcousens commented 6 years ago

@educob are you doing npm install bitcoinjs-lib in a folder that already has that library installed? Otherwise it should install latest.

educob commented 6 years ago

You are right. I deleted the folder and reinstall from scratch (after removing the entry in package.json and it installed 4.0.1.

Thanks.