npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

solana-meme-sdk

v1.0.2

Published

Solana Meme Token SDK - DEX Trading, Token Creation, and Bundle Services

Readme

Solana Meme SDK

English | 中文


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-sdk

CRITICAL: 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: RaydiumAMM client for swap/liquidity on V4 pools.
  • Orca: WhirlpoolClient for concentrated liquidity operations.
  • Meteora: DLMMClient for dynamic fee and position management.
  • Jupiter: JupiterAggregator for best-price routing and token pricing.
  • BlockRazor: BlockRazorClient for 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.

  • BatchExecutor class:
    • 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