@cetusprotocol/sui-clmm-sdk

中文文档
1.4.9发布于 2026/09/23Apache-2.0TypeScriptES Module零依赖近 30 天下载 4010

SDK for cetus clmm

原始使用文档
文档目录10 节
  1. Cetus-CLMM-SUI-SDK
  2. Introduction
  3. Getting Started
  4. Prerequisites
  5. SDK Initialization
  6. Network Options
  7. Important Note
  8. Typescript Doc
  9. LICENSE
  10. More About Cetus

NPM npm GitHub Repo stars


Logo

Cetus-CLMM-SUI-SDK

Integrating Cetus-CLMM-SUI-SDK: A Comprehensive Guide, Please see details in document.
Explore the document »

Introduction

Cetus-CLMM-SUI-SDK is the official software development kit (SDK) specifically designed for seamless integration with Cetus-CLMM. It provides developers with the necessary tools and resources to easily connect and interact with Cetus-CLMM, enabling the development of robust and efficient applications.

Getting Started

To integrate our SDK into your local project, please follow the example steps provided below. Please see details in document.

Prerequisites

npm i @cetusprotocol/sui-clmm-sdk

SDK Initialization

The SDK provides a convenient initialization method src/config/initCetusSDK for quick setup and configuration of the Cetus SDK.

Network Options

  • mainnet (Production Network)
  • testnet (Test Network)

Important Note

Before performing swaps or other asset-related operations, ensure:

  • A wallet is properly configured
  • The wallet has sufficient token balance for the intended operation
import { CetusClmmSDK } from '@cetusprotocol/sui-clmm-sdk'

If you would like to use the mainnet network and the official Sui rpc url, you can do so as follows:

const sdk = CetusClmmSDK.createSDK()

If you wish to set your own full node URL or network (You have the option to select either 'mainnet' or 'testnet' for the network), you can do so as follows:

const env = 'mainnet'
const full_rpc_url = 'YOUR_FULL_NODE_URL'
const wallet = 'YOUR_WALLET_ADDRESS'

const sdk = CetusClmmSDK.createSDK({ env })

If you wish to set your own full node URL or SuiGrpcClient, you can do so as follows:

const sdk = CetusClmmSDK.createSDK({ env, sui_client })
//or
const sdk = CetusClmmSDK.createSDK({ env, full_rpc_url })

After linking your wallet, if you need use your wallet address to do something, you should set it by CetusClmmSDK.setSenderAddress("YOUR_SUI_ADDRESS_HERE")

const wallet = 'YOUR_WALLET_ADDRESS'

sdk.setSenderAddress(wallet)

Now, you can start using Cetus SDK.

Typescript Doc

You can view this typescript sdk in Cetus Development Documents.

LICENSE

CETUS-SUI-SDK released under the Apache license. See the LICENSE file for details.

More About Cetus

Use the following links to learn more about Cetus: Learn more about working with Cetus in the Cetus Documentation.

Join the Cetus community on Cetus Discord.

版本与发布记录

@cetusprotocol/sui-clmm-sdk 共发布 71 个版本,首次发布于 2025/05/06;过去 12 个月发布了 30 个版本。

版本发布日期距今
1.4.9latest2026/09/231 个月前
0.0.0-experimental-20260923151400experimental2026/09/231 个月前
1.4.82026/09/201 个月前
0.0.0-experimental-202609201010512026/09/201 个月前
0.0.0-experimental-202609181137412026/09/181 个月前
1.4.72026/07/014 个月前

关于 @cetusprotocol/sui-clmm-sdk 的常见问题

@cetusprotocol/sui-clmm-sdk 是什么?

SDK for cetus clmm

如何安装 @cetusprotocol/sui-clmm-sdk?

在项目目录运行 npm install @cetusprotocol/sui-clmm-sdk,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:blakejs(*)、@mysten/sui(>=2.28.0)、@cetusprotocol/common-sdk(*)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@cetusprotocol/sui-clmm-sdk 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@cetusprotocol/sui-clmm-sdk 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@cetusprotocol/sui-clmm-sdk 可以商用吗?

@cetusprotocol/sui-clmm-sdk 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@cetusprotocol/sui-clmm-sdk 的下载量有多少?

根据 npm 官方下载统计,@cetusprotocol/sui-clmm-sdk 在 2026/10/10 – 2026/11/08 这 30 天内被下载 4,010 次,日均约 134 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@cetusprotocol/sui-clmm-sdk 还在维护吗?

最新版本 1.4.9 发布于 2026/09/23(1 个月前);至今共发布 71 个版本,其中过去 12 个月发布了 30 个;首次发布于 2025/05/06。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。