0
I was trying to import Bech32 addresses using importmulti on Bitcoin Core 0.16.0rc3.
[
{
"scriptPubKey" : { "address": "tb1qkzq7kgx7rk45na3d3vt6vrqftfczq6ryn9zq0d" },
"timestamp" : "now",
"watchonly" : "true"
}
] , { "rescan": false }
Response:
Please enter the wallet passphrase with walletpassphrase first.
Why that error? and shouldn't I add witness scrpit instead of scriptPubKey?
But I'm importing watchonly addresses, I don't think that's correct! Since I don't have a passphrase, my wallet isn't encrypted and i tried the same command on litecoin and bitcoin cash and it did work. – Adam – 2018-02-27T04:48:06.080
I don't know why was that, I tried to remove wallet.dat and tried again and it did work. – Adam – 2018-02-27T04:58:36.630
This is unrelated. – Pieter Wuille – 2018-02-27T06:05:38.280
Actually i had two problems and that was the first problem. – Adam – 2018-02-27T06:23:35.277