<p>If it were a label then the parameter would be named <code>label</code>.</p>
<p>Descriptor refers to output script descriptors which are described in <a href="https://github.com/bitcoin/bitcoin/blob/master/doc/descriptors.md" rel="nofollow noreferrer">this document</a> as well as BIPs <a href="https://github.com/bitcoin/bips/blob/master/bip-0380.mediawiki" rel="nofollow noreferrer">380</a>, <a href="https://github.com/bitcoin/bips/blob/master/bip-0381.mediawiki" rel="nofollow noreferrer">381</a>, <a href="https://github.com/bitcoin/bips/blob/master/bip-0382.mediawiki" rel="nofollow noreferrer">382</a>, <a href="https://github.com/bitcoin/bips/blob/master/bip-0383.mediawiki" rel="nofollow noreferrer">383</a>, <a href="https://github.com/bitcoin/bips/blob/master/bip-0384.mediawiki" rel="nofollow noreferrer">384</a>, <a href="https://github.com/bitcoin/bips/blob/master/bip-0385.mediawiki" rel="nofollow noreferrer">385</a>, and <a href="https://github.com/bitcoin/bips/blob/master/bip-0386.mediawiki" rel="nofollow noreferrer">386</a>,</p>

CC BY-SA 4.0
2022-03-25T22:28:24.283Z
2022-03-25T22:28:24.283Z
Ava Chow
<p>I thought it would be like a label as in:</p>
<pre><code>getnewaddress &quot;myawesomelabel&quot;
&gt; bcrt11qay7aqw7azkqhpda22vuzxphkccgmcvc9grz8z
</code></pre>
<p>but then</p>
<pre><code>generatetodescriptor 10 &quot;myawesomelabel&quot;
&gt; myawesomelabel is not a valid descriptor function (code -5)
</code></pre>
<p>So all I believe I know is that a descriptor is not a label?
What is a descriptor?</p>

<address><address-generation><output-script-descriptors>
What is a descriptor in "generatetodescriptor"?
JDOaktown
# What is a descriptor in "generatetodescriptor"?

(Asked by: username_0 on 2022-03-25)

I thought it would be like a label as in:

```
getnewaddress "myawesomelabel"
> bcrt11qay7aqw7azkqhpda22vuzxphkccgmcvc9grz8z

```

but then

```
generatetodescriptor 10 "myawesomelabel"
> myawesomelabel is not a valid descriptor function (code -5)

```

So all I believe I know is that a descriptor is not a label?
What is a descriptor?

**Tags:** address, address-generation, output-script-descriptors


---

## 1 answers

### Answer by username_1 on 2022-03-25. Score: 2

If it were a label then the parameter would be named `label`.

Descriptor refers to output script descriptors which are described in [this document](https://github.com/bitcoin/bitcoin/blob/master/doc/descriptors.md) as well as BIPs [380](https://github.com/bitcoin/bips/blob/master/bip-0380.mediawiki), [381](https://github.com/bitcoin/bips/blob/master/bip-0381.mediawiki), [382](https://github.com/bitcoin/bips/blob/master/bip-0382.mediawiki), [383](https://github.com/bitcoin/bips/blob/master/bip-0383.mediawiki), [384](https://github.com/bitcoin/bips/blob/master/bip-0384.mediawiki), [385](https://github.com/bitcoin/bips/blob/master/bip-0385.mediawiki), and [386](https://github.com/bitcoin/bips/blob/master/bip-0386.mediawiki),


---

