You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contrib/msggen/msggen/schema.json
+116Lines changed: 116 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23476,6 +23476,122 @@
23476
23476
}
23477
23477
]
23478
23478
},
23479
+
"listnetworkevents.json": {
23480
+
"$schema": "../rpc-schema-draft.json",
23481
+
"type": "object",
23482
+
"rpc": "listnetworkevents",
23483
+
"title": "Command for querying network events",
23484
+
"added": "v25.12",
23485
+
"description": [
23486
+
"The **listnetworkevents** RPC command retrieves the log of connections, disconnections and pings on the network. This can be analyzed to evaluate node reliability and latency."
23487
+
],
23488
+
"categories": [
23489
+
"readonly"
23490
+
],
23491
+
"request": {
23492
+
"required": [],
23493
+
"additionalProperties": false,
23494
+
"properties": {
23495
+
"id": {
23496
+
"type": "string",
23497
+
"description": [
23498
+
"A node id: if set, only network events for this peer are returned"
23499
+
]
23500
+
},
23501
+
"index": {
23502
+
"type": "string",
23503
+
"enum": [
23504
+
"created"
23505
+
],
23506
+
"description": [
23507
+
"This controls the ordering of results."
23508
+
],
23509
+
"default": "`created`"
23510
+
},
23511
+
"start": {
23512
+
"type": "u64",
23513
+
"description": [
23514
+
"If `index` is specified, `start` may be specified to start from that value, which is generally returned from lightning-wait(7)."
23515
+
]
23516
+
},
23517
+
"limit": {
23518
+
"type": "u32",
23519
+
"description": [
23520
+
"If `index` is specified, `limit` can be used to specify the maximum number of entries to return."
23521
+
]
23522
+
}
23523
+
}
23524
+
},
23525
+
"response": {
23526
+
"required": [
23527
+
"networkevents"
23528
+
],
23529
+
"additionalProperties": false,
23530
+
"properties": {
23531
+
"networkevents": {
23532
+
"type": "array",
23533
+
"items": {
23534
+
"type": "object",
23535
+
"additionalProperties": false,
23536
+
"required": [
23537
+
"created_index",
23538
+
"timestamp",
23539
+
"peer_id",
23540
+
"type"
23541
+
],
23542
+
"properties": {
23543
+
"created_index": {
23544
+
"type": "u64",
23545
+
"description": [
23546
+
"1-based index indicating order this network event was created in."
23547
+
]
23548
+
},
23549
+
"timestamp": {
23550
+
"type": "u64",
23551
+
"description": [
23552
+
"Time this event was recorded, in seconds since January 1 1970 UTC"
23553
+
]
23554
+
},
23555
+
"peer_id": {
23556
+
"type": "pubkey",
23557
+
"description": [
23558
+
"The node the network connection was talking to."
23559
+
]
23560
+
},
23561
+
"type": {
23562
+
"type": "string",
23563
+
"description": [
23564
+
"The type of event (currently `ping`, `connect`, `connect_fail` or `disconnect`)"
23565
+
]
23566
+
},
23567
+
"reason": {
23568
+
"type": "string",
23569
+
"description": [
23570
+
"The cause of the event (if known)"
23571
+
]
23572
+
},
23573
+
"duration_nsec": {
23574
+
"type": "u64",
23575
+
"description": [
23576
+
"The time taken (for ping, the latency, for connect / connect_fail, the time taken to get a result, for disconnect, the time we were connected)"
23577
+
]
23578
+
}
23579
+
}
23580
+
}
23581
+
}
23582
+
}
23583
+
},
23584
+
"author": [
23585
+
"Rusty Russell <<rusty@rustcorp.com.au>> is mainly responsible."
23586
+
],
23587
+
"see_also": [
23588
+
"lightning-autoclean(7)",
23589
+
"lightning-listpeers(7)"
23590
+
],
23591
+
"resources": [
23592
+
"Main web site: <https://github.com/ElementsProject/lightning>"
"The **listnetworkevents** RPC command retrieves the log of connections, disconnections and pings on the network. This can be analyzed to evaluate node reliability and latency."
9
+
],
10
+
"categories": [
11
+
"readonly"
12
+
],
13
+
"request": {
14
+
"required": [],
15
+
"additionalProperties": false,
16
+
"properties": {
17
+
"id": {
18
+
"type": "string",
19
+
"description": [
20
+
"A node id: if set, only network events for this peer are returned"
21
+
]
22
+
},
23
+
"index": {
24
+
"type": "string",
25
+
"enum": [
26
+
"created"
27
+
],
28
+
"description": [
29
+
"This controls the ordering of results."
30
+
],
31
+
"default": "`created`"
32
+
},
33
+
"start": {
34
+
"type": "u64",
35
+
"description": [
36
+
"If `index` is specified, `start` may be specified to start from that value, which is generally returned from lightning-wait(7)."
37
+
]
38
+
},
39
+
"limit": {
40
+
"type": "u32",
41
+
"description": [
42
+
"If `index` is specified, `limit` can be used to specify the maximum number of entries to return."
43
+
]
44
+
}
45
+
}
46
+
},
47
+
"response": {
48
+
"required": [
49
+
"networkevents"
50
+
],
51
+
"additionalProperties": false,
52
+
"properties": {
53
+
"networkevents": {
54
+
"type": "array",
55
+
"items": {
56
+
"type": "object",
57
+
"additionalProperties": false,
58
+
"required": [
59
+
"created_index",
60
+
"timestamp",
61
+
"peer_id",
62
+
"type"
63
+
],
64
+
"properties": {
65
+
"created_index": {
66
+
"type": "u64",
67
+
"description": [
68
+
"1-based index indicating order this network event was created in."
69
+
]
70
+
},
71
+
"timestamp": {
72
+
"type": "u64",
73
+
"description": [
74
+
"Time this event was recorded, in seconds since January 1 1970 UTC"
75
+
]
76
+
},
77
+
"peer_id": {
78
+
"type": "pubkey",
79
+
"description": [
80
+
"The node the network connection was talking to."
81
+
]
82
+
},
83
+
"type": {
84
+
"type": "string",
85
+
"description": [
86
+
"The type of event (currently `ping`, `connect`, `connect_fail` or `disconnect`)"
87
+
]
88
+
},
89
+
"reason": {
90
+
"type": "string",
91
+
"description": [
92
+
"The cause of the event (if known)"
93
+
]
94
+
},
95
+
"duration_nsec": {
96
+
"type": "u64",
97
+
"description": [
98
+
"The time taken (for ping, the latency, for connect / connect_fail, the time taken to get a result, for disconnect, the time we were connected)"
99
+
]
100
+
}
101
+
}
102
+
}
103
+
}
104
+
}
105
+
},
106
+
"author": [
107
+
"Rusty Russell <<rusty@rustcorp.com.au>> is mainly responsible."
108
+
],
109
+
"see_also": [
110
+
"lightning-autoclean(7)",
111
+
"lightning-listpeers(7)"
112
+
],
113
+
"resources": [
114
+
"Main web site: <https://github.com/ElementsProject/lightning>"
0 commit comments