user136596: I used to tapscript to generate a taproot address thus I don't know what the related xpub key would be so I can't easily import a descriptor. I know that bitcoin-cli version 21 was able to watch a readonly address with the following command:
 bitcoin-cli importmulti '[{"scriptPubKey": {"address": "bcrt1pp375ce9lvxs8l9rlsl78u4szhqa7za748dfhtjj5ht05lufu4dwsshpxl6"},"timestamp":1662835676}]' '{"rescan":false}'
 

However, the same command for bitcoin version 23 returns the following error
"This type of wallet does not support this command"
How can I rewrite the command above to watch a read-only address in bitcoin version 23? just like in bitcoin version 21




after getting the correct descriptor, creating a wallet, and importing the descriptor we are still getting the following error.

user48884: The software version is unrelated to this error. You get this error because the target wallet is a Descriptor wallet (which exist prior to 23.0). importmulti is not allowed to be used with descriptor wallets. However you can use importdescriptors.
Not all descriptors must have xpubs. If you know the spending conditions for the address (internal key, tapscripts, and the tapscript tree), then you can create a tr() descriptor with normal pubkeys.
Otherwise you can create an addr() descriptor and import that instead. That would be addr(bcrt1pp375ce9lvxs8l9rlsl78u4szhqa7za748dfhtjj5ht05lufu4dwsshpxl6).
Note that you may need to create a new wallet with the "Disable Private Keys" option.

The full command that you should use is
bitcoin-cli -rpcwallet=mywallet importdescriptors '[{"desc":"addr(bcrt1pp375ce9lvxs8l9rlsl78u4szhqa7za748dfhtjj5ht05lufu4dwsshpxl6)#ngm593tu","timestamp":"now"}]'

You do not need to specify internal, watchonly, or active. You have currently specified "active": true which is incorrect as such a descriptor cannot be used as an active descriptor (i.e. it cannot be used to create new addresses).

136596: <p>I used to tapscript to generate a taproot address thus I don't know what the related xpub key would be so I can't easily import a descriptor. I know that bitcoin-cli version 21 was able to watch a readonly address with the following command:</p>
<pre><code> bitcoin-cli importmulti '[{&quot;scriptPubKey&quot;: {&quot;address&quot;: &quot;bcrt1pp375ce9lvxs8l9rlsl78u4szhqa7za748dfhtjj5ht05lufu4dwsshpxl6&quot;},&quot;timestamp&quot;:1662835676}]' '{&quot;rescan&quot;:false}'
 
</code></pre>
<p>However, the same command for bitcoin version 23 returns the following error</p>
<p><strong>&quot;This type of wallet does not support this command&quot;</strong></p>
<p>How can I rewrite the command above to watch a read-only address in bitcoin version 23? just like in bitcoin version 21</p>
<hr />
<p><a href="https://i.stack.imgur.com/Xpidd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xpidd.png" alt="getdescriptorinfo" /></a></p>
<p><a href="https://i.stack.imgur.com/dXYVa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dXYVa.png" alt="createwallet" /></a></p>
<p><a href="https://i.stack.imgur.com/DdgyE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DdgyE.png" alt="importdescriptors" /></a></p>
<p>after getting the correct descriptor, creating a wallet, and importing the descriptor we are still getting the following error.</p>
 48884: <p>The software version is unrelated to this error. You get this error because the target wallet is a Descriptor wallet (which exist prior to 23.0). <code>importmulti</code> is not allowed to be used with descriptor wallets. However you can use <code>importdescriptors</code>.</p>
<p>Not all descriptors must have xpubs. If you know the spending conditions for the address (internal key, tapscripts, and the tapscript tree), then you can create a <code>tr()</code> descriptor with normal pubkeys.</p>
<p>Otherwise you can create an <code>addr()</code> descriptor and import that instead. That would be <code>addr(bcrt1pp375ce9lvxs8l9rlsl78u4szhqa7za748dfhtjj5ht05lufu4dwsshpxl6)</code>.</p>
<p>Note that you may need to create a new wallet with the &quot;Disable Private Keys&quot; option.</p>
<hr />
<p>The full command that you should use is</p>
<pre><code>bitcoin-cli -rpcwallet=mywallet importdescriptors '[{&quot;desc&quot;:&quot;addr(bcrt1pp375ce9lvxs8l9rlsl78u4szhqa7za748dfhtjj5ht05lufu4dwsshpxl6)#ngm593tu&quot;,&quot;timestamp&quot;:&quot;now&quot;}]'
</code></pre>
<p>You do not need to specify <code>internal</code>, <code>watchonly</code>, or <code>active</code>. You have currently specified <code>&quot;active&quot;: true</code> which is incorrect as such a descriptor cannot be used as an active descriptor (i.e. it cannot be used to create new addresses).</p>
