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