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

# 紅包 - 領取記錄

> 查詢紅包領取紀錄



## OpenAPI

````yaml /zh-Hant/api-reference/openapi-data-zh-Hant.yaml GET /v2/redpacket/{id}/claims
openapi: 3.1.0
info:
  title: Services API
  description: Services API
  contact:
    name: AI
    email: ai@sx.ai
  license:
    name: MIT
  version: '1.0'
servers:
  - url: https://api.chainstream.io
    description: Production
security:
  - bearer_auth: []
  - api_key_auth: []
tags:
  - name: Blockchain
    description: 區塊鏈相關操作
  - name: Token
    description: 代幣相關操作
  - name: Trade
    description: 交易相關操作
  - name: Wallet
    description: 錢包相關操作
  - name: Dex
    description: DEX 相關操作
  - name: Ranking
    description: 排行榜相關操作
  - name: DexPool
    description: DEX 池子相關操作
  - name: Watchlist
    description: 關注列表相關操作
  - name: KYT
    description: KYT 相關操作
  - name: Webhook
    description: Webhook 相關操作
  - name: RedPacket
    description: 紅包相關操作
  - name: IPFS
    description: IPFS 相關操作
  - name: DexScreener
    description: DexScreener 相關操作
paths:
  /v2/redpacket/{id}/claims:
    get:
      tags:
        - RedPacket
      summary: 紅包 - 領取紀錄
      description: 查詢紅包領取紀錄
      operationId: get.claims
      parameters:
        - name: id
          in: path
          description: 紅包標識
          required: true
          schema:
            type: string
          example: Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
        - name: cursor
          in: query
          description: 分頁游標
          required: false
          schema:
            type: string
          example: cursor_abc
        - name: limit
          in: query
          description: 每頁結果數量
          required: false
          schema:
            type: integer
            format: int64
          example: 20
        - name: direction
          in: query
          description: 分頁方向
          required: false
          schema:
            oneOf:
              - $ref: '#/components/schemas/PageDirection'
            default: next
          example: next
      responses:
        '200':
          description: 成功回應
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RedPacketClaimsPage'
components:
  schemas:
    PageDirection:
      type: string
      description: Pagination direction
      enum:
        - next
        - prev
    RedPacketClaimsPage:
      type: object
      description: Paginated red packet claims response
      required:
        - total
        - hasNextPage
        - records
      properties:
        endCursor:
          type:
            - string
            - 'null'
          description: 目前頁結束游標
        hasNextPage:
          type: boolean
          description: 是否有下一頁
        records:
          type: array
          items:
            $ref: '#/components/schemas/RedPacketClaim'
          description: 紅包領取紀錄列表
        startCursor:
          type:
            - string
            - 'null'
          description: 目前頁起始游標
        total:
          type: integer
          format: int64
          description: 領取總數
    RedPacketClaim:
      type: object
      description: Red packet claim record
      required:
        - packetId
        - claimer
        - mint
        - amount
      properties:
        amount:
          type: string
          description: 紅包總金額
          example: '100000000'
        chain:
          type:
            - string
            - 'null'
          description: 紅包所在的區塊鏈網路
          example: sol
        claimedAt:
          type:
            - integer
            - 'null'
          format: int64
          description: 領取時間戳
          example: 1717334400000
        claimer:
          type: string
          description: 領取者錢包地址
          example: Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
        creator:
          type:
            - string
            - 'null'
          description: 建立者錢包地址
          example: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
        mint:
          type: string
          description: 代幣鑄造地址
          example: Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
        packetId:
          type: string
          description: 紅包鏈上 ID
          example: Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
        txHash:
          type:
            - string
            - 'null'
          description: 交易雜湊
          example: 5UfDuX7hXbL3mFfPdq1pymNHM...
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    api_key_auth:
      type: apiKey
      in: header
      name: X-API-KEY

````