forked from ElementsProject/lightning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlightning-askrene-update-channel.json
111 lines (111 loc) · 2.77 KB
/
lightning-askrene-update-channel.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"$schema": "../rpc-schema-draft.json",
"type": "object",
"rpc": "askrene-update-channel",
"title": "Command to manipulate channel in a layer",
"added": "v24.11",
"description": [
"The **askrene-update-channel** RPC command overrides updates for an existing channel when the layer is applied."
],
"request": {
"required": [
"layer",
"short_channel_id_dir"
],
"additionalProperties": false,
"properties": {
"layer": {
"type": "string",
"description": [
"The name of the layer to apply this change to."
]
},
"short_channel_id_dir": {
"type": "short_channel_id_dir",
"description": [
"The channel and direction to apply the change to."
]
},
"enabled": {
"type": "boolean",
"description": [
"Whether the channel is usable at all."
]
},
"htlc_minimum_msat": {
"type": "msat",
"description": [
"The minimum value allowed in this direction."
]
},
"htlc_maximum_msat": {
"type": "msat",
"description": [
"The maximum value allowed in this direction."
]
},
"fee_base_msat": {
"type": "msat",
"description": [
"The base fee to apply to use the channel in this direction."
]
},
"fee_proportional_millionths": {
"type": "u32",
"description": [
"The proportional fee (in parts per million) to apply to use the channel in this direction."
]
},
"cltv_expiry_delta": {
"type": "u16",
"description": [
"The CLTV delay required for this direction."
]
}
}
},
"response": {
"required": [],
"additionalProperties": false,
"properties": {}
},
"see_also": [
"lightning-getroutes(7)",
"lightning-askrene-create-channel(7)"
],
"author": [
"Rusty Russell <<[email protected]>> is mainly responsible."
],
"resources": [
"Main web site: <https://github.com/ElementsProject/lightning>"
],
"examples": [
{
"request": {
"id": "example:askrene-update-channel#1",
"method": "askrene-update-channel",
"params": [
"test_layers",
"0x0x1/0"
]
},
"response": {}
},
{
"request": {
"id": "example:askrene-update-channel#2",
"method": "askrene-update-channel",
"params": {
"layer": "test_layers",
"short_channel_id_dir": "0x0x1/0",
"htlc_minimum_msat": 100,
"htlc_maximum_msat": 900000000,
"fee_base_msat": 1,
"fee_proportional_millionths": 2,
"cltv_expiry_delta": 18
}
},
"response": {}
}
]
}