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

# Get Supported Chains & Tokens

> This endpoint will be used to get the supported chains for deposit onchain

Get the list of supported blockchain networks and tokens for deposit on-chain transactions.

## Use Case

Use this endpoint to:

* Display available crypto options to your users
* Validate chain/token combinations before initiating deposits
* Build dynamic UI for chain/token selection

## Response Format

```json theme={null}
{
  "data": {
    "POLYGON": ["USDT", "USDC"],
    "ETHEREUM": ["USDT", "USDC"],
    "CELO": ["CUSD"],
    "STELLAR": ["USDC"],
    "SOLANA": ["USDT", "USDC"],
    "TRON": ["USDT"],
    "BASE": ["USDC"]
  }
}
```

## Integration Example

```javascript theme={null}
// Fetch supported chains
const response = await fetch('https://api.kotanipay.com/api/v3/deposit/on-chain/supported-chains', {
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY'
  }
});

const { data } = await response.json();

// Display to user
Object.entries(data).forEach(([chain, tokens]) => {
  console.log(`${chain}: ${tokens.join(', ')}`);
});

// Validate user selection
function isValidSelection(chain, token) {
  return data[chain]?.includes(token) ?? false;
}

// Example
console.log(isValidSelection('POLYGON', 'USDT')); // true
console.log(isValidSelection('POLYGON', 'DAI'));  // false
```

## Notes

* Supported chains/tokens may vary by country
* Check this endpoint periodically for updates
* Some chains may have minimum amounts (check pricing)


## OpenAPI

````yaml GET /api/v3/deposit/on-chain/supported-chains
openapi: 3.0.0
info:
  title: KOTANI PAY API PLATFORM
  description: ''
  version: '3.0'
  contact: {}
servers:
  - url: https://preview.kotanipay.com
security: []
tags: []
paths:
  /api/v3/deposit/on-chain/supported-chains:
    get:
      tags:
        - DEPOSIT
      summary: Get Deposit Onchain Supported Chains
      description: >-
        This endpoint will be used to get the supported chains for deposit
        onchain
      operationId: DepositOnchainController_getSupportedChains_api/v3
      parameters: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: Deposit onchain supported chains retrieved successfully.
                  data:
                    type: object
                    properties:
                      FUSE:
                        type: array
                        example:
                          - USDT
                          - USDC
                      CELO:
                        type: array
                        example:
                          - CUSD
                      ETHEREUM:
                        type: array
                        example:
                          - USDT
                          - USDC
                      POLYGON:
                        type: array
                        example:
                          - USDC
        '400':
          description: ''
          content:
            application/json:
              schema:
                properties:
                  success:
                    type: boolean
                    example: false
                  message:
                    type: string
                    example: Bad Request
                  data:
                    type: object
                    example: {}
        '401':
          description: ''
          content:
            application/json:
              schema:
                properties:
                  success:
                    type: boolean
                    example: false
                  message:
                    type: string
                    example: Unauthorized
                  data:
                    type: object
                    example: {}
      deprecated: true
      security:
        - JWT: []
components:
  securitySchemes:
    JWT:
      scheme: bearer
      bearerFormat: JWT
      type: http

````