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

# getFundingCluster RPC Method

> Trace who funded a wallet, or who it funded, up to three hops, as a graph with shared funders flagged. getFundingCluster RPC parameters and examples.

Map the money behind a wallet with **getFundingCluster**. Starting from one wallet, it walks the earliest SOL transfers in, out or both ways and returns the edges, every wallet reached, degree stats per wallet, and `hubs`: wallets that funded two or more others in the graph.

* `direction: "in"` (default) finds who funded the wallet, `"out"` finds the wallets it funded, and `"both"` expands both ways at every hop.
* Caps: `maxDepth` up to 3 (default 2), `limitPerWallet` up to 16 (default 8), `maxEdges` up to 256 (default 128), `maxWalletsPerLevel` up to 32 (default 16), and at most 96 wallets expanded per call. Larger values are lowered to the cap, and the `applied` field shows what was used.
* `truncatedAtEdgeCap` or `truncatedAtVisitedCap` is set when the walk stopped at a cap.
* SOL transfers below `minSolAmount` (default 0.001 SOL) are ignored. Set `includeSplTokens`, or a `mint`, to follow token transfers too.
* System programs, sysvars, token programs and Jito tip accounts are skipped by default (`excludeKnownAddresses`).

Each call costs 5 credits and counts against the Cluster RPS limit, which `getFundingCluster` shares with `getTokenTransferCluster`.

