16993/bitcoinjs-lib-getaddress-not-a-function-error
This is the code i am using
const bitcoin = require('bitcoinjs-lib'); let testnet = bitcoin.networks.testnet;
let keypair = bitcoin.ECPair.makeRandom({network: testnet}); let addr = keypair.getAddress(); let pk = keypair.toWIF();
You need to pass network parameter to ECPair.makeRandom directly without wrapper object and you wont get this error anymore
const bitcoin = require('bitcoinjs-lib'); let testnet = bitcoin.networks.testnet; let keypair = bitcoin.ECPair.makeRandom(testnet); let addr = keypair.getAddress(); let pk = keypair.toWIF();
Hey, @There,
Try this:
const { address } = bitcoin.payments.p2pkh({ pubkey: keyPair.publicKey })
I hope this will omit your error.
With this line it should work fine: wallet.provider ...READ MORE
Try the following: // Initialize contract variable with ...READ MORE
It appears you are using web3.js v1.0. ...READ MORE
I had the same problem. Instead ethereum:web3 Meteor package ...READ MORE
yes all are over TCP/IP connections secured ...READ MORE
This was a bug. They've fixed it. ...READ MORE
Summary: Both should provide similar reliability of ...READ MORE
It appears like you have already migrated ...READ MORE
First try restarting the system and then ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.