channel rpc

This commit is contained in:
boufni95 2024-08-23 20:20:10 +02:00
parent 11860d099f
commit b5bd1a74d9
24 changed files with 35275 additions and 33084 deletions

View file

@ -137,6 +137,13 @@ service LightningPub {
option (nostr) = true;
}
rpc ListChannels(structs.Empty) returns (structs.LndChannels) {
option (auth_type) = "Admin";
option (http_method) = "get";
option (http_route) = "/api/admin/channels";
option (nostr) = true;
}
rpc GetUsageMetrics(structs.Empty) returns (structs.UsageMetrics) {
option (auth_type) = "Metrics";
option (http_method) = "post";