I am trying to import a P2SH address as watch-only using the importmulti RPC command. I provide the scriptPubKey, timestamp, and redeemscript values. The value of scriptPubKey that I'm submitting is the hex representation of the
P2SH HASH160 <20 byte hash> EQUAL part of the script. The redeemscript I'm submitting is the hex representation of the preimage to the
OP_HASH160 function, that when hashed, equals the
<20 byte hash>.
The import is successful, but I get a warning:
"Importing as non-solvable: unrecognized script. If this is intentional, don't provide any keys, pubkeys, witnessscript, or redeemscript."
Should not this be solvable if providing both the scriptPubKey and redeemscript? If not, what am I missing?
HASH160 <20 byte hash> EQUALpart of the unlocking script. The redeemscript I'm submitting is the hex representation of the preimage to the OP_HASH160 function. It is what satisfies the scriptPubKey execution.
decodescriptRPC, the JSON result includes
"type": "nonstandard". Is it impossible to import custom P2SH scripts/addresses as solvable into a bitcoind watch-only wallet?