Schema: Add schema's for detailed fundchannel methods

This commit is contained in:
Erik De Smedt
2024-01-02 13:04:53 +01:00
committed by Christian Decker
parent 6e6c94438a
commit 72687d2a75
4 changed files with 50 additions and 9 deletions

View File

@@ -0,0 +1,14 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"id"
],
"properties": {
"id": {
"type": "pubkey",
"description": "the node id of the remote peer with which to cancel"
}
}
}

View File

@@ -0,0 +1,19 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"id",
"psbt"
],
"properties": {
"id": {
"type": "pubkey",
"description": "id is the node id of the remote peer."
},
"psbt": {
"type": "string",
"description": "the transaction to use for funding (does not need to be signed but must be otherwise complete)"
}
}
}

View File

@@ -8,28 +8,36 @@
],
"properties": {
"id": {
"type": "pubkey"
"type": "pubkey",
"description": "id is the peer id obtained from connect."
},
"amount": {
"type": "msat"
"type": "msat_or_all",
"description": "The amount that the channel will be funded."
},
"feerate": {
"type": "feerate"
"type": "feerate",
"description": "Sets the feerate for the subsequent commitment transaction."
},
"announce": {
"type": "boolean"
"type": "boolean",
"description": "Whether or not to announce the channel."
},
"close_to": {
"type": "hex"
"type": "string",
"description": "A bitcoin address to which the channel funds should be sent to on close."
},
"push_msat": {
"type": "msat"
"type": "msat",
"description": "The amount of millisatoshis to push to the channel at open. This is a gift to the peer."
},
"mindepth": {
"type": "u32"
"type": "u32",
"description": "Number of confirmations required before we consider the channel active"
},
"reserve": {
"type": "msat"
"type": "msat",
"description": "The amount we want the peer to maintain on its side"
},
"channel_type": {
"type": "array",