mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
40fe893172
`"deprecated": true` is obsolete; we don't document them anyway. Where it would have otherwise changed the GRPC wrappers, I actually put the version number in. We allow "listchannels" to have "satoshis" since we have some tests that run in deprecated-api mode. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
102 lines
3.1 KiB
JSON
102 lines
3.1 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channels"
|
|
],
|
|
"properties": {
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"source",
|
|
"destination",
|
|
"short_channel_id",
|
|
"direction",
|
|
"public",
|
|
"amount_msat",
|
|
"message_flags",
|
|
"channel_flags",
|
|
"active",
|
|
"last_update",
|
|
"base_fee_millisatoshi",
|
|
"fee_per_millionth",
|
|
"delay",
|
|
"htlc_minimum_msat",
|
|
"features"
|
|
],
|
|
"properties": {
|
|
"source": {
|
|
"type": "pubkey",
|
|
"description": "the source node"
|
|
},
|
|
"destination": {
|
|
"type": "pubkey",
|
|
"description": "the destination node"
|
|
},
|
|
"short_channel_id": {
|
|
"type": "short_channel_id",
|
|
"description": "short channel id of channel"
|
|
},
|
|
"direction": {
|
|
"type": "u32",
|
|
"description": "direction (0 if source < destination, 1 otherwise)."
|
|
},
|
|
"public": {
|
|
"type": "boolean",
|
|
"description": "true if this is announced (otherwise it must be our channel)"
|
|
},
|
|
"amount_msat": {
|
|
"type": "msat",
|
|
"description": "the total capacity of this channel (always a whole number of satoshis)"
|
|
},
|
|
"message_flags": {
|
|
"type": "u8",
|
|
"description": "as defined by BOLT #7"
|
|
},
|
|
"channel_flags": {
|
|
"type": "u8",
|
|
"description": "as defined by BOLT #7"
|
|
},
|
|
"active": {
|
|
"type": "boolean",
|
|
"description": "true unless source has disabled it, or it's a local channel and the peer is disconnected or it's still opening or closing"
|
|
},
|
|
"last_update": {
|
|
"type": "u32",
|
|
"description": "UNIX timestamp on the last channel_update from *source*"
|
|
},
|
|
"base_fee_millisatoshi": {
|
|
"type": "u32",
|
|
"description": "Base fee changed by *source* to use this channel"
|
|
},
|
|
"fee_per_millionth": {
|
|
"type": "u32",
|
|
"description": "Proportional fee changed by *source* to use this channel, in parts-per-million"
|
|
},
|
|
"delay": {
|
|
"type": "u32",
|
|
"description": "The number of blocks delay required by *source* to use this channel"
|
|
},
|
|
"htlc_minimum_msat": {
|
|
"type": "msat",
|
|
"description": "The smallest payment *source* will allow via this channel"
|
|
},
|
|
"satoshis": {},
|
|
"htlc_maximum_msat": {
|
|
"type": "msat",
|
|
"description": "The largest payment *source* will allow via this channel"
|
|
},
|
|
"features": {
|
|
"type": "hex",
|
|
"description": "BOLT #9 features bitmap for this channel"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|