Turbos
  • 📖About Turbos
    • Getting Started
    • About Turbos Finance
    • Why Sui Network
  • 📽️Products
    • Concentrated Liquidity AMM
      • Fee Tier for Token Pairs
      • Oracle
    • Automated Rebalance Vault
      • Step-by-Step Guide
      • Referral Program
    • TurboStar
    • TurbosBoost
  • 💡Protocol Concepts
    • About Concentrated Liquidity
    • Fee Tiers
    • Glossary
  • 🪙Tokenomics
    • TURBOS
    • Token Utility
    • Emission Distribution
  • ⚙️Others
    • Roadmap
    • Audits
    • Brand kit
    • Risks
    • Token Address
  • Developer Docs
    • Dev Overview
    • via SDK
      • Get Started
      • Initialize SDK
      • Clmm
        • getConfig
        • getFeesConfig
        • getPools
        • getPool
        • createPool
        • createAndAddLiquidity
        • increaseLiquidity
        • decreaseLiquidity
        • removeLiquidityAndBurn
        • preSwap
        • swap
        • collect Fees
        • collect Rewards
        • Fee
        • Liquidity and coin amounts calculation
        • APR calculation
      • Vault
        • createAndDepositVault
        • depositVault
        • withdrawVault
        • withdrawAllVault
        • collectClmmRewardDirectReturnVault
        • closeVault
        • computeTokenWithdrawVaultSwapResult
        • getVaultBalanceAmount
        • getMyVaults
  • Turbos Fun
    • Base
    • Create Pool
    • Calculate Token Amount
    • Buy
    • Sell
  • 📱Socials
    • Official website
    • Twitter
    • Discord
    • Medium
    • Zealy
  • Tutorials
    • Supported Wallets
      • SafePal Wallet
    • Move tutorial
    • Sui tutorial
Powered by GitBook
On this page
  • Signature
  • Params
  • Examples
  1. Developer Docs
  2. via SDK
  3. Clmm

getPool

Retrieve specific turbos pool, and throws Error if pool not exists.

Signature

getPool(poolId: string): Promise<Pool.Pool>

Params

poolId: Pool object ID.

Examples

const poolId = '0x2c6fc12bf0d093b5391e7c0fed7e044d52bc14eb29f6352a3fb358e33e80729e';
const pool = await sdk.pool.getPool(poolId);

Response

{
  coin_a: '7933797',
  coin_b: '97630837',
  deploy_time_ms: '1727128400342',
  fee: 3000,
  fee_growth_global_a: '3360020434863282893',
  fee_growth_global_b: '32358835950111033230',
  fee_protocol: 300000,
  id: {
    id: '0x8e7be736d448d1eb4bf15521fddf2072402c3fabe539d29e8550b1463fe122cd'
  },
  liquidity: '0',
  max_liquidity_per_tick: '23012265295255187899058267899625901',
  protocol_fees_a: '7933507',
  protocol_fees_b: '97630562',
  reward_infos: [],
  reward_last_updated_time_ms: '1737838546481',
  sqrt_price: '19641326088305147793',
  tick_current_index: {
    type: '0x91bfbc386a41afcfd9b2533058d7e915a1d3829089cc268ff4333d54d6339ca1::i32::I32',
    fields: { bits: 1255 }
  },
  tick_map: {
    type: '0x2::table::Table<0x91bfbc386a41afcfd9b2533058d7e915a1d3829089cc268ff4333d54d6339ca1::i32::I32, u256>',
    fields: { id: [Object], size: '17' }
  },
  tick_spacing: 60,
  unlocked: true,
  objectId: '0x8e7be736d448d1eb4bf15521fddf2072402c3fabe539d29e8550b1463fe122cd',
  type: '0x91bfbc386a41afcfd9b2533058d7e915a1d3829089cc268ff4333d54d6339ca1::pool::Pool<0x6cc3c2b9f33461479ec785c5f6ea759e0f118a96bde35cc15325c7b853e7fe66::sity::SITY, 0x2::sui::SUI, 0x91bfbc386a41afcfd9b2533058d7e915a1d3829089cc268ff4333d54d6339ca1::fee3000bps::FEE3000BPS>',
  types: [
    '0x6cc3c2b9f33461479ec785c5f6ea759e0f118a96bde35cc15325c7b853e7fe66::sity::SITY',
    '0x2::sui::SUI',
    '0x91bfbc386a41afcfd9b2533058d7e915a1d3829089cc268ff4333d54d6339ca1::fee3000bps::FEE3000BPS'
  ]
}
PreviousgetPoolsNextcreatePool

Last updated 3 days ago