2024-08-07 03:49:52 +02:00
{
"$schema" : "../rpc-schema-draft.json" ,
"type" : "object" ,
"additionalProperties" : false ,
"rpc" : "askrene-inform-channel" ,
"title" : "Command to add channel capacity restrictions to layer (EXPERIMENTAL)" ,
"description" : [
"WARNING: experimental, so API may change." ,
"" ,
2024-10-04 01:23:53 +02:00
"The **askrene-inform-channel** RPC command tells askrene about the minimum or maximum current capacity of a given channel. It can be applied whether the current channel exists or not."
2024-08-07 03:49:52 +02:00
] ,
"request" : {
"required" : [
"layer" ,
2024-10-04 01:22:53 +02:00
"short_channel_id_dir"
2024-08-07 03:49:52 +02:00
] ,
"properties" : {
"layer" : {
"type" : "string" ,
"description" : [
"The name of the layer to apply this change to."
]
} ,
2024-10-04 01:22:53 +02:00
"short_channel_id_dir" : {
"type" : "short_channel_id_dir" ,
2024-08-07 03:49:52 +02:00
"description" : [
2024-10-04 01:22:53 +02:00
"The short channel id and direction to apply this change to."
2024-08-07 03:49:52 +02:00
]
} ,
2024-08-12 21:26:55 +02:00
"minimum_msat" : {
2024-08-07 03:49:52 +02:00
"type" : "msat" ,
"description" : [
2024-08-12 21:26:55 +02:00
"The minumum value which this channel could pass. This or *minimum_msat* must be specified, but not both."
2024-08-07 03:49:52 +02:00
]
} ,
2024-08-12 21:26:55 +02:00
"maximum_msat" : {
2024-08-07 03:49:52 +02:00
"type" : "msat" ,
"description" : [
2024-08-12 21:26:55 +02:00
"The maximum value which this channel could pass. This or *minimum_msat* must be specified, but not both."
2024-08-07 03:49:52 +02:00
]
}
}
} ,
"response" : {
"required" : [
"constraint"
] ,
"properties" : {
"constraint" : {
"type" : "object" ,
"required" : [
2024-10-04 01:22:53 +02:00
"short_channel_id_dir" ,
2024-08-07 03:49:52 +02:00
"timestamp"
] ,
"properties" : {
2024-10-04 01:22:53 +02:00
"short_channel_id_dir" : {
"type" : "short_channel_id_dir" ,
2024-08-07 03:49:52 +02:00
"description" : [
2024-10-04 01:22:53 +02:00
"The *short_channel_id* and *direction* specified."
2024-08-07 03:49:52 +02:00
]
} ,
"timestamp" : {
"type" : "u64" ,
"description" : [
"The UNIX time (seconds since 1970) this was created."
]
} ,
"maximum_msat" : {
"type" : "msat" ,
"description" : [
"The *minimum_msat* (if specified)"
]
} ,
"minimum_msat" : {
"type" : "msat" ,
"description" : [
"The *maximum_msat* (if specified)"
]
}
}
}
}
} ,
"see_also" : [
"lightning-getroutes(7)" ,
"lightning-askrene-disable-node(7)" ,
"lightning-askrene-create-channel(7)" ,
"lightning-askrene-listlayers(7)" ,
"lightning-askrene-age(7)"
] ,
"author" : [
"Rusty Russell <<rusty@rustcorp.com.au>> is mainly responsible."
] ,
"resources" : [
"Main web site: <https://github.com/ElementsProject/lightning>"
]
}