getUserOperationStatus
Return a status of the User Operation as well as potentially the hash of the transaction being used to bundle the User Operation.
Usage
example.ts
import { pimlicoClient } from "./client"
const getStatusResult = await pimlicoClient.getUserOperationStatus({
hash: "0x3c037f957fde5d87e35d5b8582f6c274343bcf3bc0e010d72fc2de0e27f4a6aa"
})
/**
* {
* "status": "included",
* "transactionHash": "0x975a6bac5f562a2cb8218945b4e4304f6d10afa4aa6f02830e6d6dcafc450d66"
* }
*/
Returns
- Type:
GetUserOperationStatusReturnType
The status of the User Operation ("not_found" | "not_submitted" | "submitted" | "rejected" | "reverted" | "included" | "failed" | "queued") as well as the hash of the transaction being used to bundle the User Operation. If the hash is not known (for instance because the User Operation has not been submitted yet), the hash will be null
.
Parameters
hash
- Type:
Hash
The hash of the User Operation.