<p>I am trying to run the <code>bitcoin-cli getdescriptorinfo</code> on a <code>ypub...</code> extended public key. Every time I do this I receive the message:</p>

<p><code>
error code: -5
error message:
Invalid descriptor
</code></p>

<p>How can I determine the correct descriptor for a given ypub?</p>

<p>I am trying to derive the addresses using bitcoin core and import them into my wallet. I am fairly new to using bitcoin-core so I'm not even sure if this is the best way to do this. If not, what other method might I be able to use?</p>

CC BY-SA 4.0
2019-09-05T19:23:40.403Z
Possible duplicate of [Why does importmulti not support zpub and ypub?](https://bitcoin.stackexchange.com/questions/89261/why-does-importmulti-not-support-zpub-and-ypub)
Pieter Wuille
CC BY-SA 4.0
2019-09-05T19:23:43.987Z
I don't have any other info other than the extended public key.
carstenjanckerisgod
CC BY-SA 4.0
2019-09-05T19:44:26.683Z
Someone could probably write a tool to convert ypubs and zpubs to descriptor format. I don't think such a tool exists.
Pieter Wuille
<bitcoin-core><bitcoind><bitcoin-cli>
How do I determine the descriptor of a given Extended Public Key?
carstenjanckerisgod
# How do I determine the descriptor of a given Extended Public Key?

(Asked by: username_0 on 2019-09-05)

I am trying to run the `bitcoin-cli getdescriptorinfo` on a `ypub...` extended public key. Every time I do this I receive the message:

`error code: -5
error message:
Invalid descriptor`

How can I determine the correct descriptor for a given ypub?

I am trying to derive the addresses using bitcoin core and import them into my wallet. I am fairly new to using bitcoin-core so I'm not even sure if this is the best way to do this. If not, what other method might I be able to use?

**Tags:** bitcoin-core, bitcoind, bitcoin-cli

> **Comments:**
> **username_1**: Possible duplicate of [Why does importmulti not support zpub and ypub?](https://bitcoin.stackexchange.com/questions/89261/why-does-importmulti-not-support-zpub-and-ypub)  
> **username_0**: I don't have any other info other than the extended public key.  
> **username_1**: Someone could probably write a tool to convert ypubs and zpubs to descriptor format. I don't think such a tool exists.  

---

## 0 answers

