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

# Get state of account claimings



## OpenAPI

````yaml https://backend.swap.coffee/openapi get /v1/claim/{address}/state
openapi: 3.0.3
info:
  title: Swap Coffee API
  version: 1.0.0
servers:
  - url: https://backend.swap.coffee/
  - url: http://localhost:8080/
security:
  - {}
  - ApiKey: []
tags:
  - name: Entity
    description: Tokens, pools, DEXes, etc.
  - name: Routing
    description: >-
      Core functionality of the aggregation service. Build routes, get
      transactions, etc.
  - name: Strategies
    description: Limit orders, DCA, VCA, etc.
  - name: Yield
    description: >-
      Yield aggregator functionality. Provides and handles routes to pools with
      the best yield.
  - name: Referral
    description: Everything related to the referral program of swap.coffee.
  - name: Cashback
    description: Cashback programs conducted on swap.coffee.
  - name: Claim
    description: Claiming various rewards available on swap.coffee.
  - name: Contests
    description: Timed contests based on trading volumes for certain token-pairs.
  - name: Staking
    description: Responsible of managing staked funds, corresponding rewards, etc.
  - name: DEX
    description: Core functionality of the Coffee DEX service.
  - name: LiquidityProvisioning
    description: Everything related to liquidity provisioning in DEXes.
  - name: Boosts
    description: >-
      Functionality to support incentives and rewards for liquidity providers
      among all DEXes.
  - name: Profile
    description: Retrieve information about user profiles.
  - name: Partnership
    description: Various functionality for our partners.
  - name: Statistics
    description: Retrieve information about dex aggregation stats.
  - name: Ton
    description: Retrieve information about TON entities.
  - name: Auth
    description: Auth operations. For internal usage only.
paths:
  /v1/claim/{address}/state:
    get:
      tags:
        - Claim
      summary: Get state of account claimings
      operationId: getAccountClaimingState
      parameters:
        - $ref: '#/components/parameters/pathWalletAddress'
        - $ref: '#/components/parameters/headerXVerify'
        - $ref: '#/components/parameters/queryClaimingType'
        - $ref: '#/components/parameters/querySize10'
        - $ref: '#/components/parameters/queryPage'
      responses:
        '200':
          description: State of account's claimings
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiClaimStateResponse'
        default:
          $ref: '#/components/responses/ApiError'
components:
  parameters:
    pathWalletAddress:
      in: path
      name: address
      required: true
      schema:
        type: string
        example: UQCNTO0Nh0Z7QNyRW1BLWfk08f2dAOw4izrx9sO6OUPg4DoV
    headerXVerify:
      in: header
      name: x-verify
      required: true
      description: TON proof for the given address
      schema:
        type: string
    queryClaimingType:
      in: query
      name: type
      required: true
      schema:
        $ref: '#/components/schemas/ApiClaimingType'
    querySize10:
      in: query
      name: size
      schema:
        type: integer
        format: int32
        minimum: 1
        maximum: 100
        default: 10
    queryPage:
      in: query
      name: page
      schema:
        type: integer
        format: int32
        minimum: 1
        default: 1
  schemas:
    ApiClaimStateResponse:
      type: object
      required:
        - total_count
        - items
      properties:
        total_count:
          type: integer
        items:
          type: array
          items:
            $ref: '#/components/schemas/ApiClaimState'
    ApiClaimingType:
      type: string
      enum:
        - all
        - referral
        - cashback
        - staking
        - rewards_stonfi
        - rewards_dedust
        - coffee_dex
        - boost
    ApiClaimState:
      type: object
      required:
        - type
        - query_id
        - unix_time
        - logical_time
        - transaction_hash
        - token_address
        - wallet_address
        - amount
        - withdrawal
      properties:
        type:
          $ref: '#/components/schemas/ApiClaimingType'
        query_id:
          type: integer
          format: int64
        unix_time:
          type: integer
          format: int64
          description: When transaction happened in blockchain - unix seconds
        logical_time:
          type: integer
          format: int64
          description: When transaction happened in blockchain - on-chain logical time
        transaction_hash:
          type: string
        token_address:
          type: string
        wallet_address:
          type: string
        amount:
          type: number
        withdrawal:
          $ref: '#/components/schemas/ApiWithdrawal'
    ApiWithdrawal:
      type: object
      required:
        - type
        - status
      properties:
        type:
          $ref: '#/components/schemas/ApiWithdrawalType'
        status:
          $ref: '#/components/schemas/ApiWithdrawalStatus'
    ApiWithdrawalType:
      type: string
      enum:
        - repay
        - refund
    ApiWithdrawalStatus:
      type: string
      enum:
        - unhandled
        - processing
        - processed
  responses:
    ApiError:
      description: Some error during request processing
      content:
        application/json:
          schema:
            type: object
            required:
              - error
            properties:
              error:
                type: string
  securitySchemes:
    ApiKey:
      type: apiKey
      name: X-Api-Key
      in: header

````