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

# Group wallets by shared funding ancestor

> Given a set of wallets, returns clusters of wallets that share a
common funding ancestor within `depth` levels. The single most
useful funding primitive — bubblemap clustering, sniper-farm
detection, and "wallets bought from the same dispenser" all reduce
to this.

Wallets with no shared ancestor end up in `unclustered`. If any
wallet has no observed funding at all, it is added to
`enrichmentEnqueued` and a background RPC backfill is kicked off
for the next request.




## OpenAPI

````yaml openapi-spec/history.yaml get /api/sol/funding/cluster
openapi: 3.0.3
info:
  title: Raze Database API
  description: >
    Paid subscription API for Solana transaction data and history.


    Also hosts write utilities (`/utils/sol/*`): token launch, transfer, burn,

    consolidate, fees claim/config, and agent initialize — previously on

    `router.raze.bot`. Mixer/distribute removed 2026-07-25.


    ## Batch Requests

    All endpoints with path parameters (mint, signer, address, tokenMint,
    ownerAddress) support batch queries

    via comma-separated values. For example:
    `/api/sol/trades/mint/mint1,mint2,mint3?limit=50`


    - Maximum 10 values per batch request

    - Each value must be a valid address (>= 32 characters)

    - Single values behave identically to non-batch requests

    - Batch response format: `{ "success": true, "results": { "value1": {...},
    "value2": {...} }, "count": N, "timestamp": "..." }`

    - Each key in `results` contains the full single-entity response

    - Queries run in parallel for maximum performance
  version: 1.0.0
servers:
  - url: https://api.raze.bot
    description: >-
      Raze global History API — GeoDNS routes to the nearest region
      automatically
security:
  - ApiKeyAuth: []
paths:
  /api/sol/funding/cluster:
    get:
      summary: Group wallets by shared funding ancestor
      description: |
        Given a set of wallets, returns clusters of wallets that share a
        common funding ancestor within `depth` levels. The single most
        useful funding primitive — bubblemap clustering, sniper-farm
        detection, and "wallets bought from the same dispenser" all reduce
        to this.

        Wallets with no shared ancestor end up in `unclustered`. If any
        wallet has no observed funding at all, it is added to
        `enrichmentEnqueued` and a background RPC backfill is kicked off
        for the next request.
      operationId: fundingCluster
      parameters:
        - name: wallets
          in: query
          required: true
          schema:
            type: string
          description: One or more wallet addresses (comma-separated, max 150).
        - name: depth
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 5
            default: 2
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FundingClusterResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    FundingClusterResponse:
      type: object
      properties:
        success:
          type: boolean
        clusters:
          type: array
          items:
            type: object
            properties:
              rootFunder:
                type: string
                description: Funder shared by all wallets in this cluster.
              depth:
                type: integer
                description: Levels of indirection to reach the shared funder.
              wallets:
                type: array
                items:
                  type: string
        unclustered:
          type: array
          items:
            type: string
          description: >-
            Input wallets that don't share a funder with any other wallet in the
            request.
        enrichmentEnqueued:
          type: array
          items:
            type: string
        noiseDropped:
          type: integer
          description: Count of high-fan-out (noise) funders dropped from clustering.
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        code:
          type: string
        success:
          type: boolean
      example:
        error: Unauthorized
        message: Invalid API key
        code: INVALID_KEY
        success: false
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: query
      name: apiKey

````