solana-meme-sdk
v1.0.2
Published
Solana Meme Token SDK - DEX Trading, Token Creation, and Bundle Services
Maintainers
Readme
Solana Meme SDK
English
A comprehensive TypeScript SDK for Solana meme token trading, creation, and bundle services. Optimized for speed, reliability, and high-density multi-wallet execution.
✨ Key Features
- 📂 DEX Support: Integrated with Pump.fun, Raydium (AMM/CLMM), Orca (Whirlpool), Meteora (DLMM), Jupiter (Aggregator), and PumpSwap.
- 📦 Batch Executor: High-density atomic batch swaps supporting up to 50+ wallets in a single transaction.
- ⚡ Jito & Nozomi: Native support for Jito Bundles and Nozomi acceleration to bypass network congestion.
- 🪙 Token Launch: Unified API for SPL/Token-2022 creation, metadata uploading (IPFS/Arweave), and minting.
- 🔍 LP Inspector: Real-time detection of token liquidity status across all major DEXs.
- 🛠️ Utility Pro: Advanced Address Lookup Table (ALT) management and balance/transfer helpers.
⚙️ Installation & Configuration
npm install solana-meme-sdkCRITICAL: You must add these overrides to your root package.json to handle mandatory dependency resolution:
{
"overrides": {
"@noble/hashes": "^1.8.0",
"bigint-buffer": "npm:[email protected]",
"@solana/spl-token-registry": { "cross-fetch": "3.2.0" },
"node-fetch": "2.7.0"
}
}📖 API Reference
1. DEX Operations (solana-meme-sdk/dex)
- Pump.fun:
getPumpBondingCurve(mint),signPumpBuy(params),signPumpSell(params) - Raydium:
RaydiumAMMclient for swap/liquidity on V4 pools. - Orca:
WhirlpoolClientfor concentrated liquidity operations. - Meteora:
DLMMClientfor dynamic fee and position management. - Jupiter:
JupiterAggregatorfor best-price routing and token pricing. - BlockRazor:
BlockRazorClientfor high-performance landing, sandwich mitigation, and gRPC Geyser data streams.
2. Batch Executor (solana-meme-sdk/batch-executor)
Optimized for multi-wallet simultaneous trades using a specialized on-chain program.
BatchExecutorclass:buildBatchPumpBuyTx(params)/buildBatchPumpSellTx(params)buildBatchRaydiumSwapTx(params, accounts)buildBatchMeteoraSwapTx(params, accounts, binArrays)buildBatchOrcaSwapTx(params, accounts, aToB, sqrtPriceLimit)buildBatchJupiterSwapTx(wallets, jupAccounts)executeBatchPumpBuy(params)(Helper for build + send)
3. Jito & MEV Service (solana-meme-sdk/jito)
JitoBundleClient:sendBundle(transactions),getJitoTipAccounts(),getNextJitoTipAccount()
4. Nozomi Acceleration (solana-meme-sdk/nozomi)
NozomiClient:sendTransaction(tx),sendBundle(txs),getNozomiTipAccounts()
5. Token Management (solana-meme-sdk/token)
createCompleteToken(params): One-click creation + metadata upload + initial mint.uploadMetadataToIpfs(data),uploadMetadataToArweave(data).
6. Utilities & Inspection (solana-meme-sdk/utils)
inspectSolanaTokenLP(mint): Returns platform, liquidity amount, and curve status.createALT(connection, payer, addresses),waitForALTActivation(connection, altAddress).transferSol(),transferToken(),getSolBalance(),getTokenBalances().
🚀 Example: Batch Trading (50 Wallets)
import { BatchExecutor } from 'solana-meme-sdk';
const executor = new BatchExecutor(connection, payerKeypair);
const tx = await executor.buildBatchPumpBuyTx({
tokenMint: new PublicKey('...'),
wallets: [
{ wallet: wallet1, amount: 100_000_000n, minAmountOut: 1n },
{ wallet: wallet2, amount: 200_000_000n, minAmountOut: 1n },
// ... support up to ~50 wallets
]
});
const sig = await executor.sendAndConfirm(tx);中文
集成 Solana Meme 代币交易、创建、批量执行与加速服务的综合 TypeScript SDK。
✨ 核心功能
- 📂 DEX 支持: 深度集成 Pump.fun, Raydium (AMM/CLMM), Orca (Whirlpool), Meteora (DLMM), Jupiter (Aggregator) 及 PumpSwap。
- 📦 批量执行器 (Batch Executor): 基于定制化链上程序,支持在单笔交易中为 50+ 个钱包执行原子化 Swap。
- ⚡ Jito & Nozomi: 原生支持 Jito Bundle 和 Nozomi 交易加速,有效应对网络拥堵与 MEV。
- 🪙 代币发射: 统一封装 SPL/Token-2022 创建、元数据上传 (IPFS/Arweave) 及铸造流程。
- 🔍 LP 检测器: 实时检测代币在各大 DEX 的流动性、内盘进度及池子状态。
- 🛠️ 专业工具: 高效的地址查询表 (ALT) 管理工具、资产查询及转账助手。
📖 接口文档
1. DEX 交易
- Pump.fun:
signPumpBuy/signPumpSell(单钱包快速交易)。 - Raydium: 支持 V4 AMM 的完整 Swap 逻辑。
- Jupiter:
JupiterAggregator负责最优路径路由及代币实时定价。
2. 批量交易执行器 (Batch Executor)
专为多钱包同步操作优化,利用 ALT 极大提升交易密度。
BatchExecutor方法:buildBatchPumpBuyTx/buildBatchPumpSellTx(Pump.fun)buildBatchRaydiumSwapTx(Raydium)buildBatchMeteoraSwapTx(Meteora)buildBatchJupiterSwapTx(Jupiter 聚合)executeBatchPumpBuy(快捷构建并发送)
3. Jito & Nozomi 加速
JitoBundleClient: 支持多交易 Bundle 提交及 Tip 自动分配。NozomiClient: 提供极速交易广播服务。
4. 代币管理
createCompleteToken: 一键完成代币创建、Logo/元数据上传及初始供应量铸造。
5. 工具类接口
inspectSolanaTokenLP: 输入 Mint 地址,返回所属平台、LP 详情及是否已毕业/上线。waitForALTActivation: 确保地址查询表在交易发送前已在链上激活。
🚀 代码示例:多钱包批量买入
import { BatchExecutor } from 'solana-meme-sdk';
const executor = new BatchExecutor(connection, payerKeypair);
// 为多个钱包构建批量买入指令 (Atomic)
const tx = await executor.buildBatchPumpBuyTx({
tokenMint: new PublicKey('...'),
wallets: [
{ wallet: walletA, amount: 1_000_000_000n, minAmountOut: 0n },
{ wallet: walletB, amount: 500_000_000n, minAmountOut: 0n },
// ...
]
});
// 支持搭配 Jito 或常规发送
const sig = await executor.sendAndConfirm(tx);License
MIT
