Gateway CLMM

Close Clmm Position

Changed on

CLOSE a CLMM position completely (removes all liquidity and collects pending fees).

Example: connector: 'meteora' network: 'solana-mainnet-beta' position_address: '...' wallet_address: (optional)

Returns: Transaction hash and collected fee amounts

post/gateway/clmm/close

Request

  • Base URL
    http://localhost:8000
  • URL
    http://localhost:8000/gateway/clmm/close
  • Auth
    HTTP basic

Request body

connectorstring required

CLMM connector (e.g., 'meteora', 'raydium', 'uniswap')

networkstring required

Network ID in 'chain-network' format (e.g., 'solana-mainnet-beta')

position_addressstring required

Position address to close

pool_addressstring nullable

Pool the position belongs to. Informational only — neither Gateway's call nor the fee snapshot needs it, and unrecorded positions work without it

wallet_addressstring nullable

Wallet address (optional, uses default if not provided)

Response

Successful Response

transaction_hashstring required

Transaction hash

position_addressstring required

Position address

base_fee_collectedstring nullable

Base token fees collected

quote_fee_collectedstring nullable

Quote token fees collected

statusstring

Transaction status

base_token_amount_removedstring nullable

Base liquidity actually withdrawn on-chain

quote_token_amount_removedstring nullable

Quote liquidity actually withdrawn on-chain

position_rent_refundedstring nullable

Native token rent refunded when the position account closed

Changes

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status