# Get ChicksX SDK Script

Retrieves the ChicksX SDK JavaScript file with embedded configuration. This script should be embedded in your client-side application using a `` tag.

This endpoint does not require merchant authentication headers as it's meant to be called from client-side applications.

### Example Usage

html

Endpoint: GET /sdk/chicksx.js
Version: 1.0.0

## Query parameters:

  - `clientId` (string, required)
    Your client ID
    Example: "demo-merchant"

  - `env` (string, required)
    Target environment
    Enum: "dev", "staging", "prod"

  - `baseCurrency` (string)
    Source currency code or currency reference
    Example: "cad"

  - `targetCurrency` (string)
    Target cryptocurrency code or currency reference
    Example: "usdt"

  - `baseAmount` (number)
    Amount in base currency
    Example: 100

  - `targetAmount` (number)
    Amount in target currency
    Example: 73.45

  - `paymentMethod` (string)
    Payment method identifier (e.g., interac, paypal, cash-in-mail)
    Example: "interac"

  - `walletAddress` (string)
    Cryptocurrency wallet address
    Example: "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"

## Response 500 fields (application/json):

  - `message` (string)
    Example: "Error serving script"


