dex-skills
A unified SDK for interacting with DEX launchpad platforms across multiple blockchains. Launch tokens, buy and sell tokens, query token data, track trending tokens, and more through a single, consistent interface.
Supported Platforms
| Platform | Chain | Launch | Buy/Sell | Query | Trending |
|---|---|---|---|---|---|
| Pump.fun | Solana | Yes | Yes | Yes | Yes |
| LetsBonk | Solana | Yes | Yes | Yes | -- |
| Moonshot | Solana | Yes | Yes | Yes | Yes |
| Zora | Base | Yes | Yes | Yes | Yes |
| Clanker | Base | Yes | Yes | Yes | Yes |
| Four.meme | BNB | Yes | Yes | Yes | -- |
| SunPump | TRON | Yes | Yes | Yes | Yes |
Quick Example
example.ts
import { createSkills, getSkill } from "dex-skills";
const skills = createSkills({
wallets: {
solana: {
privateKey: "base58_private_key",
rpcUrl: "https://api.mainnet-beta.solana.com",
},
},
});
// Launch a token on Pump.fun
const result = await getSkill(skills, "pumpfun").launch({
name: "My Token",
symbol: "MTK",
description: "A test token",
initialBuyAmount: "0.1",
links: { twitter: "https://x.com/mytoken" },
});
console.log(result.tokenAddress, result.txHash);
// Query token info (no private key needed for reads)
const info = await getSkill(skills, "pumpfun").getTokenInfo("TokenMintAddress...");
console.log(info.price, info.marketCap, info.bondingCurveProgress);
// List recent tokens
const tokens = await getSkill(skills, "pumpfun").listTokens({ limit: 10 });
// Buy tokens
const buyResult = await getSkill(skills, "pumpfun").buy({
tokenAddress: "TokenMintAddress...",
amount: "0.1",
slippage: 10,
});
// Get trending tokens
const trending = await getSkill(skills, "pumpfun").getTrending({ category: "gainers", limit: 20 }); Features
- Multi-chain support -- Solana, Base, BNB, and TRON from a single SDK
- Token trading -- buy and sell tokens on all 7 platforms with configurable slippage
- Trending tokens -- discover trending tokens by gainers, volume, new, or graduated
- Trade history and holders -- view trade history, token holders, and price estimates
- Multiple integration formats -- SDK, MCP, Function Calling, OpenClaw, OpenAPI
- Read-only queries without keys -- query token data, trending, trade history, and holders with no wallet required
- Type-safe TypeScript -- full type definitions for all parameters and responses