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

# Trader funded-by

> Returns the first inbound native-coin transfer (SOL, ETH, BNB, ...) that funded a trader wallet on the selected chain, or null when no funding record is available.

```bash theme={null}
curl "https://staging-api.struct.to/v1/trader/{address}/funded-by?chain=robinhood&chain_id=4663&fields=short" \
  -H "X-API-Key: YOUR_API_KEY"
```

```json Response (Long) theme={null}
{
  "funder": "0x92C5A42cF503b572955BcfA10E15D47cA5682387",
  "funder_type": "cex",
  "funder_name": "Binance",
  "amount": 0.5,
  "amount_raw": "500000000000000000",
  "decimals": 18,
  "name": "Ether",
  "symbol": "ETH",
  "hash": "0x1111111111111111111111111111111111111111111111111111111111111111",
  "block": 12345678,
  "timestamp": 1784216300000
}
```

```jsonc Response (Short) theme={null}
{
  "a": "0x92C5A42cF503b572955BcfA10E15D47cA5682387",
  "t": "cex",
  "f": "Binance",
  "v": 0.5,
  "r": "500000000000000000",
  "d": 18,
  "n": "Ether",
  "s": "ETH",
  "h": "0x1111111111111111111111111111111111111111111111111111111111111111",
  "b": 12345678,
  "c": 1784216300000
}
```


## OpenAPI

````yaml onchain-openapi.json GET /trader/{address}/funded-by
openapi: 3.1.0
info:
  title: Struct On-chain API
  description: >-
    RESTful API for token market data, discovery, holders, audits, and trader
    analytics across supported chains. Pass `fields=short` or header
    `x-field-names: short` for abbreviated keys. HTTP defaults to `long`. Token
    candlesticks, token trades and wallet batch trades also support
    `fields=array` for typed positional rows.
  version: 1.0.0
servers:
  - url: https://staging-api.struct.to/v1
    description: Staging
security:
  - ApiKey: []
paths:
  /trader/{address}/funded-by:
    get:
      tags:
        - Trader
      summary: Trader funded-by
      description: >-
        Returns the first inbound native-coin transfer (SOL, ETH, BNB, ...) that
        funded a trader wallet on the selected chain, or null when no funding
        record is available.
      operationId: get_trader_funded_by
      parameters:
        - name: chain
          in: query
          description: Chain name. Required unless `chain_id` is provided.
          required: false
          schema:
            type: string
          example: robinhood
        - name: chain_id
          in: query
          description: Chain id. Required unless `chain` is provided. Use `-1` for Solana.
          required: false
          schema:
            type: integer
            format: int64
          example: 4663
        - name: address
          in: path
          description: Trader wallet address.
          required: true
          schema:
            type: string
        - name: x-field-names
          in: header
          required: false
          description: >-
            Select long (full) or short (abbreviated) field names. HTTP defaults
            to `long`. Takes precedence over `fields`. See [Response
            Format](/api-reference/response-format#long-and-short-field-names).
          schema:
            type: string
            enum:
              - long
              - short
            default: long
          example: short
        - name: fields
          in: query
          required: false
          description: >-
            Same as `x-field-names`. Use `long` or `short`. HTTP defaults to
            `long`. Ignored when the header is set. `field_names` is accepted as
            an alias.
          schema:
            type: string
            enum:
              - long
              - short
            default: long
          example: short
      responses:
        '200':
          description: Funding record, or null when none is recorded
          content:
            application/json:
              schema:
                oneOf:
                  - type: 'null'
                  - $ref: '#/components/schemas/FundingData'
              examples:
                long:
                  summary: Response (Long)
                  value:
                    funder: '0x92C5A42cF503b572955BcfA10E15D47cA5682387'
                    funder_type: cex
                    funder_name: Binance
                    amount: 0.5
                    amount_raw: '500000000000000000'
                    decimals: 18
                    name: Ether
                    symbol: ETH
                    hash: >-
                      0x1111111111111111111111111111111111111111111111111111111111111111
                    block: 12345678
                    timestamp: 1784216300000
                short:
                  summary: Response (Short)
                  value:
                    a: '0x92C5A42cF503b572955BcfA10E15D47cA5682387'
                    t: cex
                    f: Binance
                    v: 0.5
                    r: '500000000000000000'
                    d: 18
                    'n': Ether
                    s: ETH
                    h: >-
                      0x1111111111111111111111111111111111111111111111111111111111111111
                    b: 12345678
                    c: 1784216300000
        '400':
          description: Validation error.
components:
  schemas:
    FundingData:
      type: object
      properties:
        funder:
          type: string
          example: '0x92C5A42cF503b572955BcfA10E15D47cA5682387'
        funder_type:
          type:
            - string
            - 'null'
          example: cex
        funder_name:
          type:
            - string
            - 'null'
          example: Binance
        amount:
          type: number
          format: double
          example: 0.5
        amount_raw:
          type: string
          example: '500000000000000000'
        decimals:
          type: integer
          format: int32
          minimum: 0
          example: 18
        name:
          type: string
          example: Ether
        symbol:
          type: string
          example: ETH
        hash:
          type: string
          example: '0x1111111111111111111111111111111111111111111111111111111111111111'
        block:
          type: integer
          format: int64
          minimum: 0
          example: 12345678
        timestamp:
          type:
            - integer
            - 'null'
          format: int64
          description: |-
            When the funding transfer confirmed, in milliseconds. Serialized as
            `timestamp`; the holders engines still send `confirmed_at`.
          example: 1784216300000
      example:
        funder: '0x92C5A42cF503b572955BcfA10E15D47cA5682387'
        funder_type: cex
        funder_name: Binance
        amount: 0.5
        amount_raw: '500000000000000000'
        decimals: 18
        name: Ether
        symbol: ETH
        hash: '0x1111111111111111111111111111111111111111111111111111111111111111'
        block: 12345678
        timestamp: 1784216300000
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: Secret API key (`sk_*`) or JWT public key (`pk_jwt_*`).

````

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