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

# Lấy thông tin cấp vốn cho ví

> Khám phá những địa chỉ đã cấp vốn cho ví Solana bằng khoản nạp SOL ban đầu.

Mỗi yêu cầu tốn **100 tín dụng**.

Yêu cầu gói trả phí. Các yêu cầu từ gói miễn phí trả về `403 Forbidden`.

## Tham số yêu cầu

<ParamField body="wallet" type="string" required default="86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY">
  Địa chỉ ví Solana (được mã hóa base58)
</ParamField>


## OpenAPI

````yaml vi/openapi/wallet-api/openapi.yaml GET /v1/wallet/{wallet}/funded-by
openapi: 3.0.3
info:
  title: Wallet API
  description: >
    REST API hiệu năng cao để truy vấn dữ liệu ví Solana, bao gồm số dư, lịch sử
    giao dịch, chuyển khoản và thông tin danh tính.


    ## Xác thực


    Mọi yêu cầu đều cần khóa API được truyền theo một trong hai cách:

    - Tham số truy vấn: `?api-key=YOUR_API_KEY`

    - Tiêu đề: `X-Api-Key: YOUR_API_KEY`
  version: 1.0.0
  contact:
    name: Hỗ trợ API
    url: https://helius.dev
servers:
  - url: https://api.helius.xyz
    description: Máy chủ sản xuất
security:
  - ApiKeyQuery: []
  - ApiKeyHeader: []
tags:
  - name: Danh tính
    description: Tra cứu danh tính ví và các địa chỉ đã biết
  - name: Số dư
    description: Truy vấn số dư token và NFT
  - name: Lịch sử
    description: Lịch sử giao dịch và thay đổi số dư
  - name: Chuyển khoản
    description: Hoạt động chuyển token
  - name: Cấp vốn
    description: Thông tin cấp vốn cho ví
paths:
  /v1/wallet/{wallet}/funded-by:
    get:
      tags:
        - Cấp vốn
      summary: Lấy nguồn cấp vốn của ví
      description: >
        Xác định nguồn cấp vốn ban đầu của ví bằng cách phân tích giao dịch
        chuyển SOL đến đầu tiên.

        Hữu ích để xác định ví được cấp vốn bởi sàn giao dịch, ví khác, v.v.
      operationId: getWalletFundingSource
      parameters:
        - name: wallet
          in: path
          required: true
          description: Địa chỉ ví Solana (được mã hóa base58)
          schema:
            type: string
            pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
            default: 86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY
          example: 86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY
      responses:
        '200':
          description: Đã xác định nguồn cấp vốn
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FundingSource'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Không tìm thấy giao dịch cấp vốn
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    FundingSource:
      type: object
      properties:
        funder:
          type: string
          description: Địa chỉ ban đầu đã cấp vốn cho ví này
          example: 2ojv9BAiHUrvsm9gxDe7fJSzbNZSJcxZvf8dqmWGHG8S
        funderName:
          type: string
          nullable: true
          description: Tên của bên cấp vốn nếu đó là thực thể đã biết
          example: Coinbase 2
        funderType:
          type: string
          nullable: true
          description: Loại thực thể cấp vốn
          example: exchange
        mint:
          type: string
          description: >-
            Địa chỉ mint của token (So11111111111111111111111111111111111111112
            đối với SOL)
          example: So11111111111111111111111111111111111111112
        symbol:
          type: string
          description: Ký hiệu token
          example: SOL
        amount:
          type: number
          description: Số tiền cấp vốn ban đầu (dễ đọc, tính bằng SOL)
          example: 0.05
        amountRaw:
          type: string
          description: Số tiền cấp vốn thô theo đơn vị nhỏ nhất (lamport đối với SOL)
          example: '50000000'
        decimals:
          type: integer
          description: Số chữ số thập phân của token
          example: 9
        signature:
          type: string
          description: Chữ ký giao dịch của lần chuyển cấp vốn
          example: 5wHu1qwD7Jsj3xqWjdSEJmYr3Q5f5RjXqjqQJ7jqEj7jqEj7jqEj7jqEj7jqEj7jqE
        timestamp:
          type: integer
          description: Dấu thời gian Unix tính bằng giây
          example: 1704067200
        date:
          type: string
          format: date-time
          description: Ngày UTC dễ đọc ở định dạng ISO 8601
          example: '2024-01-01T00:00:00.000Z'
        slot:
          type: integer
          description: Số slot
          example: 250000000
        explorerUrl:
          type: string
          description: URL Solana Explorer của giao dịch
          example: >-
            https://orbmarkets.io/tx/5wHu1qwD7Jsj3xqWjdSEJmYr3Q5f5RjXqjqQJ7jqEj7jqEj7jqEj7jqEj7jqEj7jqE
      required:
        - funder
        - mint
        - symbol
        - amount
        - amountRaw
        - decimals
        - signature
        - timestamp
        - date
        - slot
        - explorerUrl
    Error:
      type: object
      properties:
        error:
          type: string
          description: Thông báo lỗi
          example: Địa chỉ ví không hợp lệ
        code:
          type: integer
          description: Mã trạng thái HTTP
          example: 400
        details:
          type: string
          description: Chi tiết bổ sung về lỗi
          example: '''invalid-address'' không phải là địa chỉ Solana hợp lệ'
      required:
        - error
        - code
  responses:
    BadRequest:
      description: Tham số yêu cầu không hợp lệ
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Địa chỉ ví không hợp lệ
            code: 400
            details: '''invalid-address'' không phải là địa chỉ Solana hợp lệ'
    Unauthorized:
      description: Thiếu khóa API hoặc khóa API không hợp lệ
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Cần có khóa API. Truyền qua ?api-key=xxx hoặc tiêu đề X-Api-Key
            code: 401
    RateLimited:
      description: Đã vượt quá giới hạn tốc độ.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: RATE_LIMIT_EXCEEDED
            code: 429
            details: Quá nhiều yêu cầu. Hãy thử lại sau 2 giây.
    InternalError:
      description: Lỗi máy chủ tạm thời. Có thể thử lại với cơ chế lùi theo cấp số nhân.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: INTERNAL_ERROR
            code: 500
            details: Đã xảy ra lỗi không mong muốn. Vui lòng thử lại.
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: Khóa API được truyền dưới dạng tham số truy vấn
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-Api-Key
      description: Khóa API được truyền trong tiêu đề yêu cầu

````