dex-skills v0.1.0

Installation

Install dex-skills from npm and configure your project.

Install the Package

Terminal
npm install dex-skills

Or using other package managers:

Terminal
yarn add dex-skills
pnpm add dex-skills

Requirements

  • Node.js 18+ -- required for native fetch and crypto support
  • Peer dependencies -- none. All chain-specific libraries are bundled.
Node.js version
dex-skills requires Node.js 18 or later. The SDK uses native fetch and crypto.subtle APIs that are not available in earlier versions.

TypeScript Setup

dex-skills ships with built-in TypeScript declarations. No additional @types packages are needed. Ensure your tsconfig.json targets ES2020 or later:

tsconfig.json
{
  "compilerOptions": {
    "target": "ES2020",
    "module": "ESNext",
    "moduleResolution": "bundler",
    "strict": true
  }
}

Verify Installation

test.ts
import { createSkills } from "dex-skills";

const skills = createSkills({
  wallets: {
    solana: {
      privateKey: process.env.SOLANA_PRIVATE_KEY,
      rpcUrl: "https://api.mainnet-beta.solana.com",
    },
  },
});
console.log("dex-skills initialized successfully");