getUserOperationByHash method
- String userOpHash
override
Retrieves a user operation object associated with a userOpHash.
userOpHash
: The hashed string of the user operation.
Returns a Future that completes with a UserOperationByHash
object.
Implementation
@override
Future<UserOperationByHash> getUserOperationByHash(String userOpHash) async {
require(_initialized, "getUserOpByHash: Wallet Provider not initialized");
final opExtended = await _bundlerRpc
.send<Map<String, dynamic>>('eth_getUserOperationByHash', [userOpHash]);
return UserOperationByHash.fromMap(opExtended);
}