Skip to main content
Create pool CLMM Cetus

Usage

Parameters

Example Prompts

Natural Language Prompts

LangChain Tool Prompts

Example Implementation

Implementation Details

  • Initialize the sqrt price and current tick index based on initializePrice
  • Build the tick range
  • Estimate liquidity and token amounts from a single input
  • Calculate the required amounts of Token A and Token B
  • Once all parameters are set, prepare the transaction payload
  • Sign and execute the transactionn

Response Format

Error Handling

Best Practices

  1. Balance Verification
  • Account for transaction fees
  1. Transaction Management
  • Monitor transaction status
  • Implement proper error handling
  • Use appropriate commitment levels
  1. Security
  • Verify transaction details
  • Double-check amounts
  • Keep private keys secure
  1. User Experience
  • Show transaction progress
  • Display staking rewards
  • get_holding: Check token balances