forex.pm forex forum binary options trade

 Сryptocurrency exchanges => Binance - Сryptocurrency exchanges => Topic started by: Bitcoin on Feb 03, 2022, 04:07 am

Title: What is the correct syntax when specifying the utxos to be used in c-lightning's `withdraw`?
Post by: Bitcoin on Feb 03, 2022, 04:07 am
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`? (https://bitcoin.stackexchange.com/questions/112158/what-is-the-correct-syntax-when-specifying-the-utxos-to-be-used-in-c-lightnings)