<p>Ok this is a bit embarrassing but what is the standard way to pass arrays through the bitcoin debug/console window? I've done it before and I thought it just had to do with placement of quotes, but I'm having trouble doing it with <code>scantxoutset</code> I've tried the following:</p>
<pre><code>scantxoutset start '{&quot;desc&quot;:&quot;addr(1SomeAddress)&quot;}'

&gt;&gt;&gt;Expected type array, got object (code -3)

scantxoutset start '[&quot;desc&quot;:&quot;addr(1SomeAddress)&quot;]'

&gt;&gt;&gt;Error: Error parsing JSON:[&quot;desc&quot;:&quot;addr(1SomeAddress)&quot;]
    ￼
scantxoutset start '[{&quot;desc&quot;:&quot;addr(1SomeAddress)}]'

&gt;&gt;&gt;Error: Error parsing JSON:[{&quot;desc&quot;:&quot;addr(1SomeAddress)}]

scantxoutset start '[&quot;desc&quot;:&quot;addr&quot;,&quot;1SomeAddress&quot;]'

&gt;&gt;&gt;Error: Error parsing JSON:[&quot;desc&quot;:&quot;addr&quot;,&quot;1SomeAddress&quot;]

scantxoutset start '[&quot;desc&quot;,{&quot;addr&quot;,&quot;1SomeAddress&quot;}]'

&gt;&gt;&gt;Error: Error parsing JSON:[&quot;desc&quot;,{&quot;addr&quot;,&quot;1SomeAddress&quot;}]
</code></pre>

CC BY-SA 4.0
2020-12-26T18:46:16.417Z
Try `'[{"desc":"addr(1SomeAddress)"}]'`.
Pieter Wuille
CC BY-SA 4.0
2020-12-26T21:01:30.023Z
Can't believe I didn't try that, that did it. Thx
m1xolyd1an
CC BY-SA 4.0
2023-07-17T13:11:39.180Z
doesn't work: scantxoutset start '[{"desc":"addr(37HyJsnuP5zWTuhJFvrGNYojtmBFnZYoFR)"}]'  gives error: Error parsing JSON: '[{desc:addr(37HyJsnuP5zWTuhJFvrGNYojtmBFnZYoFR)}]'
Captain Fantastic
<bitcoin-core><scantxoutset>
Scantxoutset: correct way to pass array in console/debug window?
m1xolyd1an
# Scantxoutset: correct way to pass array in console/debug window?

(Asked by: username_0 on 2020-12-26)

Ok this is a bit embarrassing but what is the standard way to pass arrays through the bitcoin debug/console window? I've done it before and I thought it just had to do with placement of quotes, but I'm having trouble doing it with `scantxoutset` I've tried the following:

```
scantxoutset start '{"desc":"addr(1SomeAddress)"}'

>>>Expected type array, got object (code -3)

scantxoutset start '["desc":"addr(1SomeAddress)"]'

>>>Error: Error parsing JSON:["desc":"addr(1SomeAddress)"]
    ￼
scantxoutset start '[{"desc":"addr(1SomeAddress)}]'

>>>Error: Error parsing JSON:[{"desc":"addr(1SomeAddress)}]

scantxoutset start '["desc":"addr","1SomeAddress"]'

>>>Error: Error parsing JSON:["desc":"addr","1SomeAddress"]

scantxoutset start '["desc",{"addr","1SomeAddress"}]'

>>>Error: Error parsing JSON:["desc",{"addr","1SomeAddress"}]

```

**Tags:** bitcoin-core, scantxoutset

> **Comments:**
> **username_1**: Try `'[{"desc":"addr(1SomeAddress)"}]'`.  
> **username_0**: Can't believe I didn't try that, that did it. Thx  
> **username_2**: doesn't work: scantxoutset start '[{"desc":"addr(37HyJsnuP5zWTuhJFvrGNYojtmBFnZYoFR)"}]'  gives error: Error parsing JSON: '[{desc:addr(37HyJsnuP5zWTuhJFvrGNYojtmBFnZYoFR)}]'  

---

## 0 answers

