Bitcoinjs-lib: bitcoin.payments is undefined in version 3.3.2.

Created on 30 Jul 2018  路  2Comments  路  Source: bitcoinjs/bitcoinjs-lib

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?

how to / question / docs

Most helpful comment

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.

All 2 comments

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

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thrastarson picture thrastarson  路  3Comments

askucher picture askucher  路  3Comments

dcousens picture dcousens  路  3Comments

hoshsadiq picture hoshsadiq  路  3Comments

coingeek picture coingeek  路  4Comments