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

# eth_getUserOperationByHash

> Returns a `UserOperation` given a `userOpHash`.



## OpenAPI

````yaml /paymaster-&-bundler/bundler-api-endpoints/erc4337/eth_getUserOperationByHash.json post /rpc/{chainId}
openapi: 3.1.0
info:
  title: eth_getUserOperationByHash
  version: 1.0.0
servers:
  - url: https://api.gelato.cloud
security: []
paths:
  /rpc/{chainId}:
    post:
      summary: eth_getUserOperationByHash
      description: Returns a `UserOperation` given a `userOpHash`.
      parameters:
        - name: chainId
          in: path
          required: true
          schema:
            type: number
          description: Target network chain identifier.
        - name: X-API-Key
          in: header
          required: true
          schema:
            type: string
          description: >-
            Gelato API key for higher rate limits. This must be provided if
            sponsoring off-chain via Gas Tank.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Request'
        required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
components:
  schemas:
    Request:
      type: object
      properties:
        id:
          type: number
          default: 1
        jsonrpc:
          type: string
          default: '2.0'
        method:
          type: string
          default: eth_getUserOperationByHash
        params:
          type: array
          minItems: 1
          maxItems: 1
          items:
            type: string
            description: >-
              The `userOpHash` of the `UserOperation` (as returned by
              `eth_sendUserOperation`)
            default: '0xa501bf1cbb27adecb09aef8adb58ab5fe423be7975d5a4f687408525e4cabee9'
    Response:
      type: object
      properties:
        id:
          type: number
          default: 1
        jsonrpc:
          type: string
          default: '2.0'
        result:
          type: object
          properties:
            userOperation:
              $ref: '#/components/schemas/UserOperation'
            entryPoint:
              $ref: '#/components/schemas/EntryPoint'
            blockNumber:
              type: number
              default: '0x27fb22e'
            transactionHash:
              type: string
              default: >-
                0x0f9b0e5868beaf345d8d55895c8037ae85adb91c422c00badcdcae8a0bf247a1
    UserOperation:
      type: object
      title: '`UserOperation`'
      properties:
        sender:
          type: string
          default: '0x023fEF87894773DF227587d9B29af8D17b4dBB5A'
        nonce:
          type: string
          default: '0x1'
        initCode:
          type: string
          default: 0x
        callData:
          type: string
          default: >-
            0x51945447000000000000000000000000d2d3248f89fd11117496b3258db161a834dbfb0b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004d09de08a00000000000000000000000000000000000000000000000000000000
        signature:
          type: string
          default: >-
            0x00000000fca6490c2d85724bac088250a72fb7fb81a5a91234b1617d75d072c79d8d7db0123c1f0d9fe4708c864d89b7cca659f2554807f81339f6dcee2ba2e5ebe46b2c1b
        paymasterAndData:
          type: string
          default: 0x
        callGasLimit:
          type: string
          default: '0x358e'
        verificationGasLimit:
          type: string
          default: '0x148a6'
        preVerificationGas:
          type: string
          default: '0x0'
        maxFeePerGas:
          type: string
          default: '0x0'
        maxPriorityFeePerGas:
          type: string
          default: '0x5f5e100'
    EntryPoint:
      type: string
      title: '`EntryPoint`'
      default: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789'

````