0

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 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 Golang library

2
  • 2
    Is bitcoind running in testnet mode? Commented Jun 27 at 21:10
  • 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
    Commented Jun 28 at 13:12

1 Answer 1

3

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.