Importing a native P2WPKH script & pubkey via importmulti
fails:
Since the pubkey is required due to issue #14405, I tried to import a native P2WPKH script together with its pubkey. It looks like importmulti assumes legacy P2PKH? But maybe I’m doing something wrong.
Input…
- address
bcrt1qlqx4gx4qftlfe94n48ttchsptxqwt7je7tddna
- pubkey
027dbe32bdf80ef2312f8280bd37bf69c31322745af5ebded6294969ff19c20da3
- scriptPubKey:
0014f80d541aa04afe9c96b3a9d6bc5e015980e5fa59
Call: importmulti '[{"scriptPubKey": "0014f80d541aa04afe9c96b3a9d6bc5e015980e5fa59", "pubkeys": ["027dbe32bdf80ef2312f8280bd37bf69c31322745af5ebded6294969ff19c20da3"], "timestamp": "now", "watchonly": true}]' '{"rescan": false}'
Call fails with:
0[
1 {
2 "success": false,
3 "error": {
4 "code": -5,
5 "message": "Consistency check failed"
6 }
7 }
8]