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

# Get Chain List

> Retrieve a list of supported chains, their names, and virtual machine identifiers. Raw data for the [supported chains list](/resources/chain-list).



## OpenAPI

````yaml /swap-api-reference/openapi.json get /getChainList
openapi: 3.1.0
info:
  title: Swaps API
  description: >-
    The Swaps API provides instant cross-chain swap and bridge functionality for
    decentralized applications.

    It supports multiple virtual machines (EVM, Solana, Bitcoin) and various DEX
    protocols and bridge solutions.
  version: 3.0.0
  contact:
    name: Swaps.xyz
    url: https://swaps.xyz
servers:
  - url: https://api-v2.swaps.xyz/api
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /getChainList:
    get:
      summary: Get Chain List
      description: >-
        Retrieve a list of supported chains, their names, and virtual machine
        identifiers. Raw data for the [supported chains
        list](/resources/chain-list).
      operationId: getChainList
      responses:
        '200':
          description: List of supported chains
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ChainListResponse'
      servers:
        - url: https://api-v2.swaps.xyz/api
          description: Core Swap API server
components:
  schemas:
    ChainListResponse:
      type: object
      properties:
        chainId:
          $ref: '#/components/schemas/ChainId'
        name:
          type: string
          description: Human-readable chain name
        vmId:
          $ref: '#/components/schemas/VmId'
      required:
        - chainId
        - name
        - vmId
    ChainId:
      type: integer
      description: Chain ID. Find in the list of supported networks.
    VmId:
      type: string
      enum:
        - evm
        - solana
        - alt-vm
        - hypercore
      description: Virtual machine identifier.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Limited demo key for API Reference: `5c951bc81da566bbd030ba8e20724063`.'

````