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 = 'mainnet';
const fullNodeUrl = "YOUR_FULL_NODE_URL"
const wallet = "YOUR_WALLET_ADDRESS"
const cetusClmmSDK = initCetusSDK({network, fullNodeUrl, wallet})
Now, you can start using Cetus SDK!
Last updated