history check

This commit is contained in:
boufni95 2024-08-06 20:29:13 +02:00
parent 421873a7de
commit 2cc4a3d0c7
20 changed files with 5230 additions and 4714 deletions

View file

@ -387,6 +387,13 @@ service LightningPub {
option (nostr) = true;
}
rpc GetPaymentState(structs.GetPaymentStateRequest) returns (structs.PaymentState){
option (auth_type) = "User";
option (http_method) = "post";
option (http_route) = "/api/user/payment/state";
option (nostr) = true;
}
rpc OpenChannel(structs.OpenChannelRequest) returns (structs.OpenChannelResponse){
option (auth_type) = "User";
option (http_method) = "post";

View file

@ -304,6 +304,18 @@ message PayInvoiceResponse{
int64 network_fee = 5;
}
message GetPaymentStateRequest{
string invoice = 1;
}
message PaymentState{
int64 paid_at_unix = 1;
int64 amount = 2;
int64 service_fee = 3;
int64 network_fee = 4;
}
message OpenChannelRequest{
string destination = 1;
int64 fundingAmount = 2;