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

# pm_sponsorUserOperation

> Sponsor a userOps

Example values you use to demo the API:

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

Example response:

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "paymasterAndData": "0x26fec24b0d467c9de105217b483931e8f944ff500000000000000000000000000000000000000000000000000000000066ebe8b80000000000000000000000000000000000000000000000000000000066ebceb4b5b1df6daf753a0017ac66af78cf10aad42803f86efceff5db656890034e588e10c33ca89eab9ecaef9f0188303b3a3674299fc5208684f9d4de7f34202df1521c",
    "verificationGasLimit": "0xe967",
    "preVerificationGas": "0x18810",
    "callGasLimit": "0x28ede",
  }
}
```


## OpenAPI

````yaml arkasponsoruseroperation post /
openapi: 3.0.3
info:
  title: Etherspot Arka Paymaster API
  version: 3.1.3
servers:
  - url: https://rpc.etherspot.io/paymaster
security: []
tags:
  - name: Arka
    externalDocs:
      description: Find out more about Arka
      url: https://etherspot.fyi/arka
externalDocs:
  description: Find out more about Arka
  url: https://etherspot.fyi/arka
paths:
  /:
    post:
      tags:
        - Arka
      summary: pm_sponsorUserOperation
      description: Sponsor a userOps
      operationId: pm_sponsorUserOperation
      parameters:
        - in: query
          name: apiKey
          schema:
            type: string
          description: Arka API key
        - in: query
          name: chainId
          schema:
            type: string
          description: Chain ID
      requestBody:
        description: sponsor the given userOp and return the paymaster data
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/sponsorUserOperation'
        required: true
      responses:
        '200':
          description: Successful operation
components:
  schemas:
    sponsorUserOperation:
      type: object
      required:
        - jsonrpc
        - method
        - params
        - id
      properties:
        jsonrpc:
          type: string
          enum:
            - '2.0'
          default: '2.0'
        method:
          type: string
          enum:
            - pm_sponsorUserOperation
          default: pm_sponsorUserOperation
        params:
          type: array
          minItems: 3
          maxItems: 3
          items:
            oneOf:
              - $ref: '#/components/schemas/UserOperation'
                description: User Operation
              - type: string
                description: EntryPoint contract address
                default: '0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789'
              - type: object
                required:
                  - mode
                properties:
                  mode:
                    type: string
                    enum:
                      - sponsor
                      - erc20
                      - multitoken
                    default: sponsor
                  token:
                    type: string
                  validUntil:
                    type: string
                  validAfter:
                    type: string
        id:
          type: integer
    UserOperation:
      type: object
      description: User Operation
      required:
        - sender
        - nonce
        - initCode
        - callData
      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

````