<p>There is an alternate command <code>importmulti</code> to be used as follows:</p>

<pre><code>bitcoin-cli importmulti '[
{
  "scriptPubKey" : { "address": "mxbvcPj7cnbxPP6oqpHJxxNb4xC8QoLquG" },
  "timestamp" : 0,
  "label" : "mxbvcPj7cnbxPP6oqpHJxxNb4xC8QoLquG"
},
{
  "scriptPubKey" : { "address": "n1iNb8XafoJTrCBBcGSSEZ6YNd6EWYo8PU" },
  "timestamp" : 0,
  "label" : "n1iNb8XafoJTrCBBcGSSEZ6YNd6EWYo8PU"
},
{
  "scriptPubKey" : { "address": "mgLs7quWwYBJa7jkZyebAec7RNXQtwaerK" },
  "timestamp" : 0,
  "label" : "mgLs7quWwYBJa7jkZyebAec7RNXQtwaerK"
}]' '{"rescan":false}'
</code></pre>

<p>Response is as follows:</p>

<pre><code>[
  {
    "success": true
  }, 
  {
    "success": true
  }, 
  {
    "success": true
  }
]
</code></pre>

CC BY-SA 3.0
2017-12-06T22:07:39.353Z
No need for the labels.
Pieter Wuille
CC BY-SA 3.0
2017-12-06T21:50:07.427Z
2017-12-06T21:50:07.427Z
Jus12
<p>The RPC interface doesn't generally provide any "batch mode" functionality.  If you want to import 100 addresses, call <code>importaddress</code> 100 times.  You might like to write a short script with a loop in some other language.</p>

<p>You should set the rescan parameter to <code>false</code> for all but the last address, so that you don't trigger rescanning 100 times.</p>

CC BY-SA 3.0
2016-10-03T17:59:52.357Z
2016-10-03T17:59:52.357Z
Nate Eldredge
<p>With the <a href="https://bitcoin.org/en/developer-reference#importaddress" rel="noreferrer">importaddress</a> RPC command it is possible to import one watch-only address.
But how can I do that with, let's say, 100?</p>

<wallet><bitcoin-core><address><json-rpc><import>
Import multiple watch-only addresses using importaddress?
RoqueNE
# Import multiple watch-only addresses using importaddress?

(Asked by: username_0 on 2016-10-03)

With the [importaddress](https://bitcoin.org/en/developer-reference#importaddress) RPC command it is possible to import one watch-only address.
But how can I do that with, let's say, 100?

**Tags:** wallet, bitcoin-core, address, json-rpc, import


---

## 2 answers

### Answer by username_1 on 2017-12-06. Score: 7

There is an alternate command `importmulti` to be used as follows:

```
bitcoin-cli importmulti '[
{
  "scriptPubKey" : { "address": "mxbvcPj7cnbxPP6oqpHJxxNb4xC8QoLquG" },
  "timestamp" : 0,
  "label" : "mxbvcPj7cnbxPP6oqpHJxxNb4xC8QoLquG"
},
{
  "scriptPubKey" : { "address": "n1iNb8XafoJTrCBBcGSSEZ6YNd6EWYo8PU" },
  "timestamp" : 0,
  "label" : "n1iNb8XafoJTrCBBcGSSEZ6YNd6EWYo8PU"
},
{
  "scriptPubKey" : { "address": "mgLs7quWwYBJa7jkZyebAec7RNXQtwaerK" },
  "timestamp" : 0,
  "label" : "mgLs7quWwYBJa7jkZyebAec7RNXQtwaerK"
}]' '{"rescan":false}'

```

Response is as follows:

```
[
  {
    "success": true
  }, 
  {
    "success": true
  }, 
  {
    "success": true
  }
]

```

> **Comments:**
> **username_2**: No need for the labels.  

---

### Answer by username_3 on 2016-10-03. Score: 4

The RPC interface doesn't generally provide any "batch mode" functionality. If you want to import 100 addresses, call `importaddress` 100 times. You might like to write a short script with a loop in some other language.

You should set the rescan parameter to `false` for all but the last address, so that you don't trigger rescanning 100 times.


---

