eckoDEX SDK
Initializing a eckoDEX SDK client
import { KaddexSdk } from 'kaddex-sdk';
const kaddex = new KaddexSdk({ account, secretKey: );
await kaddex.swap({ ... });import dotenv from 'dotenv';
import { KaddexSdk } from 'kaddex-sdk';
dotenv.config();
const PUBLIC_KEY = process.env.PUBLIC_KEY;
const SECRET_KEY = process.env.SECRET_KEY;
// if your account name is different from your PUBLIC_KEY, use the correct value here
const account = await retrieveVerifiedAccount({ accountName: PUBLIC_KEY });
const kaddex = new KaddexSdk({ account, secretKey: SECRET_KEY });
await kaddex.swap({ ... });Last updated
