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