<p>You  should type your wallet passphrase before importing any addresses or private keys.</p>

<p>'walletpassphrase yourpassword 60' would unlock your wallet for 60 seconds. You should import the addresses in that 60 seconds. (Type the walletpassphrase command again if you couldn't import your addresses in that 60 seconds)</p>

CC BY-SA 3.0
2018-02-27T04:48:06.080Z
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.
Tailer
CC BY-SA 3.0
2018-02-27T04:58:36.630Z
I don't know why was that, I tried to remove wallet.dat and tried again and it did work.
Tailer
CC BY-SA 3.0
2018-02-27T06:05:38.280Z
This is unrelated.
Pieter Wuille
CC BY-SA 3.0
2018-02-27T06:23:35.277Z
Actually i had two problems and that was the first problem.
Tailer
CC BY-SA 3.0
2018-02-27T04:11:45.643Z
2018-02-27T04:11:45.643Z
MCCCS
<p>As noted in the Bitcoin Core 0.16 release notes, <code>importmulti</code> does not support SegWit addresses yet. This will be fixed in an upcoming release.</p>

CC BY-SA 3.0
2018-02-27T06:41:05.347Z
it could be weird, But I've imported an address using importmulti and I've got success equals to true, then I've sent some TestNet bitcoins and it did work!!
Tailer
CC BY-SA 3.0
2018-02-27T06:41:39.327Z
[
  {
    "involvesWatchonly": true,
    "account": "",
    "address": "tb1qh2sdesazn9ac34xk3qt4d2jn0vhd993hjrkk9h",
    "category": "receive",
    "amount": 0.10000000,
    "label": "",
    "vout": 0,
    "confirmations": 0,
    "trusted": false,
    "txid": "48089a814ac571944feb7162cc0145eea4e72742aa51f6f23d470debd838eeb3",
    "walletconflicts": [
    ],
    "time": 1519713147,
    "timereceived": 1519713147,
    "bip125-replaceable": "yes"
  }
]
Tailer
CC BY-SA 3.0
2018-02-27T06:56:51.193Z
I've made a separate question on https://github.com/bitcoin/bitcoin/issues/12554
Tailer
CC BY-SA 3.0
2018-02-27T06:06:44.757Z
2018-02-27T06:06:44.757Z
Pieter Wuille
<p>I was trying to import Bech32 addresses using <code>importmulti</code> on Bitcoin Core 0.16.0rc3.</p>

<pre><code>       [
    {
        "scriptPubKey" : { "address": "tb1qkzq7kgx7rk45na3d3vt6vrqftfczq6ryn9zq0d" },
        "timestamp" : "now",
        "watchonly" : "true"
    }
  ] ,  { "rescan": false }
</code></pre>

<p><strong>Response:</strong> </p>

<p>Please enter the wallet passphrase with walletpassphrase first.</p>

<hr>

<p>Why that error? and shouldn't I add witness scrpit instead of scriptPubKey?</p>

<bitcoin-core><importaddress><bech32-address>
Failed to import Bech32 SegWit addresses using importmulti Bitcoin-Core 0.16.0rc3
Tailer
# Failed to import Bech32 SegWit addresses using importmulti Bitcoin-Core 0.16.0rc3

(Asked by: username_0 on 2018-02-27)

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?

**Tags:** bitcoin-core, importaddress, bech32-address


---

## 2 answers

### Answer by username_1 on 2018-02-27. Score: 0 | Accepted answer

You should type your wallet passphrase before importing any addresses or private keys.

'walletpassphrase yourpassword 60' would unlock your wallet for 60 seconds. You should import the addresses in that 60 seconds. (Type the walletpassphrase command again if you couldn't import your addresses in that 60 seconds)

> **Comments:**
> **username_0**: 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.  
> **username_0**: I don't know why was that, I tried to remove wallet.dat and tried again and it did work.  
> **username_2**: This is unrelated.  
> **username_0**: Actually i had two problems and that was the first problem.  

---

### Answer by username_2 on 2018-02-27. Score: 2

As noted in the Bitcoin Core 0.16 release notes, `importmulti` does not support SegWit addresses yet. This will be fixed in an upcoming release.

> **Comments:**
> **username_0**: it could be weird, But I've imported an address using importmulti and I've got success equals to true, then I've sent some TestNet bitcoins and it did work!!  
> **username_0**: [   {     "involvesWatchonly": true,     "account": "",     "address": "tb1qh2sdesazn9ac34xk3qt4d2jn0vhd993hjrkk9h",     "category": "receive",     "amount": 0.10000000,     "label": "",     "vout": 0,     "confirmations": 0,     "trusted": false,     "txid": "48089a814ac571944feb7162cc0145eea4e72742aa51f6f23d470debd838eeb3",     "walletconflicts": [     ],     "time": 1519713147,     "timereceived": 1519713147,     "bip125-replaceable": "yes"   } ]  
> **username_0**: I've made a separate question on https://github.com/bitcoin/bitcoin/issues/12554  

---

