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

# 获取钱包的累计创建者手续费

> 查询该钱包作为创建者的所有 CPMM pool，以及每个 pool 中已累计但尚未提取的创建者手续费。若该钱包没有缓存的创建者手续费，则返回空数组。

**注意：** 本端点会定期缓存用户数据，最近的创建者手续费活动可能不会立即显示。




## OpenAPI

````yaml /zh/api-reference/openapi/temp-api-v1.yaml get /cp-creator-fee
openapi: 3.0.3
info:
  title: Temp API
  description: |
    用于存放在 Raydium 主 API 中尚无固定归属的短期端点。
    此服务中的端点可能随时变更、弃用或迁移，恕不另行通知。

    **稳定性警告：** 本服务以快速迭代为优先，不提供 API 稳定性保证。
    仅建议用于非关键路径、内部工具或正在开发中的功能。
  version: 1.0.0
  contact:
    name: Raydium
    url: https://raydium.io
servers:
  - url: https://temp-api-v1.raydium.io
    description: Mainnet
  - url: https://temp-api-v1-devnet.raydium.io
    description: Devnet
security: []
tags:
  - name: Temporary
    description: 临时端点（不稳定）
paths:
  /cp-creator-fee:
    get:
      tags:
        - Temporary
      summary: 获取钱包的累计创建者手续费
      description: >
        查询该钱包作为创建者的所有 CPMM pool，以及每个 pool
        中已累计但尚未提取的创建者手续费。若该钱包没有缓存的创建者手续费，则返回空数组。


        **注意：** 本端点会定期缓存用户数据，最近的创建者手续费活动可能不会立即显示。
      operationId: getCpCreatorFee
      parameters:
        - name: wallet
          in: query
          required: true
          description: 钱包公钥（base58）
          schema:
            type: string
            example: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnop
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatorFeeResponse'
        '400':
          description: 钱包地址无效
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: 服务器错误
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    CreatorFeeResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        data:
          type: array
          description: 包含累计创建者手续费的 pool 数组
          items:
            $ref: '#/components/schemas/CreatorFeeItem'
      required:
        - success
        - data
    ErrorResponse:
      type: object
      properties:
        id:
          type: string
        success:
          type: boolean
          example: false
        msg:
          type: string
          description: 错误信息
      required:
        - success
        - msg
    CreatorFeeItem:
      type: object
      description: 单个 CPMM pool 及其累计创建者手续费
      properties:
        poolInfo:
          type: object
          description: Pool 元数据（结构各异，具体 schema 请参见 pools API）
        poolKey:
          type: object
          description: Pool 配置键
        fee:
          $ref: '#/components/schemas/FeeAmount'
      required:
        - poolInfo
        - poolKey
        - fee
    FeeAmount:
      type: object
      description: 以原始 token 单位表示的累计手续费金额
      properties:
        amountA:
          type: string
          description: token A 的创建者手续费金额（最小单位）
        amountB:
          type: string
          description: token B 的创建者手续费金额（最小单位）
      required:
        - amountA
        - amountB

````