> ## 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 /cn/api-reference/openapi-data-cn.yaml GET /v2/redpacket
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:
    get:
      tags:
        - RedPacket
      summary: 红包 - 列表
      description: 获取红包列表
      operationId: get.redpackets
      parameters:
        - 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
        - name: creator
          in: query
          description: 创建者钱包地址
          required: false
          schema:
            type: string
          example: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
        - name: chain
          in: query
          description: 红包所在的区块链网络
          required: false
          schema:
            $ref: '#/components/schemas/ChainSymbol'
          example: sol
      responses:
        '200':
          description: 成功响应
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RedPacketsPage'
components:
  schemas:
    PageDirection:
      type: string
      description: Pagination direction
      enum:
        - next
        - prev
    ChainSymbol:
      type: string
      description: Supported blockchain chains
      enum:
        - sol
        - eth
        - bsc
    RedPacketsPage:
      type: object
      description: Paginated red packets response
      required:
        - total
        - hasNextPage
        - records
      properties:
        endCursor:
          type:
            - string
            - 'null'
          description: 当前页结束游标
        hasNextPage:
          type: boolean
          description: 是否有下一页
        records:
          type: array
          items:
            $ref: '#/components/schemas/RedPacket'
          description: 红包列表
        startCursor:
          type:
            - string
            - 'null'
          description: 当前页起始游标
        total:
          type: integer
          format: int64
          description: 红包总数
    RedPacket:
      type: object
      description: Red packet detail
      required:
        - id
        - creator
        - mint
        - totalAmount
        - maxClaims
      properties:
        chain:
          type:
            - string
            - 'null'
          description: 红包所在的区块链网络
          example: sol
        claimAuthority:
          type:
            - string
            - 'null'
          description: 领取授权地址
          example: Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
        claimedAmount:
          type:
            - string
            - 'null'
          description: 已领取金额
          example: '500000000'
        claimedCount:
          type:
            - integer
            - 'null'
          format: int32
          description: 已领取次数
          example: 5
        createdAt:
          type:
            - integer
            - 'null'
          format: int64
          description: 红包创建时间戳
          example: 1717334400000
        creator:
          type: string
          description: 创建者钱包地址
          example: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
        expiration:
          type:
            - integer
            - 'null'
          format: int64
          description: 过期时间（秒）
          example: 24
        expired:
          type:
            - boolean
            - 'null'
          description: 红包是否已提取
        expiredAt:
          type:
            - integer
            - 'null'
          format: int64
          description: 过期时间戳
          example: 1717420800000
        id:
          type: string
          description: 红包标识
          example: Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
        maxClaims:
          type: integer
          format: int32
          description: 最大领取次数
          example: 10
        memo:
          type:
            - string
            - 'null'
          description: 红包留言
          example: Happy Red Packet
        mint:
          type: string
          description: 代币铸造地址
          example: Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
        refundedAmount:
          type:
            - string
            - 'null'
          description: 退款金额
          example: '0'
        shareId:
          type:
            - string
            - 'null'
          description: 分享标识
          example: abc123
        totalAmount:
          type: string
          description: 红包总金额
          example: '1000000000'
        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

````