bitpay / bitcore

A full stack for bitcoin and blockchain-based applications
https://bitcore.io/
MIT License
4.8k stars 2.07k forks source link

TypeError: Cannot read properties of undefined (reading 'fromWIF') #3678

Open ProximaCA opened 5 months ago

ProximaCA commented 5 months ago

my code import bitcoin from 'bitcoinjs-lib';

const TESTNET = bitcoin.networks.testnet; const privateKeyWIF = '...';

const keyPair = bitcoin.ECPair.fromWIF(privateKeyWIF, TESTNET);