LIGHTNING-MULTIWITHDRAW(7)
π multiwithdraw β the LIGHTNING-MULTIWITHDRAW(7) page π
okay bestie, this is the LIGHTNING-MULTIWITHDRAW(7) page for multiwithdraw, and it's literally the command for withdrawing to multiple addresses. group-chat recap: you give it outputs, it sends funds from Core Lightning's internal wallet. slay. π
β¨ NAME β¨
multiwithdraw β command for withdrawing to multiple addresses
β SYNOPSIS β
multiwithdraw outputs [feerate] [minconf] [utxos]
π DESCRIPTION π
The multiwithdraw RPC command sends funds from Core Lightning's internal wallet to the addresses specified in outputs. no cap, that's the whole vibe.
outputs(array ofoutputdescs) β an array containing objects of the form{address: amount}. Theamountmay be the stringall, which means all onchain funds get sent to the specified address. Otherwise it's in satoshi precision; it can be a whole number, a whole number ending insat, a whole number ending in000msat, or a number with 1 to 8 decimal places ending inbtc.- (
outputdesc, optional)
- (
feerate(feerate, optional) β feerate used for the withdrawals. SeeNOTESinlightning-feerates(7)for possible values. The default isnormal.minconf(u32, optional) β minimum number of confirmations that used outputs should have. The default is1.utxos(array ofoutpoints, optional) β- (
outpoint, optional): UTXOs to be used to be withdrawn from, as an array oftxid:vout. These must be drawn from the node's available UTXO set.
- (
πΈ RETURN VALUE πΈ
On success, an object is returned, containing:
tx(hex): the raw transaction which was sent.txid(txid): the txid of the tx.
π ERRORS π
On failure, an error is reported and the withdrawal transaction is not created. like, nothing goes out. π«Ά
-1: Catchall nonspecific error.301: There are not enough funds in the internal wallet (including fees) to create the transaction.302: The dust limit is not met.
π AUTHOR π
ZmnSCPxj β ZmnSCPxj@protonmail.com β is mainly responsible. iconic. π
π¦ SEE ALSO π¦
lightning-listfunds(7)lightning-fundchannel(7)lightning-newaddr(7)lightning-txprepare(7)lightning-withdraw(7)
π RESOURCES π
Main web site: https://github.com/ElementsProject/lightning
π EXAMPLES π
πΈ Example 1 πΈ
Request:
$ lightning-cli multiwithdraw -k "outputs"='[{"bcrt1q84payf4ucfcpnt0994arm3f20tqmu29cna738w": "2222000msat"}, {"bcrt1q64wyjwvrmdj3uyz8w32mr4qgcv08a833zepjm3": "3333000msat"}]'
{
"id": "example:multiwithdraw#1",
"method": "multiwithdraw",
"params": {
"outputs": [
{
"bcrt1q84payf4ucfcpnt0994arm3f20tqmu29cna738w": "2222000msat"
},
{
"bcrt1q64wyjwvrmdj3uyz8w32mr4qgcv08a833zepjm3": "3333000msat"
}
]
}
}
Response:
{
"tx": "02000000000155multiw55000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000550005500055000",
"txid": "txid5500055000550005500055000550005500055000550005500055000"
}
π¦ Example 2 π¦
Request:
$ lightning-cli multiwithdraw -k "outputs"='[{"bcrt1p97zrhgxgm6wscsdx8gjafj4jyqetunat7fynrk4cyg2rz6lzrr9q6dlrp2": 1000}, {"bcrt1qm7k64cvd2ljw758ptwrrm8ny30u67ea3cfkxpn": 1000}, {"bcrt1qdgvytwcw58uwlf3lqrej2eqaku6smn2mdvkycp": 1000}, {"bcrt1q68wfpfam8tu3a457jv7u8r64tdvqltgfs0kj84": 1000}, {"bcrt1qq7g9ccvfcxhg4lcj2e4s8u6l75tdzl5y7krmtl": 1000}, {"bcrt1pp9uw53lnrtt9v8vkemhpf6z3jfex2dkyu8je6z0jzlem2a3tqccqvseg2y": 1000}, {"bcrt1q5sacyx5hjrugpcgn5w2mw9aq7d2tnkwxmmjp06": 1000}]'
{
"id": "example:multiwithdraw#2",
"method": "multiwithdraw",
"params": {
"outputs": [
{
"bcrt1p97zrhgxgm6wscsdx8gjafj4jyqetunat7fynrk4cyg2rz6lzrr9q6dlrp2": 1000
},
{
"bcrt1qm7k64cvd2ljw758ptwrrm8ny30u67ea3cfkxpn": 1000
},
{
"bcrt1qdgvytwcw58uwlf3lqrej2eqaku6smn2mdvkycp": 1000
},
{
"bcrt1q68wfpfam8tu3a457jv7u8r64tdvqltgfs0kj84": 1000
},
{
"bcrt1qq7g9ccvfcxhg4lcj2e4s8u6l75tdzl5y7krmtl": 1000
},
{
"bcrt1pp9uw53lnrtt9v8vkemhpf6z3jfex2dkyu8je6z0jzlem2a3tqccqvseg2y": 1000
},
{
"bcrt1q5sacyx5hjrugpcgn5w2mw9aq7d2tnkwxmmjp06": 1000
}
]
}
}
Response:
{
"tx": "02000000000155multiw56000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000560005600056000",
"txid": "txid5600056000560005600056000560005600056000560005600056000"
}
okay that's the whole LIGHTNING-MULTIWITHDRAW(7) page, bestie β brought to you by Core Lightning v26.06.9. mwah π
π¦ where this page comes from
- nixpkgs unstable: clightning 26.06.9
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms