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

# Native coin USD prices

> Returns the current USD price of each requested chain's native coin (e.g. SOL, ETH, BNB).

```bash theme={null}
curl "https://staging-api.struct.to/v1/native-prices?chain=robinhood&chain_id=4663&chain_ids=4663%2C-1&chains=robinhood%2Csolana&fields=short" \
  -H "X-API-Key: YOUR_API_KEY"
```

```json Response (Long) theme={null}
[
  {
    "chain_id": 4663,
    "chain": "robinhood",
    "price": 2474.05
  }
]
```

```jsonc Response (Short) theme={null}
[
  {
    "ci": 4663,
    "ch": "robinhood",
    "p": 2474.05
  }
]
```


## OpenAPI

````yaml onchain-openapi.json GET /native-prices
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:
  /native-prices:
    get:
      tags:
        - Native Prices
      summary: Native coin USD prices
      description: >-
        Returns the current USD price of each requested chain's native coin
        (e.g. SOL, ETH, BNB).
      operationId: get_native_prices
      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: chain_ids
          in: query
          description: Comma-separated chain ids to look up.
          required: false
          schema:
            type: string
          example: 4663,-1
        - name: chains
          in: query
          description: Comma-separated chain names to look up (alternative to chain_ids).
          required: false
          schema:
            type: string
          example: robinhood,solana
        - 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: Native price per requested chain
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/NativePriceEntry'
              examples:
                long:
                  summary: Response (Long)
                  value:
                    - chain_id: 4663
                      chain: robinhood
                      price: 2474.05
                short:
                  summary: Response (Short)
                  value:
                    - ci: 4663
                      ch: robinhood
                      p: 2474.05
        '400':
          description: Validation error, usually an invalid chain.
components:
  schemas:
    NativePriceEntry:
      type: object
      description: |-
        One chain's native-coin USD price. `price` is null when no price is
        available for this chain yet.
      required:
        - chain_id
        - chain
      properties:
        chain_id:
          type: integer
          format: int64
        chain:
          type: string
        price:
          type:
            - number
            - 'null'
          format: double
  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.