Prerequisites

1. NPM install

npm i @cetusprotocol/cetus-sui-clmm-sdk

2. Setting Up Configuration

Cetus Typescript SDK now includes a default initialization method that allows for quick generation of the Cetus SDK configuration. You can utilize the src/config/initCetusSDK method to swiftly initialize the configuration. You have the option to select either 'mainnet' or 'testnet' for the network.

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

const cetusClmmSDK = initCetusSDK({network: 'mainnet})

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

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

const network = 'mainnnet';
const fullNodeUrl = "https://..."
const simulationAccount = "0x..."
const cetusClmmSDK = initCetusSDK({network, fullNodeUrl, simulationAccount})

Now, you can start using Cetus SDK!

Last updated