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

> Returns metadata labels, known entity details, and owned domain names for a trader wallet.

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

```json Response (Long) theme={null}
{
  "address": "0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51",
  "type": "eoa",
  "name": "Alpha",
  "category": "trader",
  "tags": [
    "Bundler",
    "Sniper",
    "Dev"
  ],
  "domain_names": [
    "alpha.eth"
  ]
}
```

```jsonc Response (Short) theme={null}
{
  "a": "0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51",
  "t": "eoa",
  "n": "Alpha",
  "ct": "trader",
  "tg": [
    "Bundler",
    "Sniper",
    "Dev"
  ],
  "dn": [
    "alpha.eth"
  ]
}
```


## OpenAPI

````yaml onchain-openapi.json GET /trader/{address}/metadata
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}/metadata:
    get:
      tags:
        - Trader
      summary: Trader metadata
      description: >-
        Returns metadata labels, known entity details, and owned domain names
        for a trader wallet.
      operationId: get_trader_metadata
      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: token_address
          in: query
          description: Optional token address for trader-token pair labels.
          required: false
          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: Trader metadata, or null when no metadata is available
          content:
            application/json:
              schema:
                oneOf:
                  - type: 'null'
                  - $ref: '#/components/schemas/WalletMetadata'
              examples:
                long:
                  summary: Response (Long)
                  value:
                    address: '0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51'
                    type: eoa
                    name: Alpha
                    category: trader
                    tags:
                      - Bundler
                      - Sniper
                      - Dev
                    domain_names:
                      - alpha.eth
                short:
                  summary: Response (Short)
                  value:
                    a: '0x12a371444CCeBb6B64Cc35EBbC70d1d998433d51'
                    t: eoa
                    'n': Alpha
                    ct: trader
                    tg:
                      - Bundler
                      - Sniper
                      - Dev
                    dn:
                      - alpha.eth
        '400':
          description: Validation error.
components:
  schemas:
    WalletMetadata:
      type: object
      required:
        - address
        - type
        - name
        - category
        - tags
      properties:
        address:
          type: string
        type:
          type: string
        name:
          type: string
        category:
          type: string
        tags:
          type: array
          items:
            type: string
        domain_names:
          type:
            - array
            - 'null'
          items:
            type: string
  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.