fetchBlockIdAtHeight method
Future<FetchBlockIdAtHeightRes>
fetchBlockIdAtHeight({
- required int height,
- CallOptions? options,
Returns a FetchBlockIdAtHeightRes object for the block at the given height
.
height
is an int representing the block height to retrieve
options
is an CallOptions
for runtime options with RPC
Throws an Exception if an error occurs during the RPC request.
Implementation
Future<FetchBlockIdAtHeightRes> fetchBlockIdAtHeight({
required int height,
CallOptions? options,
}) async {
final FetchBlockIdAtHeightReq request = FetchBlockIdAtHeightReq(height: Int64(height));
final FetchBlockIdAtHeightRes response = await nodeStub.fetchBlockIdAtHeight(
request,
options: options,
);
return response;
}