<blockquote>
  <p>HDNode was removed and is now a separated package.</p>
  
  <p>npm install bip32 See <a href="https://github.com/bitcoinjs/bitcoinjs-lib/issues/1243#issuecomment-429627079" rel="nofollow noreferrer">Issue #1243</a></p>
</blockquote>

<pre><code>const bitcoin = require('bitcoinjs-lib')
const bip39 = require('bip39')
const bip32 = require('bip32')

const mnemonic = 'praise you muffin lion enable neck grocery crumble super myself license ghost'
const seed = bip39.mnemonicToSeed(mnemonic)
const node = bip32.fromSeed(seed)
</code></pre>

<p>Test examples: <a href="https://github.com/bitcoinjs/bitcoinjs-lib/blob/master/test/integration/bip32.js#L19" rel="nofollow noreferrer">bitcoinjs-lib tests</a></p>

CC BY-SA 4.0
2019-03-22T22:37:57.753Z
2019-03-22T22:37:57.753Z
JBaczuk
<p>When I'm trying to create a wallet in react app using the following code:</p>

<pre><code>const seed = bip39.mnemonicToSeed(mnemonic);
const master = bitcoin.HDNode.fromSeedBuffer(seed, "testnet");
</code></pre>

<p>I got <code>error: Expected property "0" of type ECPair, got p</code></p>

<bitcoin-core><blockchain><bip32-hd-wallets>
Expected property "0" of type ECPair, got p
Shaban
# Expected property "0" of type ECPair, got p

(Asked by: username_0 on 2019-03-22)

When I'm trying to create a wallet in react app using the following code:

```
const seed = bip39.mnemonicToSeed(mnemonic);
const master = bitcoin.HDNode.fromSeedBuffer(seed, "testnet");

```

I got `error: Expected property "0" of type ECPair, got p`

**Tags:** bitcoin-core, blockchain, bip32-hd-wallets


---

## 1 answers

### Answer by username_1 on 2019-03-22. Score: 2

> HDNode was removed and is now a separated package.
>
> npm install bip32 See [Issue #1243](https://github.com/bitcoinjs/bitcoinjs-lib/issues/1243#issuecomment-429627079)

```
const bitcoin = require('bitcoinjs-lib')
const bip39 = require('bip39')
const bip32 = require('bip32')

const mnemonic = 'praise you muffin lion enable neck grocery crumble super myself license ghost'
const seed = bip39.mnemonicToSeed(mnemonic)
const node = bip32.fromSeed(seed)

```

Test examples: [bitcoinjs-lib tests](https://github.com/bitcoinjs/bitcoinjs-lib/blob/master/test/integration/bip32.js#L19)


---

