<p>Using <a href="https://github.com/mcdallas/cryptotools" rel="nofollow noreferrer">this</a> python library</p>
<pre><code>&gt;&gt;&gt; from cryptotools import Xprv
&gt;&gt;&gt; xprv = Xprv.from_mnemonic('fetch detect laugh camp coil salute any guide scheme monster alone slot', addresstype='P2WPKH')

&gt;&gt;&gt; zpub = (xprv/84./0./0.).to_xpub()
&gt;&gt;&gt; zpub.encode()
'zpub6sApCAVpVCnUJQbmPfjepgCtNW1781fiD2ChuPdEs2oWEDpgKh5QJdcSJJL29Q5XwiJ2WvWo71eteRubzDmGH1SYMhg2cL7Um8uYbnVGk6A' 
</code></pre>

CC BY-SA 4.0
2021-11-05T21:11:07.620Z
2021-11-05T21:11:07.620Z
Mike D
<p>tell me please, how we can receive Account Extended Public Key from mnemonic phrase via PHP or Python? Or possible in internet we have ready console scripts?</p>
<p>I'm going to <a href="https://iancoleman.io/bip39/" rel="nofollow noreferrer">https://iancoleman.io/bip39/</a> converter, and put mnemonic phrase</p>
<p>fetch detect laugh camp coil salute any guide scheme monster alone slot</p>
<p>in field BIP 39 Mnemonic. After I selected BIP84 in Derivation Path.</p>
<p>After this in field Account Extended Public Key we received correct Account Extended Public Key:</p>
<p>zpub6sApCAVpVCnUJQbmPfjepgCtNW1781fiD2ChuPdEs2oWEDpgKh5QJdcSJJL29Q5XwiJ2WvWo71eteRubzDmGH1SYMhg2cL7Um8uYbnVGk6A</p>
<p>Thanks.
I will thank you for help.</p>

<python><php>
Account Extended Public Key from mnemonic
John Smith
# Account Extended Public Key from mnemonic

(Asked by: username_0 on 2021-11-05)

tell me please, how we can receive Account Extended Public Key from mnemonic phrase via PHP or Python? Or possible in internet we have ready console scripts?

I'm going to <https://iancoleman.io/bip39/> converter, and put mnemonic phrase

fetch detect laugh camp coil salute any guide scheme monster alone slot

in field BIP 39 Mnemonic. After I selected BIP84 in Derivation Path.

After this in field Account Extended Public Key we received correct Account Extended Public Key:

zpub6sApCAVpVCnUJQbmPfjepgCtNW1781fiD2ChuPdEs2oWEDpgKh5QJdcSJJL29Q5XwiJ2WvWo71eteRubzDmGH1SYMhg2cL7Um8uYbnVGk6A

Thanks.
I will thank you for help.

**Tags:** python, php


---

## 1 answers

### Answer by username_1 on 2021-11-05. Score: 0

Using this python library
>>> from cryptotools import Xprv
>>> xprv = Xprv.from_mnemonic('fetch detect laugh camp coil salute any guide scheme monster alone slot', addresstype='P2WPKH')

>>> zpub = (xprv/84./0./0.).to_xpub()
>>> zpub.encode()
'zpub6sApCAVpVCnUJQbmPfjepgCtNW1781fiD2ChuPdEs2oWEDpgKh5QJdcSJJL29Q5XwiJ2WvWo71eteRubzDmGH1SYMhg2cL7Um8uYbnVGk6A'


---

