> ## Documentation Index
> Fetch the complete documentation index at: https://developers.particle.network/llms.txt
> Use this file to discover all available pages before exploring further.

# getUserOperationByHash

> Learn how to use the getUserOperationByHash JSON-RPC method.

## Understanding `getUserOperationByHash`

* `getUserOperationByHash` returns a UserOperation object corresponding with a specific hash. It takes:
  * `hash` - string.

***

## Query example

```json JSON theme={null}
{
    "method": "eth_getUserOperationByHash",
    "params": [
      // user operation hash
      "0x1ee478a6e967c407e8dfb5e3f2eb1131a7418c36396147fce1f7e81a871102a3"
    ],
    "id": 1695717473,
    "jsonrpc": "2.0",
    "chainId": 80001
}
```


## OpenAPI

````yaml openapi-bundler POST /#eth_getUserOperationByHash
openapi: 3.0.0
info:
  title: Particle Network Bundler
  version: 1.0.0
servers:
  - url: https://bundler.particle.network
security: []
paths:
  /#eth_getUserOperationByHash:
    post:
      summary: getUserOperationByHash
      operationId: getUserOperationByHash
      requestBody:
        description: Request to retrieve a user operation by its hash.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetUserOperationByHashRequest'
      responses:
        '200':
          description: Successful response with the user operation details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetUserOperationByHashResponse'
components:
  schemas:
    GetUserOperationByHashRequest:
      allOf:
        - $ref: '#/components/schemas/RPCRequest'
        - type: object
          properties:
            method:
              enum:
                - eth_getUserOperationByHash
            params:
              type: array
              description: Hash of the user operation.
              items:
                type: string
                example: 0xOperationHash
    GetUserOperationByHashResponse:
      allOf:
        - $ref: '#/components/schemas/RPCResponse'
        - type: object
          properties:
            result:
              type: object
              description: Details of the user operation.
              properties:
                userOperation:
                  type: object
                entryPoint:
                  type: string
                  example: 0xEntryPoint
                transactionHash:
                  type: string
                  example: 0xTransactionHash
                blockHash:
                  type: string
                  example: 0xBlockHash
                blockNumber:
                  type: string
                  example: 0xBlockNumber
    RPCRequest:
      type: object
      required:
        - jsonrpc
        - id
        - method
        - params
        - chainId
      properties:
        jsonrpc:
          type: string
          default: '2.0'
          description: Version of the JSON-RPC protocol, should be 2.0.
          example: '2.0'
        id:
          type: integer
          default: 1
          description: The request identifier.
          example: 1
        chainId:
          type: integer
          description: The chain ID.
          example: 80001
        method:
          type: string
          description: API method being called.
        params:
          type: array
          description: Parameters for the API method call.
    RPCResponse:
      type: object
      required:
        - jsonrpc
        - id
        - result
        - chainId
      properties:
        jsonrpc:
          type: string
          default: '2.0'
          description: Version of the JSON-RPC protocol, should be 2.0.
          example: '2.0'
        id:
          type: integer
          default: 1
          description: The request identifier.
          example: 1
        chainId:
          type: integer
          description: The chain ID.
          example: 80001
        result:
          anyOf:
            - $ref: '#/components/schemas/AnyValue'
    AnyValue:
      anyOf:
        - type: string
        - type: number
        - type: integer
        - type: boolean
        - type: object
        - type: array
          items: {}

````