I am copying and pasting the example from the bitcoin-cli help:
deriveaddresses "wpkh([d34db33f/84h/0h/0h] xpub6EuEBhzm7KD3yxmt9wFHisymSNmK8w2CFmfgUgXi74ChFa79YouJ1w3hpZmFAWiuLezZqD38fY6K8PkxUfPifzSEB35skuBBNf1efmSp12K/0/*)#trd0mf0l" "[0,2]"
And copying in a valid xpub.
However I always get an error:
Invalid descriptor (code -5)
Even if I copy in the exact bitcoin-cli call from the bitcoin github page here deriveaddresses pull request
deriveaddresses "wpkh([d34db33f/84h/0h/0h]xpub6DJ2dNUysrn5Vt36jH2KLBT2i1auw1tTSSomg8PhqNiUtx8QX2SvC9nrHu81fT41fvDUnhMjEzQgXnQjKEu3oaqMSzhSrHMxyyoEAmUHQbY/0/0)"
I still get the same error.
I am entering the commands directly in the console. What am I doing wrong?
Im using mainnet bitcoin core 0.18.0, mac OS 10.13.6