fetchTransaction method
Returns a FetchTransactionRes object for the transaction at the given transactionId
.
transactionId
is an int representing the transaction 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<FetchTransactionRes> fetchTransaction({
required int transactionId,
CallOptions? options,
}) async {
final FetchTransactionReq request = FetchTransactionReq(transactionId: getTransactionIdFromInt(transactionId));
final FetchTransactionRes response = await nodeStub.fetchTransaction(
request,
options: options,
);
return response;
}