getUserOpTransactionHash method

Future<TransactionModel> getUserOpTransactionHash(
  1. String userOpHash
)

Take a userOp hash and return the transaction hash.

Implementation

Future<TransactionModel> getUserOpTransactionHash(String userOpHash) async {
  try {
    TransactionModel? result =
        await RPCCall().getUserOpTransactionHash(userOpHash, this.bundlerURL);
    return result!;
  } catch (e) {
    print(e);
    throw Exception("Could not get transaction hash");
  }
}