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

# 查詢使用者資訊

> 查詢終端使用者及已綁定錢包資訊。

查詢終端使用者及已綁定錢包資訊。

> [!NOTE]
>
> 使用 Broker API Key 呼叫，並在請求頭提供 `X-User-Wallet-Address`。網關會校驗錢包與 Broker 的歸屬關係。 認證規則見[Broker API 認證與簽名](https://dexbuilder.mintlify.site/zh-TW/api-reference/common/broker-authentication.md)。

## 使用說明

* 回應包含已綁定錢包。錢包物件中的 `vm` 表示虛擬機類型（`evm` 或 `solana`），並非具體網路名稱；使用者狀態為 `active`，錢包狀態為 `bound`。


## OpenAPI

````yaml openapi/dexbuilder-zh-TW.yaml GET /api/v4/dexbuilder/user/info
openapi: 3.0.3
info:
  title: DexBuilder 平台 Broker API
  version: 1.0.0
  description: DexBuilder 平台 Broker API，涵蓋資產配置、使用者、充值與提現能力。認證和使用者錢包校驗見本站統一網關說明。
servers:
  - url: https://api.dexbuilder.com
security: []
paths:
  /api/v4/dexbuilder/user/info:
    get:
      tags:
        - 使用者
      summary: 查詢使用者資訊
      description: 查詢專案下終端使用者 ID 與已綁定錢包列表。
      operationId: getDexBuilderUserInfo
      parameters:
        - $ref: '#/components/parameters/SubUserWalletAddr'
      responses:
        '200':
          description: 查詢成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvelopeUserInfo'
        '400':
          $ref: '#/components/responses/UserNotFound'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          $ref: '#/components/responses/GatewayUnauthorized'
        '403':
          $ref: '#/components/responses/ProjectAccessDenied'
      security:
        - BrokerAPIKey: []
          Timestamp: []
          Signature: []
components:
  parameters:
    SubUserWalletAddr:
      name: X-User-Wallet-Address
      in: header
      required: true
      description: 目標終端使用者錢包地址。網關校驗該錢包對應的使用者屬於當前 Broker。
      schema:
        type: string
  schemas:
    EnvelopeUserInfo:
      allOf:
        - $ref: '#/components/schemas/EnvelopeBase'
        - type: object
          properties:
            data:
              $ref: '#/components/schemas/UserInfo'
    ErrorEnvelope:
      allOf:
        - $ref: '#/components/schemas/EnvelopeBase'
        - type: object
          required:
            - label
          properties:
            label:
              type: string
              description: 穩定的機器可讀錯誤標識
            data:
              nullable: true
              description: 錯誤時一般為 null
    EnvelopeBase:
      type: object
      properties:
        code:
          type: integer
          example: 0
          description: 業務碼，`0` 表示成功
        message:
          type: string
          example: success
          description: 人類可讀說明，成功時為 success
        reason:
          type: string
          description: 錯誤原因標識；成功時通常為空字符串
        trace_id:
          type: string
          description: 鏈路追蹤 ID，排障時提供
    UserInfo:
      type: object
      properties:
        user_id:
          type: string
          description: 終端使用者 ID（專案方映射）
        project_id:
          type: string
          description: DexBuilder 專案 ID
        status:
          type: string
          example: active
          description: 使用者狀態，如 active
        wallets:
          type: array
          items:
            $ref: '#/components/schemas/UserInfoWallet'
          description: 已綁定錢包列表
    UserInfoWallet:
      type: object
      properties:
        address:
          type: string
          description: 已綁定錢包地址
        status:
          type: string
          description: 綁定狀態，如 bound
        vm:
          type: string
          description: 虛擬機類型：evm 或 solana。
  responses:
    UserNotFound:
      description: 使用者不存在或未綁定錢包
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            code: 405007
            reason: P_DEX_BUILDER_IN_USER_NOT_FOUND
            label: USER_NOT_FOUND
            message: User not found
            data: null
    GatewayUnauthorized:
      description: Broker API Key、簽名或時間戳無效
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          examples:
            invalidKey:
              summary: 無效 API Key
              value:
                label: INVALID_KEY
                message: Invalid key provided
                code: 401
                trace_id: abc123
            invalidSignature:
              summary: 簽名錯誤
              value:
                label: INVALID_SIGNATURE
                message: Invalid signature
                code: 401
                trace_id: abc123
    ProjectAccessDenied:
      description: 專案未綁定或 Broker/API Key 不匹配
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            code: 40300801
            reason: P_DEX_BUILDER_IN_PROJECT_ACCESS_DENIED
            label: PROJECT_ACCESS_DENIED
            message: project access denied
            data: null
  securitySchemes:
    BrokerAPIKey:
      type: apiKey
      in: header
      name: KEY
      description: Broker API Key
    Timestamp:
      type: apiKey
      in: header
      name: Timestamp
      description: Unix 秒級時間戳
    Signature:
      type: apiKey
      in: header
      name: SIGN
      description: 使用 Broker Secret Key 生成的 HMAC-SHA512 十六進制簽名

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.