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

# policy/walletAddress/{walletAddress}/epVersion/{epVersion}/chainId/{chainId}

> Retrieves all sponsorship policies for a given wallet address, EP version, and chain ID.

Example values you can use to demo the API:

```json theme={null}
{
  "pathVariables": {
    "walletAddress": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
    "epVersion": "EPV_07",
    "chainId": 80002
  }
}
```

Example response:

```json theme={null}
[
    {
        "id": 2,
        "walletAddress": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
        "name": "Sample Policy",
        "description": "This is a sample policy",
        "isPublic": true,
        "isEnabled": true,
        "isApplicableToAllNetworks": false,
        "enabledChains": [
            80002
        ],
        "supportedEPVersions": [
            "EPV_06",
            "EPV_07"
        ],
        "isPerpetual": false,
        "startTime": "2024-06-24T00:40:00.000Z",
        "endTime": "2024-06-25T23:59:59.999Z",
        "globalMaximumApplicable": true,
        "globalMaximumUsd": "5000.0000",
        "globalMaximumNative": "1000.000000000000000000",
        "globalMaximumOpCount": 1000,
        "perUserMaximumApplicable": true,
        "perUserMaximumUsd": "100.0000",
        "perUserMaximumNative": "200.000000000000000000",
        "perUserMaximumOpCount": 50,
        "perOpMaximumApplicable": true,
        "perOpMaximumUsd": "10.0000",
        "perOpMaximumNative": "20.000000000000000000",
        "addressAllowList": null,
        "addressBlockList": null,
        "createdAt": "2024-06-26T19:50:09.475Z",
        "updatedAt": "2024-06-26T19:50:09.475Z"
    },
    {
        "id": 1,
        "walletAddress": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
        "name": "Sample Policy",
        "description": "This is a sample policy modified",
        "isPublic": true,
        "isEnabled": true,
        "isApplicableToAllNetworks": false,
        "enabledChains": [
            80002
        ],
        "supportedEPVersions": [
            "EPV_06",
            "EPV_07"
        ],
        "isPerpetual": false,
        "startTime": "2024-06-26T00:40:00.000Z",
        "endTime": "2024-06-27T23:59:59.999Z",
        "globalMaximumApplicable": true,
        "globalMaximumUsd": "6000.0000",
        "globalMaximumNative": "2000.000000000000000000",
        "globalMaximumOpCount": 1000,
        "perUserMaximumApplicable": true,
        "perUserMaximumUsd": "100.0000",
        "perUserMaximumNative": "200.000000000000000000",
        "perUserMaximumOpCount": 50,
        "perOpMaximumApplicable": true,
        "perOpMaximumUsd": "10.0000",
        "perOpMaximumNative": "20.000000000000000000",
        "addressAllowList": null,
        "addressBlockList": null,
        "createdAt": "2024-06-26T19:49:08.252Z",
        "updatedAt": "2024-06-27T19:38:39.674Z"
    }
]
```


## OpenAPI

````yaml arka get /policy/walletAddress/{walletAddress}/epVersion/{epVersion}/chainId/{chainId}
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:
  /policy/walletAddress/{walletAddress}/epVersion/{epVersion}/chainId/{chainId}:
    get:
      summary: >-
        policy/walletAddress/{walletAddress}/epVersion/{epVersion}/chainId/{chainId}
      description: >-
        Retrieves all sponsorship policies for a given wallet address, EP
        version, and chain ID.
      parameters:
        - in: path
          name: walletAddress
          required: true
          schema:
            type: string
          description: The wallet address to find the policies for.
        - in: path
          name: epVersion
          required: true
          schema:
            type: string
          description: The EP version to find the policies for.
        - in: path
          name: chainId
          required: true
          schema:
            type: string
          description: The chain ID to find the policies for.
        - in: query
          name: apiKey
          schema:
            type: string
          description: Arka API key
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SponsorshipPolicy'
        '400':
          description: Bad Request - Invalid Data
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Invalid data
        '404':
          description: Not Found - Sponsorship Policy Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Sponsorship policy not found
        '500':
          description: Internal Server Error - Failed to Query Sponsorship Policy
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Failed to query sponsorship policy
components:
  schemas:
    SponsorshipPolicy:
      type: object
      properties:
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        id:
          type: integer
        walletAddress:
          type: string
        name:
          type: string
        description:
          type: string
        isPublic:
          type: boolean
        isEnabled:
          type: boolean
        isApplicableToAllNetworks:
          type: boolean
        enabledChains:
          type: array
          items:
            type: integer
        supportedEPVersions:
          type: array
          items:
            type: string
        isPerpetual:
          type: boolean
        startTime:
          type: string
          format: date-time
        endTime:
          type: string
          format: date-time
        globalMaximumApplicable:
          type: boolean
        globalMaximumUsd:
          type: string
        globalMaximumNative:
          type: string
        globalMaximumOpCount:
          type: integer
        perUserMaximumApplicable:
          type: boolean
        perUserMaximumUsd:
          type: string
        perUserMaximumNative:
          type: string
        perUserMaximumOpCount:
          type: integer
        perOpMaximumApplicable:
          type: boolean
        perOpMaximumUsd:
          type: string
        perOpMaximumNative:
          type: string
        addressAllowList:
          type: array
          items:
            type: string
          nullable: true
        addressBlockList:
          type: array
          items:
            type: string
          nullable: true

````