public static final class ChainKitGrpc.ChainKitFutureStub extends io.grpc.stub.AbstractFutureStub<ChainKitGrpc.ChainKitFutureStub>
ChainKit is a service that can be used to get information from the chain backend.
Modifier and Type | Method and Description |
---|---|
protected ChainKitGrpc.ChainKitFutureStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
com.google.common.util.concurrent.ListenableFuture<Chainkit.GetBestBlockResponse> |
getBestBlock(Chainkit.GetBestBlockRequest request)
lncli: `chain getbestblock`
GetBestBlock returns the block hash and current height from the valid
most-work chain.
|
com.google.common.util.concurrent.ListenableFuture<Chainkit.GetBlockResponse> |
getBlock(Chainkit.GetBlockRequest request)
lncli: `chain getblock`
GetBlock returns a block given the corresponding block hash.
|
com.google.common.util.concurrent.ListenableFuture<Chainkit.GetBlockHashResponse> |
getBlockHash(Chainkit.GetBlockHashRequest request)
lncli: `chain getblockhash`
GetBlockHash returns the hash of the block in the best blockchain
at the given height.
|
com.google.common.util.concurrent.ListenableFuture<Chainkit.GetBlockHeaderResponse> |
getBlockHeader(Chainkit.GetBlockHeaderRequest request)
lncli: `chain getblockheader`
GetBlockHeader returns a block header with a particular block hash.
|
protected ChainKitGrpc.ChainKitFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build
in class io.grpc.stub.AbstractStub<ChainKitGrpc.ChainKitFutureStub>
public com.google.common.util.concurrent.ListenableFuture<Chainkit.GetBlockResponse> getBlock(Chainkit.GetBlockRequest request)
lncli: `chain getblock` GetBlock returns a block given the corresponding block hash.
public com.google.common.util.concurrent.ListenableFuture<Chainkit.GetBlockHeaderResponse> getBlockHeader(Chainkit.GetBlockHeaderRequest request)
lncli: `chain getblockheader` GetBlockHeader returns a block header with a particular block hash.
public com.google.common.util.concurrent.ListenableFuture<Chainkit.GetBestBlockResponse> getBestBlock(Chainkit.GetBestBlockRequest request)
lncli: `chain getbestblock` GetBestBlock returns the block hash and current height from the valid most-work chain.
public com.google.common.util.concurrent.ListenableFuture<Chainkit.GetBlockHashResponse> getBlockHash(Chainkit.GetBlockHashRequest request)
lncli: `chain getblockhash` GetBlockHash returns the hash of the block in the best blockchain at the given height.