Alternative to #9152.
This takes <n>
pubkeys and optionally <n>
xpubs (together with a definable lookup windows where the default is 0-1000) and looks up common scripts in the UTXO set of all given or derived keys.
The output will be an array similar to listunspent
. That array is compatible with createrawtransaction
as well as with signrawtransaction
.
This makes it possible to prepare sweeps and have them signed in a secure (cold) space.