wip
This commit is contained in:
parent
4f550a937f
commit
f39025df53
39 changed files with 7571 additions and 1892 deletions
|
|
@ -89,7 +89,7 @@ service LightningPub {
|
|||
option (http_route) = "/api/user/auth";
|
||||
}
|
||||
// USER
|
||||
rpc NewAddress(structs.Empty) returns (structs.NewAddressResponse) {
|
||||
rpc NewAddress(structs.NewAddressRequest) returns (structs.NewAddressResponse) {
|
||||
option (auth_type) = "User";
|
||||
option (http_method) = "post";
|
||||
option (http_route) = "/api/user/chain/new";
|
||||
|
|
|
|||
|
|
@ -19,7 +19,14 @@ message LndGetInfoRequest {
|
|||
message LndGetInfoResponse {
|
||||
string alias = 1;
|
||||
}
|
||||
|
||||
enum AddressType {
|
||||
WITNESS_PUBKEY_HASH = 0;
|
||||
NESTED_PUBKEY_HASH = 1;
|
||||
TAPROOT_PUBKEY = 2;
|
||||
}
|
||||
message NewAddressRequest {
|
||||
AddressType address_type = 1;
|
||||
}
|
||||
message NewAddressResponse{
|
||||
string address = 1;
|
||||
}
|
||||
|
|
@ -41,7 +48,8 @@ message NewInvoiceResponse{
|
|||
}
|
||||
|
||||
message PayInvoiceRequest{
|
||||
string invoce = 1;
|
||||
string invoice = 1;
|
||||
int64 amount = 2;
|
||||
}
|
||||
|
||||
message PayInvoiceResponse{
|
||||
|
|
@ -50,8 +58,9 @@ message PayInvoiceResponse{
|
|||
|
||||
message OpenChannelRequest{
|
||||
string destination = 1;
|
||||
int64 channel_balance = 2;
|
||||
int64 funding_amount = 2;
|
||||
int64 push_amount = 3;
|
||||
string close_address = 4;
|
||||
}
|
||||
|
||||
message OpenChannelResponse{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue