decode invoice + docs
This commit is contained in:
parent
4fd8c0d71d
commit
1cf1631ccc
12 changed files with 1451 additions and 906 deletions
|
|
@ -120,6 +120,12 @@ service LightningPub {
|
|||
option (http_route) = "/api/user/invoice/new";
|
||||
option (nostr) = true;
|
||||
}
|
||||
rpc DecodeInvoice(structs.DecodeInvoiceRequest) returns (structs.DecodeInvoiceResponse){
|
||||
option (auth_type) = "User";
|
||||
option (http_method) = "post";
|
||||
option (http_route) = "/api/user/invoice/decode";
|
||||
option (nostr) = true;
|
||||
}
|
||||
rpc PayInvoice(structs.PayInvoiceRequest) returns (structs.PayInvoiceResponse){
|
||||
option (auth_type) = "User";
|
||||
option (http_method) = "post";
|
||||
|
|
|
|||
|
|
@ -48,7 +48,12 @@ message NewInvoiceRequest{
|
|||
message NewInvoiceResponse{
|
||||
string invoice = 1;
|
||||
}
|
||||
|
||||
message DecodeInvoiceRequest{
|
||||
string invoice=1;
|
||||
}
|
||||
message DecodeInvoiceResponse{
|
||||
int64 amount=1;
|
||||
}
|
||||
message PayInvoiceRequest{
|
||||
string invoice = 1;
|
||||
int64 amount = 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue