getUserOpTransactionHash method

Future<String> getUserOpTransactionHash(
  1. UserOperationResult? userOpHash
)

Implementation

Future<String> getUserOpTransactionHash(
    UserOperationResult? userOpHash) async {
  try {
    RPCModel response = await _makeRpcRequest(
        'eth_getUserOperationByHash', bundlerURL, [userOpHash]);
    return response.userOperationHashResult!.userOperationHash!;
  } catch (e) {
    print(e);
    return e.toString();
  }
}