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