Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It only takes a minute to sign up.
Sign up to join this communityAnybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
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.
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.
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments