npm install @clod-sdk/coreimport { Clod } from '@clod-sdk/core';
import { Connection, Keypair } from '@solana/web3.js';
const clod = new Clod({
connection: new Connection('https://api.mainnet-beta.solana.com'),
wallet: yourWalletAdapter,
});
// Deploy a token in one call
const { mint, pool, signature } = await clod.deploy({
name: 'MyToken',
symbol: 'MTK',
image: './token-logo.png',
});
console.log(`Token deployed: ${mint.toBase58()}`);
console.log(`Pool live on Meteora: ${pool.toBase58()}`);// Deploy token with locked liquidity on Meteora DBC
const token = await clod.deploy({ name, symbol, image });
// Get real-time market data
const data = await clod.getMarketData(mintAddress);
// → { mcap, price, volume24h, liquidity, bondingProgress }
// Execute trades through the bonding curve
const tx = await clod.buy(mintAddress, solAmount);
const tx = await clod.sell(mintAddress, tokenAmount);
// Claim creator fees
const fees = await clod.getClaimableFees(walletAddress);
const tx = await clod.claimFees(mintAddress);
// Listen to real-time trades
clod.onTrade(mintAddress, (trade) => {
console.log(`${trade.type} ${trade.tokenAmount} for ${trade.solAmount} SOL`);
});┌──────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ clod-sdk │────▶│ Clod Backend │────▶│ Solana + SPL │
│ │ │ │ │ Token 2022 │
│ TypeScript │ │ REST API │ └────────┬────────┘
│ npm package │ │ WebSocket │ │
└──────────────┘ └──────────────────┘ ┌────────▼────────┐
│ Meteora Dynamic │
│ Bonding Curve │
│ │
│ Locked LP │
│ 2% Creator Fee │
└─────────────────┘
| Method | Description |
|---|---|
clod.deploy(opts) |
Deploy token with auto-created Meteora DBC pool |
clod.buy(mint, sol) |
Buy tokens through the bonding curve |
clod.sell(mint, tokens) |
Sell tokens back to the pool |
clod.getMarketData(mint) |
Fetch price, mcap, volume, liquidity |
clod.getClaimableFees(wallet) |
Check unclaimed creator fees |
clod.claimFees(mint) |
Claim accumulated trading fees |
clod.listTokens(opts) |
List all deployed tokens with filters |
clod.onTrade(mint, cb) |
Real-time trade event listener |
Every trade → 2% fee → 100% to creator wallet
No staking. No lockups. No claiming delays.
Fees arrive in your wallet automatically.
| Package | Description | Status |
|---|---|---|
@clod-sdk/core |
TypeScript SDK for Clod protocol | ✅ Published on npm |
clod-examples |
Example bots, scripts & integrations | 📋 Planned |