public static final class InvoicesGrpc.InvoicesBlockingStub extends io.grpc.stub.AbstractBlockingStub<InvoicesGrpc.InvoicesBlockingStub>
Invoices is a service that can be used to create, accept, settle and cancel invoices.
Modifier and Type | Method and Description |
---|---|
InvoicesOuterClass.AddHoldInvoiceResp |
addHoldInvoice(InvoicesOuterClass.AddHoldInvoiceRequest request)
AddHoldInvoice creates a hold invoice.
|
protected InvoicesGrpc.InvoicesBlockingStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
InvoicesOuterClass.CancelInvoiceResp |
cancelInvoice(InvoicesOuterClass.CancelInvoiceMsg request)
CancelInvoice cancels a currently open invoice.
|
LightningApi.Invoice |
lookupInvoiceV2(InvoicesOuterClass.LookupInvoiceMsg request)
LookupInvoiceV2 attempts to look up at invoice.
|
InvoicesOuterClass.SettleInvoiceResp |
settleInvoice(InvoicesOuterClass.SettleInvoiceMsg request)
SettleInvoice settles an accepted invoice.
|
java.util.Iterator<LightningApi.Invoice> |
subscribeSingleInvoice(InvoicesOuterClass.SubscribeSingleInvoiceRequest request)
SubscribeSingleInvoice returns a uni-directional stream (server -> client)
to notify the client of state transitions of the specified invoice.
|
protected InvoicesGrpc.InvoicesBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build
in class io.grpc.stub.AbstractStub<InvoicesGrpc.InvoicesBlockingStub>
public java.util.Iterator<LightningApi.Invoice> subscribeSingleInvoice(InvoicesOuterClass.SubscribeSingleInvoiceRequest request)
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.
public InvoicesOuterClass.CancelInvoiceResp cancelInvoice(InvoicesOuterClass.CancelInvoiceMsg request)
CancelInvoice cancels a currently open invoice. If the invoice is already canceled, this call will succeed. If the invoice is already settled, it will fail.
public InvoicesOuterClass.AddHoldInvoiceResp addHoldInvoice(InvoicesOuterClass.AddHoldInvoiceRequest request)
AddHoldInvoice creates a hold invoice. It ties the invoice to the hash supplied in the request.
public InvoicesOuterClass.SettleInvoiceResp settleInvoice(InvoicesOuterClass.SettleInvoiceMsg request)
SettleInvoice settles an accepted invoice. If the invoice is already settled, this call will succeed.
public LightningApi.Invoice lookupInvoiceV2(InvoicesOuterClass.LookupInvoiceMsg request)
LookupInvoiceV2 attempts to look up at invoice. An invoice can be refrenced using either its payment hash, payment address, or set ID.