You have 4 ways to create sdk service.
Only tell sdk network, and using default node url according to network.
import { Network, TurbosSdk } from 'turbos-clmm-sdk';
export const sdk = new TurbosSdk(Network.mainnet);
import { Network, TurbosSdk } from 'turbos-clmm-sdk';
export const sdk = new TurbosSdk(Network.mainnet, {
url: 'https://your_full_node_url.com',
});
import { Network, TurbosSdk } from 'turbos-clmm-sdk';
export const sdk = new TurbosSdk(Network.mainnet, {
transport: {
async request(input) { ... },
async subscript(input) { ... }
},
});
import { Network, TurbosSdk } from 'turbos-clmm-sdk';
import { SuiClient, SuiClientOptions, getFullnodeUrl } from '@mysten/sui/client';
const sui = new SuiClient({ ... });
export const sdk = new TurbosSdk(Network.mainnet, sui);