"The amount to be withdrawn from the internal wallet (expressed, as name suggests, in satoshi). The string *all* can be used to specify withdrawal of all available funds (but if we have any anchor channels, this will always leave at least `min-emergency-msat` as change). Otherwise, it is in satoshi precision; it can be a whole number, a whole number ending in *sat*, a whole number ending in *000msat*, or a number with 1 to 8 decimal places ending in *btc*."
]
},
"feerate":{
"type":"feerate",
"description":[
"Used for the withdrawal as initial feerate."
],
"default":"*normal*"
},
"minconf":{
"type":"u16",
"description":[
"Minimum number of confirmations that used outputs should have."
],
"default":1
},
"utxos":{
"type":"array",
"description":[
"Specifies the utxos to be used to be withdrawn from, as an array of `txid:vout`. These must be drawn from the node's available UTXO set."
],
"items":{
"type":"outpoint"
}
}
}
},
"response":{
"required":[
"psbt",
"tx",
"txid"
],
"properties":{
"tx":{
"type":"hex",
"description":[
"The fully signed bitcoin transaction."
]
},
"txid":{
"type":"txid",
"description":[
"The transaction id of *tx*."
]
},
"psbt":{
"type":"string",
"description":[
"The PSBT representing the unsigned transaction."
]
}
}
},
"errors":[
"On failure, an error is reported and the withdrawal transaction is not created.",
"",
"- -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.",
"- 313: The `min-emergency-msat` reserve not be preserved (and we have anchor channels)."