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

# List chains



## OpenAPI

````yaml /api-reference/openapi.json get /v1/external/chains
openapi: 3.0.0
info:
  title: SpacePay External API
  description: Merchant-facing SpacePay API endpoints.
  version: '1.0'
servers:
  - url: https://api.spacepay.solutions
    description: Mainnet
  - url: https://api-testnet.spacepay.solutions
    description: Testnet
security: []
tags:
  - name: External - Token Registry (Public)
  - name: External - Payments (Secret Key)
  - name: External - Withdrawals (Secret Key)
  - name: External - Wallet (Secret Key)
paths:
  /v1/external/chains:
    get:
      tags:
        - External - Token Registry (Public)
      summary: List chains
      operationId: ExternalChainsController_getAllChains
      parameters:
        - name: limit
          required: false
          in: query
          description: Number of items to return
          schema:
            minimum: 1
            maximum: 1000
            default: 100
            example: 50
            type: number
        - name: offset
          required: false
          in: query
          description: Number of items to skip
          schema:
            minimum: 0
            default: 0
            example: 0
            type: number
      responses:
        '200':
          description: Chains retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedChainDtoResult'
components:
  schemas:
    PaginatedChainDtoResult:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/ChainDto'
        pagination:
          $ref: '#/components/schemas/PaginationMetaDto'
      required:
        - data
        - pagination
    ChainDto:
      type: object
      properties:
        chainId:
          type: string
          description: CAIP-2 chain id
          example: eip155:1
        name:
          type: string
          description: Chain name
          example: Ethereum
        nativeSymbol:
          type: string
          description: Native token symbol
          example: ETH
        nativeDecimals:
          type: number
          description: Native token decimals
          example: 18
        isEnabled:
          type: boolean
          description: Whether the chain is enabled
          example: true
        isTestnet:
          type: boolean
          description: Whether the chain is a testnet
          example: false
      required:
        - chainId
        - name
        - nativeSymbol
        - nativeDecimals
        - isEnabled
        - isTestnet
    PaginationMetaDto:
      type: object
      properties:
        total:
          type: number
        limit:
          type: number
        offset:
          type: number
        hasMore:
          type: boolean
        totalPages:
          type: number
        currentPage:
          type: number
      required:
        - total
        - limit
        - offset
        - hasMore
        - totalPages
        - currentPage

````