@cetusprotocol/cetus-sui-clmm-sdk

中文文档
5.4.0发布于 2025/06/08Apache-2.0TypeScriptESM + CJS近 30 天下载 6.3万

SDK for cetus swap and liquidity

原始使用文档
文档目录10 节
  1. Cetus-CLMM-SUI-SDK
  2. Introduction
  3. Getting Started
  4. Prerequisites
  5. SDK Initialization
  6. Network Options
  7. Important Note
  8. Typrscript 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/cetus-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 { initCetusSDK } from '@cetusprotocol/cetus-sui-clmm-sdk'
    
    const wallet = "YOUR_SUI_ADDRESS_HERE"
    const cetusClmmSDK = initCetusSDK({network: 'mainnet', wallet})
    

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

import { initCetusSDK } from '@cetusprotocol/cetus-sui-clmm-sdk'

const network = 'mainnet';
const fullNodeUrl = "YOUR_FULL_NODE_URL_HERE"
const wallet = "YOUR_SUI_ADDRESS_HERE"
const cetusClmmSDK = initCetusSDK({network, fullNodeUrl, wallet})

If you not set wallet when init sdk, you can set it later by cetusClmmSDK.senderAddress = "YOUR_SUI_ADDRESS_HERE"

Now, you can start using Cetus SDK.

Typrscript 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/cetus-sui-clmm-sdk 共发布 355 个版本,首次发布于 2023/03/07;过去 12 个月发布了 0 个版本。

版本发布日期距今
5.4.0latest2025/06/081.4 年前
0.0.0-beta-20250430115714beta2025/04/301.5 年前
0.0.0-experimental-20250416150500experimental2025/04/161.6 年前
0.0.0-experimental-202504152121352025/04/151.6 年前
5.3.42025/03/041.7 年前
5.3.32025/02/281.7 年前

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

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

SDK for cetus swap and liquidity

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

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

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

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

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

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

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

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

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

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

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

最新版本 5.4.0 发布于 2025/06/08(1.4 年前);至今共发布 355 个版本,其中过去 12 个月发布了 0 个;首次发布于 2023/03/07。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。