public static interface ChainKitGrpc.AsyncService
ChainKit is a service that can be used to get information from the chain backend.
Modifier and Type | Method and Description |
---|---|
default 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.
|
default void |
getBlock(Chainkit.GetBlockRequest request,
io.grpc.stub.StreamObserver<Chainkit.GetBlockResponse> responseObserver)
lncli: `chain getblock`
GetBlock returns a block given the corresponding block hash.
|
default 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.
|
default 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.
|
default void getBlock(Chainkit.GetBlockRequest request, io.grpc.stub.StreamObserver<Chainkit.GetBlockResponse> responseObserver)
lncli: `chain getblock` GetBlock returns a block given the corresponding block hash.
default 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.
default 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.
default 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.