<p>Bitcoin Core only accepts addresses in its <code>addr()</code> descriptors that match the chain type it is running for.</p>
<p>So if <code>bitcoind</code> is running with e.g. <code>-regtest</code>, it will only accept regtest addresses, not testnet addresses.</p>

CC BY-SA 4.0
2024-06-28T13:15:45.733Z
2024-06-28T13:15:45.733Z
Pieter Wuille
<p>I'm trying to get the checksum of my descriptor (<code>addr(tb1qsvmygjlhq2p9ap262fwdfq3ptfjqlg2s9gcx58wazdge07kwu26q9guuh2)</code>) using the <code>getdescriptorinfo</code> method, but I'm getting an error:</p>
<blockquote>
<p>-5: Address is not valid</p>
</blockquote>
<p><a href="https://github.com/bitcoin/bips/blob/master/bip-0385.mediawiki" rel="nofollow noreferrer">BIP385</a> is too sparse to explain what's wrong with my address.</p>
<p>I don't have the ability to use other handle functions like <code>wsh()</code>, I just want to track utxo addresses on the wallet. I'm connecting to bitcoind v0.26 using <a href="https://github.com/btcsuite/btcd" rel="nofollow noreferrer">Btcd</a> Golang library</p>

CC BY-SA 4.0
2024-06-27T21:10:28.880Z
Is bitcoind running in testnet mode?
Pieter Wuille
CC BY-SA 4.0
2024-06-28T13:12:29.283Z
Yes, the problem was that I was accessing the regtest node. This is my carelessness, thank you. If you post it as an answer, I'll mark it as a solution.
ClickName
<bitcoin-core><output-script-descriptors><btcd>
Checksum of addr() descriptor
ClickName
# Checksum of addr() descriptor

(Asked by: username_0 on 2024-06-27)

I'm trying to get the checksum of my descriptor (`addr(tb1qsvmygjlhq2p9ap262fwdfq3ptfjqlg2s9gcx58wazdge07kwu26q9guuh2)`) using the `getdescriptorinfo` method, but I'm getting an error:

> -5: Address is not valid

[BIP385](https://github.com/bitcoin/bips/blob/master/bip-0385.mediawiki) is too sparse to explain what's wrong with my address.

I don't have the ability to use other handle functions like `wsh()`, I just want to track utxo addresses on the wallet. I'm connecting to bitcoind v0.26 using [Btcd](https://github.com/btcsuite/btcd) Golang library

**Tags:** bitcoin-core, output-script-descriptors, btcd

> **Comments:**
> **username_1**: Is bitcoind running in testnet mode?  
> **username_0**: Yes, the problem was that I was accessing the regtest node. This is my carelessness, thank you. If you post it as an answer, I'll mark it as a solution.  

---

## 1 answers

### Answer by username_1 on 2024-06-28. Score: 3 | Accepted answer

Bitcoin Core only accepts addresses in its `addr()` descriptors that match the chain type it is running for.

So if `bitcoind` is running with e.g. `-regtest`, it will only accept regtest addresses, not testnet addresses.


---

