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

# eth_estimateUserOperationGas

> Estimate User Operation

Example values you use to demo the API:

```json theme={null}
{
  "jsonrpc": "2.0",
  "method": "eth_estimateUserOperationGas",
  "params": [
    {
      "sender":"0xb341FEAFaF71b09089d03B7D114599f8F491EE45",
      "nonce":"0x0",
      "initCode":"0x5de4839a76cf55d0c90e2061ef4386d962E15ae3296601cd0000000000000000000000000da6a956b9488ed4dd761e59f52fdc6c8068e6b5000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084d1f57894000000000000000000000000d9ab5096a832b9ce79914329daee236f8eea039000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000014375cd3E53E18f65672E9d0Eb6AD174511b0BF98100000000000000000000000000000000000000000000000000000000000000000000000000000000",
      "callData":"0x5194544700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
      "callGasLimit":"0x0",
      "verificationGasLimit":"0x0",
      "preVerificationGas":"0x0",
      "maxPriorityFeePerGas":"0x3b9aca00",
      "maxFeePerGas":"0x7a5cf70d5",
      "paymasterAndData":"0x",
      "signature":"0x00000000fffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c"
    },
    "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789"
  ],
  "id": 1
}
```

Example response:

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "preVerificationGas": "0xdf55",
    "verificationGas": "0x52503",
    "verificationGasLimit": "0x52503",
    "callGasLimit": "0x13880",
    "maxFeePerGas": "0x59682f00",
    "maxPriorityFeePerGas": "0x59682f00"
  }
}
```


## OpenAPI

````yaml skandhaestimateuserop post /
openapi: 3.0.3
info:
  title: Etherspot test
  version: 1.0.1
servers:
  - url: https://rpc.etherspot.io/v1/137
security: []
tags:
  - name: skandha
    description: Skandha API call
    externalDocs:
      description: Find out more about Skandha
      url: https://etherspot.fyi/skandha/intro
externalDocs:
  description: Find out more about Skandha
  url: https://etherspot.fyi/skandha/intro
paths:
  /:
    post:
      tags:
        - skandha
      summary: eth_estimateUserOperationGas
      description: Estimate User Operation
      operationId: eth_estimateUserOperationGas
      requestBody:
        description: >-
          The first item in the array MUST be a userop, and the second item MUST
          be address of EntryPoint.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/estimateuserop'
        required: true
      responses:
        '200':
          description: Successful estimation
components:
  schemas:
    estimateuserop:
      type: object
      required:
        - jsonrpc
        - method
        - params
        - id
      properties:
        jsonrpc:
          type: string
          enum:
            - '2.0'
          default: '2.0'
        method:
          type: string
          enum:
            - eth_estimateUserOperationGas
          default: eth_estimateUserOperationGas
        params:
          type: array
          minItems: 2
          maxItems: 2
          items:
            oneOf:
              - $ref: '#/components/schemas/UserOperation'
                description: User Operation
              - type: string
                description: EntryPoint contract address
                default: '0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789'
        id:
          type: integer
    UserOperation:
      type: object
      description: User Operation
      required:
        - sender
        - nonce
        - initCode
        - callData
        - paymasterAndData
      properties:
        sender:
          type: string
        nonce:
          type: string
        initCode:
          type: string
        callData:
          type: string
        callGasLimit:
          type: string
        verificationGasLimit:
          type: string
        preVerificationGas:
          type: string
        maxPriorityFeePerGas:
          type: string
        maxFeePerGas:
          type: string
        paymasterAndData:
          type: string
        signature:
          type: string

````