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

# 获取钱包资金

> 发现哪些地址为Solana钱包提供了初始SOL存款。

每个请求需要 **100 积分**。

需要付费方案。免费方案的请求返回 `403 Forbidden`。

## 请求参数

<ParamField body="wallet" type="string" required default="86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY">
  Solana 钱包地址（base58 编码）
</ParamField>


## OpenAPI

````yaml zh/openapi/wallet-api/openapi.yaml GET /v1/wallet/{wallet}/funded-by
openapi: 3.0.3
info:
  title: Wallet API
  description: |
    一个高性能的REST API，用于查询Solana钱包数据，包括余额、交易记录、转账和身份信息。

    ## 认证

    所有请求都需要通过以下方式传递API密钥：
    - 查询参数：`?api-key=YOUR_API_KEY`
    - 头：`X-Api-Key: YOUR_API_KEY`
  version: 1.0.0
  contact:
    name: API支持
    url: https://helius.dev
servers:
  - url: https://api.helius.xyz
    description: 生产服务器
security:
  - ApiKeyQuery: []
  - ApiKeyHeader: []
tags:
  - name: Identity
    description: 查找钱包身份和已知地址
  - name: Balances
    description: 查询代币和NFT余额
  - name: History
    description: 交易历史和余额变动
  - name: Transfers
    description: 代币转账活动
  - name: Funding
    description: 钱包资金信息
paths:
  /v1/wallet/{wallet}/funded-by:
    get:
      tags:
        - Funding
      summary: 获取钱包资金来源
      description: 通过分析钱包的第一个接收的SOL转账来发现其原始资金来源。有助于识别钱包是由交易所、其他钱包等资助的。
      operationId: getWalletFundingSource
      parameters:
        - name: wallet
          in: path
          required: true
          description: Solana钱包地址（base58编码）
          schema:
            type: string
            pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
            default: 86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY
          example: 86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY
      responses:
        '200':
          description: 资金来源已识别
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FundingSource'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: 未找到资金交易
          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: 最初为此钱包提供资金的地址
          example: 2ojv9BAiHUrvsm9gxDe7fJSzbNZSJcxZvf8dqmWGHG8S
        funderName:
          type: string
          nullable: true
          description: 如果是已知实体，提供资金者的名称
          example: Coinbase 2
        funderType:
          type: string
          nullable: true
          description: 提供资金实体的类型
          example: exchange
        mint:
          type: string
          description: 代币铸造地址（对于SOL为So11111111111111111111111111111111111111112）
          example: So11111111111111111111111111111111111111112
        symbol:
          type: string
          description: 代币符号
          example: SOL
        amount:
          type: number
          description: 初始资金金额（可读，单位为SOL）
          example: 0.05
        amountRaw:
          type: string
          description: 最小单位的原始资金金额（SOL的lamports）
          example: '50000000'
        decimals:
          type: integer
          description: 代币小数位数
          example: 9
        signature:
          type: string
          description: 资金转移的交易签名
          example: 5wHu1qwD7Jsj3xqWjdSEJmYr3Q5f5RjXqjqQJ7jqEj7jqEj7jqEj7jqEj7jqEj7jqE
        timestamp:
          type: integer
          description: 以秒为单位的Unix时间戳
          example: 1704067200
        date:
          type: string
          format: date-time
          description: ISO 8601格式的人类可读UTC日期
          example: '2024-01-01T00:00:00.000Z'
        slot:
          type: integer
          description: 槽号
          example: 250000000
        explorerUrl:
          type: string
          description: 交易的Solana Explorer URL
          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: 错误信息
          example: 无效的钱包地址
        code:
          type: integer
          description: HTTP状态代码
          example: 400
        details:
          type: string
          description: 附加错误详情
          example: '''invalid-address'' 不是有效的 Solana 地址'
      required:
        - error
        - code
  responses:
    BadRequest:
      description: 无效的请求参数
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: 无效的钱包地址
            code: 400
            details: '''invalid-address''不是有效的Solana地址'
    Unauthorized:
      description: 缺少或无效的API密钥
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: 需要API密钥。通过?api-key=xxx或X-Api-Key头传递
            code: 401
    RateLimited:
      description: 超出速率限制。
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: RATE_LIMIT_EXCEEDED
            code: 429
            details: 请求过多。请在 2 秒后重试。
    InternalError:
      description: 临时服务器错误。可以使用指数退避重试。
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: INTERNAL_ERROR
            code: 500
            details: 发生意外错误。请重试。
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: 作为查询参数传递的API密钥
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-Api-Key
      description: 在请求头中传递的API密钥

````