# 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

:::code-group
```ts [example.ts]
import { pimlicoClient } from "./client"

const getStatusResult = await pimlicoClient.getUserOperationStatus({
    hash: "0x3c037f957fde5d87e35d5b8582f6c274343bcf3bc0e010d72fc2de0e27f4a6aa"
})
/**
 * {
 *  "status": "included",
 *  "transactionHash": "0x975a6bac5f562a2cb8218945b4e4304f6d10afa4aa6f02830e6d6dcafc450d66"
 * }
 */

```

```ts [client.ts]
import { createPimlicoClient } from "permissionless/clients/pimlico"
import { http } from "viem"
import { entryPoint07Address } from "viem/account-abstraction"
import { sepolia } from "viem/chains"

export const pimlicoClient = createPimlicoClient({
	chain: sepolia,
	entryPoint: {
		address: entryPoint07Address,
		version: "0.7",
	},
	transport: http("https://api.pimlico.io/v2/sepolia/rpc?apikey=YOUR_API_KEY_HERE"),
})
```
:::

## 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.

## JSON-RPC Method

[`pimlico_getUserOperationStatus`](/references/bundler/endpoints/pimlico_getUserOperationStatus)
