> ## 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 池，以及每個池中累積但尚未領取的創建者手續費。若該錢包沒有已快取的創建者手續費，則回傳空陣列。

**注意：** 此端點會定期快取使用者資料，近期的創建者手續費活動可能不會立即反映。




## OpenAPI

````yaml /zh-Hant/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 池，以及每個池中累積但尚未領取的創建者手續費。若該錢包沒有已快取的創建者手續費，則回傳空陣列。

        **注意：** 此端點會定期快取使用者資料，近期的創建者手續費活動可能不會立即反映。
      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: 包含累積創建者手續費的池陣列
          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 池及其累積的創建者手續費
      properties:
        poolInfo:
          type: object
          description: 池的元數據（結構因池而異，請參閱 pools API 的 schema）
        poolKey:
          type: object
          description: 池的設定金鑰
        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

````