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