2018-12-20 13:42:28 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2019-01-03 21:15:14 +03:00
|
|
|
import "google/api/annotations.proto";
|
|
|
|
import "rpc.proto";
|
|
|
|
|
2018-12-20 13:42:28 +03:00
|
|
|
package invoicesrpc;
|
|
|
|
|
|
|
|
option go_package = "github.com/lightningnetwork/lnd/lnrpc/invoicesrpc";
|
|
|
|
|
|
|
|
// Invoices is a service that can be used to create, accept, settle and cancel
|
|
|
|
// invoices.
|
|
|
|
service Invoices {
|
2019-01-03 21:15:14 +03:00
|
|
|
/**
|
|
|
|
SubscribeSingleInvoice returns a uni-directional stream (server -> client)
|
|
|
|
to notify the client of state transitions of the specified invoice.
|
|
|
|
Initially the current invoice state is always sent out.
|
|
|
|
*/
|
|
|
|
rpc SubscribeSingleInvoice (lnrpc.PaymentHash) returns (stream lnrpc.Invoice);
|
2018-12-20 13:42:28 +03:00
|
|
|
}
|
|
|
|
|