# 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 Security: ## Query parameters: - `merchantId` (string, required) Your merchant identifier Example: "demo-merchant" - `env` (string, required) Target environment Enum: "dev", "staging", "prod" - `accessToken` (string, required) Public access token obtained from /public_token/create endpoint Example: "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..." - `operationType` (string) Type of transaction operation: - buy: Buy cryptocurrency with fiat currency (default) - sell: Sell cryptocurrency for fiat currency - swap-fiat: Swap between fiat currencies - swap-crypto: Swap between cryptocurrencies Enum: "buy", "sell", "swap-fiat", "swap-crypto" - `baseCurrency` (string) Source currency code (fiat) Example: "cad" - `targetCurrency` (string) Target cryptocurrency code 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"