<p>Each outer <code>{...}</code> is for one individual thing being imported. Importing multiple addresses and their keys is not done by making <code>address</code> an array, but rather by having the top level array contain multiple items. Additionally, <code>redeemScript</code> is not an array either.</p>
<p>Your command should look something like:</p>
<pre><code>importmulti '[{ &quot;scriptPubKey&quot;: { &quot;address&quot;:&quot;3M5egggggggggggttttttttttttttttKEDy&quot;}, &quot;timestamp&quot;: &quot;now&quot;, &quot;keys&quot;: [&quot;Kwngf5xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxMftBh92c&quot;], &quot;redeemscript&quot;: &quot;00144yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyc3c9f59ab&quot;},{ &quot;scriptPubKey&quot;: { &quot;address&quot;:&quot;18nbE6bEyyyyyyyyyyyyyyyyyyyyyyBiu&quot;}, &quot;timestamp&quot;: &quot;now&quot;, &quot;keys&quot;: [&quot;5KWxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxu7KXDLjnmgDDtNepR&quot;]},{ &quot;scriptPubKey&quot;: { &quot;address&quot;:&quot;1Faew4y2j2TJDGFyyyyyyyyyyyyyyyyy2W&quot;}, &quot;timestamp&quot;: &quot;now&quot;, &quot;keys&quot;: [&quot;L4fxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxU7s2C4jpQC3cF&quot;]}]'
</code></pre>

CC BY-SA 4.0
2023-09-05T18:01:34.593Z
2023-09-05T18:01:34.593Z
Ava Chow
<p>i'm use:</p>
<pre><code>importmulti '[{ &quot;scriptPubKey&quot;: { &quot;address&quot;: [&quot;3M5egggggggggggttttttttttttttttKEDy&quot;,&quot;18nbE6bEyyyyyyyyyyyyyyyyyyyyyyBiu&quot;,&quot;1Faew4y2j2TJDGFyyyyyyyyyyyyyyyyy2W&quot;] }, &quot;timestamp&quot;:&quot;now&quot;, &quot;keys&quot;: [ &quot;Kwngf5xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxMftBh92c&quot;,&quot;5KWxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxu7KXDLjnmgDDtNepR&quot;,&quot;L4fxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxU7s2C4jpQC3cF&quot; ], &quot;redeemscript&quot;: [&quot;00144yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyc3c9f59ab&quot;]}]'
</code></pre>
<p>return error
help m pls</p>

CC BY-SA 4.0
2023-09-05T14:11:23.867Z
What error do you get?
Murch
<import>
how use importmulti with import multiple accounts
user144508
# how use importmulti with import multiple accounts

(Asked by: username_0 on 2023-09-05)

i'm use:
importmulti '[{ "scriptPubKey": { "address": ["3M5egggggggggggttttttttttttttttKEDy","18nbE6bEyyyyyyyyyyyyyyyyyyyyyyBiu","1Faew4y2j2TJDGFyyyyyyyyyyyyyyyyy2W"] }, "timestamp":"now", "keys": [ "Kwngf5xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxMftBh92c","5KWxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxu7KXDLjnmgDDtNepR","L4fxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxU7s2C4jpQC3cF" ], "redeemscript": ["00144yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyc3c9f59ab"]}]'

return error
help m pls

**Tags:** import

> **Comments:**
> **username_1**: What error do you get?  

---

## 1 answers

### Answer by username_2 on 2023-09-05. Score: 1

Each outer {...} is for one individual thing being imported. Importing multiple addresses and their keys is not done by making address an array, but rather by having the top level array contain multiple items. Additionally, redeemScript is not an array either.
Your command should look something like:
importmulti '[{ "scriptPubKey": { "address":"3M5egggggggggggttttttttttttttttKEDy"}, "timestamp": "now", "keys": ["Kwngf5xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxMftBh92c"], "redeemscript": "00144yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyc3c9f59ab"},{ "scriptPubKey": { "address":"18nbE6bEyyyyyyyyyyyyyyyyyyyyyyBiu"}, "timestamp": "now", "keys": ["5KWxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxu7KXDLjnmgDDtNepR"]},{ "scriptPubKey": { "address":"1Faew4y2j2TJDGFyyyyyyyyyyyyyyyyy2W"}, "timestamp": "now", "keys": ["L4fxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxU7s2C4jpQC3cF"]}]'


---

