<p>I'm sorry if this can be a little bit confusing, but the correct syntax is the following one:</p>
<pre><code>clightning -k withdraw destination=** satoshi=** feerate=normal utxos='[{&quot;********&quot;:&quot;0&quot;}]'
</code></pre>
<p>In particular, a transaction is an object, so the utxos is a list of transactions objects.</p>

CC BY-SA 4.0
2022-02-01T18:42:11.020Z
2022-02-02T17:39:08.793Z
2022-02-02T17:39:08.793Z
vincenzopalazzo
<p>I tried to withdraw from one utxo with the following command:</p>
<pre><code>lightning-cli -k withdraw destination=bc1********** satoshi=******* feerate=normal utxos='[&quot;********&quot;:&quot;0&quot;]'
</code></pre>
<p>and I got the following output:</p>
<pre><code>lightning-cli: Some parameters are malformed, cannot create a valid JSON-RPC request: { &quot;jsonrpc&quot; : &quot;2.0&quot;, &quot;method&quot; : &quot;withdraw&quot;, &quot;id&quot; : &quot;lightning-cli-17786&quot;, &quot;params&quot; :{ &quot;destination&quot; : &quot;bc*******&quot;, &quot;satoshi&quot; : ******, &quot;feerate&quot; : &quot;normal&quot;, &quot;utxos&quot; : [&quot;******&quot;:&quot;0&quot;]} }
</code></pre>
<p>Similar notation of square brackets inside of single quotes worked in <code>fundchannel</code>. What is the correct notation when it comes to specifying the utxos with <code>withdraw</code>?</p>
<p>P.S. I used <code>*</code> instead of the characters of the actual transaction in order to avoid doxxing myself.</p>

<json-rpc><utxo><core-lightning>
What is the correct syntax when specifying the utxos to be used in c-lightning's `withdraw`?
John Smith
# What is the correct syntax when specifying the utxos to be used in c-lightning's `withdraw`?

(Asked by: username_0 on 2022-01-31)

I tried to withdraw from one utxo with the following command:

```
lightning-cli -k withdraw destination=bc1********** satoshi=******* feerate=normal utxos='["********":"0"]'

```

and I got the following output:

```
lightning-cli: Some parameters are malformed, cannot create a valid JSON-RPC request: { "jsonrpc" : "2.0", "method" : "withdraw", "id" : "lightning-cli-17786", "params" :{ "destination" : "bc*******", "satoshi" : ******, "feerate" : "normal", "utxos" : ["******":"0"]} }

```

Similar notation of square brackets inside of single quotes worked in `fundchannel`. What is the correct notation when it comes to specifying the utxos with `withdraw`?

P.S. I used `*` instead of the characters of the actual transaction in order to avoid doxxing myself.

**Tags:** json-rpc, utxo, core-lightning


---

## 1 answers

### Answer by username_1 on 2022-02-01. Score: 2 | Accepted answer

I'm sorry if this can be a little bit confusing, but the correct syntax is the following one:

```
clightning -k withdraw destination=** satoshi=** feerate=normal utxos='[{"********":"0"}]'

```

In particular, a transaction is an object, so the utxos is a list of transactions objects.


---

