getTransactionStatus method Null safety
- String transactionHash
Clients will poll this to tell when the transaction has been completed.
Implementation
Future<GetTransactionStatusResponse> getTransactionStatus(
String transactionHash) async {
if (!this.acknowledgeExperimental) {
printExperimentalFlagErr();
return GetTransactionStatusResponse.fromJson(_experimentalErr);
}
JsonRpcMethod getAccount =
JsonRpcMethod("getTransactionStatus", args: transactionHash);
dio.Response response = await _dio.post(_serverUrl,
data: json.encode(getAccount), options: dio.Options(headers: _headers));
if (enableLogging) {
print("getTransactionStatus response: $response");
}
return GetTransactionStatusResponse.fromJson(response.data);
}