> ## 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.

# Lấy phí creator tích lũy của một ví

> Truy xuất tất cả các CPMM pool mà ví này là creator, cùng với phí creator đã tích lũy nhưng chưa được nhận theo từng pool. Trả về mảng rỗng nếu ví không có phí creator nào được cache.

**Lưu ý:** Endpoint này cache dữ liệu người dùng theo định kỳ. Các hoạt động phí creator rất gần đây có thể chưa xuất hiện ngay lập tức.




## OpenAPI

````yaml /vi/api-reference/openapi/temp-api-v1.yaml get /cp-creator-fee
openapi: 3.0.3
info:
  title: Temp API
  description: >
    Nơi tạm chứa các endpoint ngắn hạn chưa có vị trí cố định trong Raydium API
    chính.

    Các endpoint trong dịch vụ này có thể thay đổi, bị deprecated hoặc di chuyển
    mà không báo trước.


    **Cảnh báo về độ ổn định:** Dịch vụ này ưu tiên phát triển nhanh và không
    đảm bảo tính ổn định của API.

    Chỉ sử dụng cho các luồng không quan trọng, công cụ nội bộ hoặc các tính
    năng đang trong quá trình phát triển.
  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: Endpoint tạm thời (không ổn định)
paths:
  /cp-creator-fee:
    get:
      tags:
        - Temporary
      summary: Lấy phí creator tích lũy của một ví
      description: >
        Truy xuất tất cả các CPMM pool mà ví này là creator, cùng với phí
        creator đã tích lũy nhưng chưa được nhận theo từng pool. Trả về mảng
        rỗng nếu ví không có phí creator nào được cache.


        **Lưu ý:** Endpoint này cache dữ liệu người dùng theo định kỳ. Các hoạt
        động phí creator rất gần đây có thể chưa xuất hiện ngay lập tức.
      operationId: getCpCreatorFee
      parameters:
        - name: wallet
          in: query
          required: true
          description: Khóa công khai của ví (base58)
          schema:
            type: string
            example: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnop
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatorFeeResponse'
        '400':
          description: Địa chỉ ví không hợp lệ
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Lỗi máy chủ
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    CreatorFeeResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        data:
          type: array
          description: Mảng các pool kèm phí creator tích lũy
          items:
            $ref: '#/components/schemas/CreatorFeeItem'
      required:
        - success
        - data
    ErrorResponse:
      type: object
      properties:
        id:
          type: string
        success:
          type: boolean
          example: false
        msg:
          type: string
          description: Thông báo lỗi
      required:
        - success
        - msg
    CreatorFeeItem:
      type: object
      description: Một CPMM pool đơn lẻ kèm phí creator tích lũy
      properties:
        poolInfo:
          type: object
          description: >-
            Metadata của pool (cấu trúc có thể thay đổi; xem API pools để biết
            schema)
        poolKey:
          type: object
          description: Khóa cấu hình pool
        fee:
          $ref: '#/components/schemas/FeeAmount'
      required:
        - poolInfo
        - poolKey
        - fee
    FeeAmount:
      type: object
      description: Số tiền phí tích lũy tính theo đơn vị token thô
      properties:
        amountA:
          type: string
          description: Phí creator cho token A (tính theo đơn vị nhỏ nhất)
        amountB:
          type: string
          description: Phí creator cho token B (tính theo đơn vị nhỏ nhất)
      required:
        - amountA
        - amountB

````