channel rpc
This commit is contained in:
parent
11860d099f
commit
b5bd1a74d9
24 changed files with 35275 additions and 33084 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -108,6 +108,7 @@ message OpenChannel {
|
|||
int64 lifetime =4 ;
|
||||
int64 local_balance=5;
|
||||
int64 remote_balance = 6;
|
||||
string label = 7;
|
||||
}
|
||||
message ClosedChannel {
|
||||
string channel_id = 1;
|
||||
|
|
@ -145,6 +146,10 @@ message LndMetrics {
|
|||
|
||||
}
|
||||
|
||||
message LndChannels {
|
||||
repeated OpenChannel open_channels = 1;
|
||||
}
|
||||
|
||||
message LndGetInfoRequest {
|
||||
int64 nodeId = 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue