• Welcome to forex.pm forex forum binary options trade. Please login or sign up.
 

What is the correct syntax when specifying the utxos to be used in c-lightning's `withdraw`?

Started by Bitcoin, Feb 03, 2022, 04:07 am

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bitcoin

What is the correct syntax when specifying the utxos to be used in c-lightning's `withdraw`?

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.


Source: What is the correct syntax when specifying the utxos to be used in c-lightning's `withdraw`?