core-lightning/doc/schemas/fundchannel.request.json

70 lines
3.4 KiB
JSON
Raw Normal View History

2022-06-07 21:30:58 +02:00
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"id",
"amount"
],
"properties": {
"id": {
"type": "pubkey",
"description": "id is the peer id obtained from connect"
2022-06-07 21:30:58 +02:00
},
"amount": {
"type": "msat_or_all",
"description": "the amount in satoshis taken from the internal wallet to fund the channel (but if we have any anchor channels, this will always leave at least `min-emergency-msat` as change). The string *all* can be used to specify all available funds (or 16777215 satoshi if more is available and large channels were not negotiated with the peer). 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*. The value cannot be less than the dust limit, currently set to 546, nor more than 16777215 satoshi (unless large channels were negotiated with the peer)"
2022-06-07 21:30:58 +02:00
},
"feerate": {
"type": "feerate",
"description": "used for the opening transaction and (unless *option_anchors_zero_fee_htlc_tx* is negotiated), as initial feerate for commitment and HTLC transactions (see NOTES in lightning-feerates(7)). The default is *normal*"
2022-06-07 21:30:58 +02:00
},
"announce": {
"type": "boolean",
"description": "whether to announce this channel or not. An unannounced channel is considered private. Defaults to *True*"
2022-06-07 21:30:58 +02:00
},
"minconf": {
"type": "u32",
"description": "the minimum number of confirmations that used outputs should have. Default is 1"
2022-06-07 21:30:58 +02:00
},
"push_msat": {
"type": "msat",
"description": "the amount of millisatoshis to push to the channel peer at open. Note that this is a gift to the peer -- these satoshis are added to the initial balance of the peer at channel start and are largely unrecoverable once pushed"
2022-06-07 21:30:58 +02:00
},
"close_to": {
"type": "string",
"description": "a Bitcoin address to which the channel funds should be sent to on close. Only valid if both peers have negotiated `option_upfront_shutdown_script`. Returns `close_to` set to closing script iff is negotiated"
2022-06-07 21:30:58 +02:00
},
"request_amt": {
"type": "msat",
"description": "an amount of liquidity you'd like to lease from the peer. If peer supports `option_will_fund`, indicates to them to include this much liquidity into the channel. Must also pass in *compact_lease*"
2022-06-07 21:30:58 +02:00
},
"compact_lease": {
"type": "string",
"description": "a compact represenation of the peer's expected channel lease terms. If the peer's terms don't match this set, we will fail to open the channel"
2022-06-07 21:30:58 +02:00
},
"utxos": {
"type": "array",
"description": "the utxos to be used to fund the channel, as an array of `txid:vout`",
2022-06-07 21:30:58 +02:00
"items": {
"type": "outpoint"
}
},
"mindepth": {
"description": "Number of confirmations required before we consider the channel active",
"type": "u32"
},
"reserve": {
"type": "msat",
"description": "the amount we want the peer to maintain on its side of the channel. Default is 1% of the funding amount. 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*"
},
"channel_type": {
"added": "v24.02",
"type": "array",
"items": {
"type": "u32"
}
2022-06-07 21:30:58 +02:00
}
}
}