<p>Bitcoinjs-lib no longer contains the BIP-32 functionality you are trying to use:</p>
<p><a href="https://github.com/bitcoinjs/bitcoinjs-lib/commit/84bc2ea6bf62ddb26fa9cb023b765d414f98f982" rel="nofollow noreferrer">https://github.com/bitcoinjs/bitcoinjs-lib/commit/84bc2ea6bf62ddb26fa9cb023b765d414f98f982</a></p>
<p>You need to use <a href="https://github.com/bitcoinjs/bip32" rel="nofollow noreferrer">https://github.com/bitcoinjs/bip32</a></p>

CC BY-SA 4.0
2022-02-14T21:18:16.330Z
2022-02-14T21:18:16.330Z
meshcollider
<p>I am trying to run the example code in the bip32-utils taken here (<a href="https://github.com/bitcoinjs/bip32-utils" rel="nofollow noreferrer">https://github.com/bitcoinjs/bip32-utils</a>) of:</p>
<pre><code>const bip39 = require('bip39')
const bitcoin = require('bitcoinjs-lib')
const bip32utils = require('bip32-utils')

let mnemonic = bip39.generateMnemonic()
let seed = bip39.mnemonicToSeedSync(mnemonic)

let hdNode = bitcoin.bip32.fromSeed(seed)

let childNode = hdNode.deriveHardened(0)
let external = childNode.derive(0)
let internal = childNode.derive(1)
let account = new bip32utils.Account([
  new bip32utils.Chain(external.neutered()),
  new bip32utils.Chain(internal.neutered())
])

console.log(account.getChainAddress(0))
</code></pre>
<p>But i keep getting this typeError of <code>node.getAddress is not a function</code>, any suggestions?</p>

<bip32-hd-wallets><bitcoinjs>
In bip32-utils for bitcoinjs, node.getAddress is not a function
jiamijiang
# In bip32-utils for bitcoinjs, node.getAddress is not a function

(Asked by: username_0 on 2021-10-04)

I am trying to run the example code in the bip32-utils taken here (https://github.com/bitcoinjs/bip32-utils) of:
const bip39 = require('bip39')
const bitcoin = require('bitcoinjs-lib')
const bip32utils = require('bip32-utils')

let mnemonic = bip39.generateMnemonic()
let seed = bip39.mnemonicToSeedSync(mnemonic)

let hdNode = bitcoin.bip32.fromSeed(seed)

let childNode = hdNode.deriveHardened(0)
let external = childNode.derive(0)
let internal = childNode.derive(1)
let account = new bip32utils.Account([
  new bip32utils.Chain(external.neutered()),
  new bip32utils.Chain(internal.neutered())
])

console.log(account.getChainAddress(0))

But i keep getting this typeError of node.getAddress is not a function, any suggestions?

**Tags:** bip32-hd-wallets, bitcoinjs


---

## 1 answers

### Answer by username_1 on 2022-02-14. Score: 1

Bitcoinjs-lib no longer contains the BIP-32 functionality you are trying to use:

<https://github.com/bitcoinjs/bitcoinjs-lib/commit/84bc2ea6bf62ddb26fa9cb023b765d414f98f982>

You need to use <https://github.com/bitcoinjs/bip32>


---