Request setup and error handling: [RPC quickstart](https://docs.solanatracker.io/solana-rpc/quickstart.md). Billing: [credits and limits](https://docs.solanatracker.io/solana-rpc/credits-and-rate-limits.md).


## OpenAPI

````yaml getfundingcluster post /
openapi: 3.1.0
info:
  title: Solana RPC
  version: 1.0.0
  description: Solana RPC HTTP method reference.
servers:
  - url: https://rpc-mainnet.solanatracker.io
    description: Mainnet RPC endpoint
security: []
paths:
  /:
    post:
      summary: getFundingCluster
      description: >-
        Trace who funded a wallet, or who it funded, up to three hops, returned
        as a graph with shared funders flagged.
      operationId: getfundingcluster
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  allOf:
                    - type: string
                      enum:
                        - '2.0'
                      description: The JSON-RPC protocol version.
                      example: '2.0'
                id:
                  allOf:
                    - type: string
                      description: A unique identifier for the request.
                      example: '1'
                method:
                  allOf:
                    - type: string
                      enum:
                        - getFundingCluster
                      description: The name of the RPC method to invoke.
                      example: getFundingCluster
                params:
                  allOf:
                    - type: array
                      description: A single configuration object.
                      default:
                        - wallet: 7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw
                          direction: in
                          maxDepth: 2
                          minSolAmount: 0.001
                      items:
                        type: object
                        description: >-
                          Cluster configuration. Values above a cap are lowered
                          to the cap; the `applied` field of the result shows
                          what was used.
                        required:
                          - wallet
                        properties:
                          wallet:
                            type: string
                            description: The wallet to start from. Required.
                            example: 7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw
                          direction:
                            type: string
                            enum:
                              - in
                              - out
                              - both
                            description: >-
                              `in` (default) walks to the wallets that funded
                              it, `out` to the wallets it funded, `both` does
                              both at every hop.
                            example: in
                          maxDepth:
                            type: integer
                            maximum: 3
                            description: Hops to walk. Default 2, at most 3.
                            example: 2
                          limitPerWallet:
                            type: integer
                            minimum: 1
                            maximum: 16
                            description: >-
                              Earliest transfers read per wallet at each hop.
                              Default 8, at most 16.
                            example: 8
                          maxEdges:
                            type: integer
                            maximum: 256
                            description: >-
                              Stop after this many sender-to-receiver edges.
                              Default 128, at most 256.
                            example: 128
                          maxWalletsPerLevel:
                            type: integer
                            maximum: 32
                            description: >-
                              Wallets expanded at each hop. Default 16, at most
                              32.
                            example: 16
                          minSolAmount:
                            type: number
                            description: >-
                              Smallest SOL transfer that counts as funding, in
                              SOL. Default 0.001.
                            example: 0.001
                          includeSplTokens:
                            type: boolean
                            description: Also follow SPL token transfers. Default false.
                            example: false
                          mint:
                            type: string
                            description: >-
                              Follow token transfers of this mint only. Setting
                              it turns on `includeSplTokens`.
                          minTokenUiAmount:
                            type: number
                            description: >-
                              Smallest token transfer that counts, in UI units.
                              Default 1. Applies when token transfers are
                              followed.
                          excludeKnownAddresses:
                            type: boolean
                            description: >-
                              Skip system programs, sysvars, token programs and
                              Jito tip accounts. Default true.
                            example: true
                          blockTime:
                            type: object
                            description: >-
                              Only transfers inside this time range, in Unix
                              seconds. Values of 100000000000 or more are read
                              as milliseconds.
                            properties:
                              gte:
                                type: integer
                                description: Greater than or equal to this Unix time.
                              gt:
                                type: integer
                                description: Greater than this Unix time.
                              lte:
                                type: integer
                                description: Less than or equal to this Unix time.
                              lt:
                                type: integer
                                description: Less than this Unix time.
                            example:
                              gte: 1704067200
              required:
                - jsonrpc
                - id
                - method
                - params
            examples:
              whoFunded:
                summary: Who funded a wallet, two hops back
                value:
                  jsonrpc: '2.0'
                  id: 1
                  method: getFundingCluster
                  params:
                    - wallet: 7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw
                      direction: in
                      maxDepth: 2
                      limitPerWallet: 8
                      maxEdges: 128
                      minSolAmount: 0.001
                      includeSplTokens: false
                      excludeKnownAddresses: true
              bundlerSpray:
                summary: Who a funder sent SOL to
                value:
                  jsonrpc: '2.0'
                  id: 1
                  method: getFundingCluster
                  params:
                    - wallet: 7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw
                      direction: out
                      maxDepth: 2
                      limitPerWallet: 16
                      maxEdges: 256
                      minSolAmount: 0.05
              bothWaysUsdc:
                summary: Both directions, following USDC too
                value:
                  jsonrpc: '2.0'
                  id: 1
                  method: getFundingCluster
                  params:
                    - wallet: 7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw
                      direction: both
                      maxDepth: 1
                      mint: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
                      minTokenUiAmount: 10
      responses:
        '200':
          description: Successfully built the funding graph.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        enum:
                          - '2.0'
                        description: The JSON-RPC protocol version.
                        example: '2.0'
                  id:
                    allOf:
                      - type: string
                        description: Identifier matching the request.
                        example: '1'
                  result:
                    allOf:
                      - type: object
                        description: The funding graph.
                        properties:
                          wallet:
                            type: string
                            description: The starting wallet.
                            example: 7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw
                          direction:
                            type: string
                            enum:
                              - in
                              - out
                              - both
                            description: Direction walked.
                          edges:
                            type: array
                            description: >-
                              One edge per sender and receiver pair: the
                              earliest qualifying transfer between them.
                            items:
                              type: object
                              properties:
                                sender:
                                  type: string
                                  description: Wallet that sent the funds.
                                receiver:
                                  type: string
                                  description: Wallet that received them.
                                depth:
                                  type: integer
                                  description: >-
                                    Hop at which the edge was found, starting at
                                    1.
                                  example: 1
                                age:
                                  type: object
                                  description: Time of the transfer.
                                  properties:
                                    blockTime:
                                      type: integer
                                      description: Unix time in seconds.
                                      example: 1775359465
                                    time:
                                      type: string
                                      description: The same time as an ISO 8601 UTC string.
                                      example: '2026-04-05T03:24:25Z'
                                transfer:
                                  type: object
                                  description: >-
                                    The transfer behind the edge. `direction` is
                                    relative to the wallet being expanded.
                                  properties:
                                    signature:
                                      type: string
                                      description: >-
                                        Signature of the transaction that
                                        carried the transfer.
                                      example: >-
                                        3cKcTTWWuVbqz1hVfEp9pvkmr2AyJ2rcd6XB2nGNpTwWUPzby5vgwvqLCe1vdwvxvemEjwMUiaaneWnxSJHRLgUy
                                    transferType:
                                      type: string
                                      enum:
                                        - sol
                                        - spl
                                      description: >-
                                        `sol` for a native SOL transfer, `spl`
                                        for an SPL Token or Token-2022 transfer.
                                      example: spl
                                    mint:
                                      type: string
                                      description: Token mint. Omitted for native SOL.
                                      example: >-
                                        EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
                                    amount:
                                      type: string
                                      description: >-
                                        Raw amount in the token's smallest unit
                                        (lamports for SOL).
                                      example: '25000000'
                                    decimals:
                                      type: integer
                                      description: Decimals of the token. 9 for SOL.
                                      example: 6
                                    uiAmount:
                                      type: number
                                      description: Amount adjusted for decimals.
                                      example: 25
                                    uiAmountString:
                                      type: string
                                      description: >-
                                        Amount adjusted for decimals, as a
                                        string.
                                      example: '25'
                                    blockTime:
                                      type: integer
                                      description: Unix time of the block, in seconds.
                                      example: 1775359465
                                    slot:
                                      type: integer
                                      description: >-
                                        Slot of the transaction. Omitted when
                                        unknown.
                                      example: 411108200
                                    from:
                                      type: string
                                      description: >-
                                        Sending account: the wallet for SOL, the
                                        source token account for SPL.
                                      example: >-
                                        Nk1puL17T9eBPhuyqhEySZwtibaXGtub9p4vQbDzyaTe
                                    to:
                                      type: string
                                      description: >-
                                        Receiving account: the wallet for SOL,
                                        the destination token account for SPL.
                                      example: >-
                                        unCXNAGDBSRWdUSDyBuiyf3ySWdhSmXkZHQbxUos3SBt
                                    fromOwner:
                                      type: string
                                      description: >-
                                        Wallet that owns `from`. Equal to `from`
                                        for SOL. Omitted when unknown.
                                      example: >-
                                        2PX7YQU1Yvps44L9iMVZQpjGWKDBZNVE5wf3mPA6xfPa
                                    toOwner:
                                      type: string
                                      description: >-
                                        Wallet that owns `to`. Equal to `to` for
                                        SOL. Omitted when unknown.
                                      example: >-
                                        7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw
                                    direction:
                                      type: string
                                      enum:
                                        - in
                                        - out
                                      description: >-
                                        Direction relative to the queried
                                        wallet.
                                      example: in
                          wallets:
                            type: array
                            items:
                              type: string
                            description: >-
                              Every wallet in the graph, including the starting
                              wallet.
                          nodes:
                            type: array
                            description: Degree stats for every wallet in `wallets`.
                            items:
                              type: object
                              properties:
                                wallet:
                                  type: string
                                  description: Wallet address.
                                inDegree:
                                  type: integer
                                  description: Edges into this wallet.
                                outDegree:
                                  type: integer
                                  description: Edges out of this wallet.
                                uniqueCounterparties:
                                  type: integer
                                  description: >-
                                    Distinct wallets it funded plus distinct
                                    wallets that funded it.
                                isHub:
                                  type: boolean
                                  description: >-
                                    True when it funded two or more wallets in
                                    the graph.
                          hubs:
                            type: array
                            items:
                              type: string
                            description: >-
                              Wallets that funded two or more others in the
                              graph: the shared-funder signal.
                          walletsVisited:
                            type: integer
                            description: Wallets expanded during the walk. At most 96.
                            example: 3
                          maxDepthReached:
                            type: integer
                            description: Deepest hop that produced an edge.
                            example: 2
                          applied:
                            type: object
                            description: Settings used after caps and defaults.
                            properties:
                              direction:
                                type: string
                              maxDepth:
                                type: integer
                              limitPerWallet:
                                type: integer
                              maxEdges:
                                type: integer
                              maxWalletsPerLevel:
                                type: integer
                          truncatedAtEdgeCap:
                            type: boolean
                            description: >-
                              Present and true when the walk stopped at
                              `maxEdges`.
                          truncatedAtVisitedCap:
                            type: boolean
                            description: >-
                              Present and true when the walk stopped at 96
                              visited wallets.
              examples:
                cluster:
                  summary: A two-hop funding graph with one hub
                  value:
                    jsonrpc: '2.0'
                    id: 1
                    result:
                      wallet: 7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw
                      direction: in
                      edges:
                        - sender: PDyRALjPQA7iy6FtP3vfSadtU8eib73hfmN9z5xXfE8a
                          receiver: 7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw
                          depth: 1
                          age:
                            blockTime: 1714478213
                            time: '2024-04-30T11:56:53Z'
                          transfer:
                            signature: >-
                              dLnfzgS4Zhfc18PaBcmxPvpfCmD2XLtUeBkBVAL2C14tauH84T6SihUGYJRwvHYfSWs6jHE9CCyyEvynGuuXeMXV
                            transferType: sol
                            amount: '2000000000'
                            decimals: 9
                            uiAmountString: '2'
                            uiAmount: 2
                            blockTime: 1714478213
                            slot: 263114522
                            from: PDyRALjPQA7iy6FtP3vfSadtU8eib73hfmN9z5xXfE8a
                            to: 7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw
                            direction: in
                        - sender: Xhn7Gp1AEPB1BWaGj8SMSRX74WGhKn9RCcuQeXUBDiDk
                          receiver: PDyRALjPQA7iy6FtP3vfSadtU8eib73hfmN9z5xXfE8a
                          depth: 2
                          age:
                            blockTime: 1714471020
                            time: '2024-04-30T09:57:00Z'
                          transfer:
                            signature: >-
                              4x5EjYD6YXfE4tFuCgdWii5DWxHEtmvYFbdAfgvizNnwGHPmaxFKZdr1GxvAshXE8JDz4R81Z72eYEAsvGn4338J
                            transferType: sol
                            amount: '5000000000'
                            decimals: 9
                            uiAmountString: '5'
                            uiAmount: 5
                            blockTime: 1714471020
                            slot: 263098101
                            from: Xhn7Gp1AEPB1BWaGj8SMSRX74WGhKn9RCcuQeXUBDiDk
                            to: PDyRALjPQA7iy6FtP3vfSadtU8eib73hfmN9z5xXfE8a
                            direction: in
                        - sender: Xhn7Gp1AEPB1BWaGj8SMSRX74WGhKn9RCcuQeXUBDiDk
                          receiver: Ec6ieBmbmrAEJMBaJcmDA9osKyFtvAUWYyeCADvYg3Yx
                          depth: 2
                          age:
                            blockTime: 1714471322
                            time: '2024-04-30T10:02:02Z'
                          transfer:
                            signature: >-
                              uvaasEj4iaCBUZkkymsdZCZadarpxVQPkyDAXjHoWK61ESzUoiCKAWmmacseALFoGp42yPHJYZUcFjbgpk1nDjyM
                            transferType: sol
                            amount: '5000000000'
                            decimals: 9
                            uiAmountString: '5'
                            uiAmount: 5
                            blockTime: 1714471322
                            slot: 263098790
                            from: Xhn7Gp1AEPB1BWaGj8SMSRX74WGhKn9RCcuQeXUBDiDk
                            to: Ec6ieBmbmrAEJMBaJcmDA9osKyFtvAUWYyeCADvYg3Yx
                            direction: in
                      wallets:
                        - 7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw
                        - Ec6ieBmbmrAEJMBaJcmDA9osKyFtvAUWYyeCADvYg3Yx
                        - PDyRALjPQA7iy6FtP3vfSadtU8eib73hfmN9z5xXfE8a
                        - Xhn7Gp1AEPB1BWaGj8SMSRX74WGhKn9RCcuQeXUBDiDk
                      nodes:
                        - wallet: 7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw
                          inDegree: 1
                          outDegree: 0
                          uniqueCounterparties: 1
                          isHub: false
                        - wallet: Ec6ieBmbmrAEJMBaJcmDA9osKyFtvAUWYyeCADvYg3Yx
                          inDegree: 1
                          outDegree: 0
                          uniqueCounterparties: 1
                          isHub: false
                        - wallet: PDyRALjPQA7iy6FtP3vfSadtU8eib73hfmN9z5xXfE8a
                          inDegree: 1
                          outDegree: 1
                          uniqueCounterparties: 2
                          isHub: false
                        - wallet: Xhn7Gp1AEPB1BWaGj8SMSRX74WGhKn9RCcuQeXUBDiDk
                          inDegree: 0
                          outDegree: 2
                          uniqueCounterparties: 2
                          isHub: true
                      hubs:
                        - Xhn7Gp1AEPB1BWaGj8SMSRX74WGhKn9RCcuQeXUBDiDk
                      walletsVisited: 3
                      maxDepthReached: 2
                      applied:
                        direction: in
                        maxDepth: 2
                        limitPerWallet: 8
                        maxEdges: 128
                        maxWalletsPerLevel: 16
        '400':
          description: Bad Request - Invalid request parameters or malformed request.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        enum:
                          - '2.0'
                        description: The JSON-RPC protocol version.
                        example: '2.0'
                  error:
                    allOf:
                      - type: object
                        properties:
                          code:
                            type: integer
                            description: The error code.
                            example: -32602
                          message:
                            type: string
                            description: The error message.
                          data:
                            type: object
                            description: Additional data about the error.
                  id:
                    allOf:
                      - type: string
                        description: Identifier matching the request.
                        example: '1'
                refIdentifier: '#/components/schemas/ErrorResponse'
              examples:
                invalidParams:
                  summary: Missing wallet or wrong field type
                  value:
                    jsonrpc: '2.0'
                    error:
                      code: -32602
                      message: Invalid params
                    id: 1
                badDirection:
                  summary: Unknown direction
                  value:
                    jsonrpc: '2.0'
                    error:
                      code: -32602
                      message: direction must be in, out, or both (got sideways)
                    id: 1
        '401':
          description: Unauthorized - Invalid or missing API key.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        enum:
                          - '2.0'
                        description: The JSON-RPC protocol version.
                        example: '2.0'
                  error:
                    allOf:
                      - type: object
                        properties:
                          code:
                            type: integer
                            description: The error code.
                            example: -32602
                          message:
                            type: string
                            description: The error message.
                          data:
                            type: object
                            description: Additional data about the error.
                  id:
                    allOf:
                      - type: string
                        description: Identifier matching the request.
                        example: '1'
                refIdentifier: '#/components/schemas/ErrorResponse'
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    error:
                      code: -32001
                      message: Unauthorized
                    id: 1
        '429':
          description: Too Many Requests - Rate limit exceeded.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        enum:
                          - '2.0'
                        description: The JSON-RPC protocol version.
                        example: '2.0'
                  error:
                    allOf:
                      - type: object
                        properties:
                          code:
                            type: integer
                            description: The error code.
                            example: -32602
                          message:
                            type: string
                            description: The error message.
                          data:
                            type: object
                            description: Additional data about the error.
                  id:
                    allOf:
                      - type: string
                        description: Identifier matching the request.
                        example: '1'
                refIdentifier: '#/components/schemas/ErrorResponse'
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    error:
                      code: -32005
                      message: Too many requests
                    id: 1
        '500':
          description: Internal Server Error - An error occurred on the server.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        enum:
                          - '2.0'
                        description: The JSON-RPC protocol version.
                        example: '2.0'
                  error:
                    allOf:
                      - type: object
                        properties:
                          code:
                            type: integer
                            description: The error code.
                            example: -32602
                          message:
                            type: string
                            description: The error message.
                          data:
                            type: object
                            description: Additional data about the error.
                  id:
                    allOf:
                      - type: string
                        description: Identifier matching the request.
                        example: '1'
                refIdentifier: '#/components/schemas/ErrorResponse'
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    error:
                      code: -32603
                      message: Internal error
                    id: 1
        '503':
          description: Service Unavailable - The service is temporarily unavailable.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        enum:
                          - '2.0'
                        description: The JSON-RPC protocol version.
                        example: '2.0'
                  error:
                    allOf:
                      - type: object
                        properties:
                          code:
                            type: integer
                            description: The error code.
                            example: -32602
                          message:
                            type: string
                            description: The error message.
                          data:
                            type: object
                            description: Additional data about the error.
                  id:
                    allOf:
                      - type: string
                        description: Identifier matching the request.
                        example: '1'
                refIdentifier: '#/components/schemas/ErrorResponse'
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    error:
                      code: -32002
                      message: Service unavailable
                    id: 1
        '504':
          description: Gateway Timeout - The request timed out.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        enum:
                          - '2.0'
                        description: The JSON-RPC protocol version.
                        example: '2.0'
                  error:
                    allOf:
                      - type: object
                        properties:
                          code:
                            type: integer
                            description: The error code.
                            example: -32602
                          message:
                            type: string
                            description: The error message.
                          data:
                            type: object
                            description: Additional data about the error.
                  id:
                    allOf:
                      - type: string
                        description: Identifier matching the request.
                        example: '1'
                refIdentifier: '#/components/schemas/ErrorResponse'
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    error:
                      code: -32003
                      message: Gateway timeout
                    id: 1
      security:
        - ApiKeyQuery: []
components:
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key

````

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