LogoLogo
eckoDAOeckoDEXeckoWalleteckoGOV
  • 👾Welcome
    • eckoDAO - Introduction
    • Product Suite
    • $KDX Tokenomics
      • $KDX Token Distribution
      • $KDX Liquidity Mining
    • Governance
  • 🔄eckoDEX
    • Introduction
    • eckoDEX Litepaper
      • Why eckoDEX?
        • Problems in DeFi
        • Solution: Long Term Scalability
        • Solution: Gas-free
        • Solution: Slippage Control
        • Solution: Decentralised Infrastructure
        • Solution: Secure Smart Contracts
      • Industry Outlook
        • DEX Market Potential
        • eckoDEX: The Next Generation of DEXes
      • Vision
    • Platform
    • How to Swap
      • X-Swap
      • The eckoDEX Wrapper
    • Migrate liquidity from eckoDEX Beta to Mainnet V1
    • How to Add Liquidity
      • Single-Sided Liquidity
      • Understanding Liquidity Provision and Impermanent Loss
    • Governance Mining
      • Understanding Governance Mining
  • 💰eckoWALLET
    • Introduction
    • eckoWALLET API
    • Quicksign: KIP-0015
    • WalletConnect
    • FAQ
  • 🏛️eckoGOV
    • 👋Welcome to eckoGOV
      • 📚Litepaper Overview
    • 🚀Getting Started
      • 📋Minimum Requirements
      • 📥Login
      • 🌍Spaces
        • 💰Spaces Treasury
      • 👥Members
        • 🔠Edit Profile
    • 🧑‍🏫Role System
      • 1️L1 - eckoMEMBER
      • 2️L2 - eckoLEAD
      • 3️L3 - eckoCORE
      • 🧮Voting Power
      • 🙋Applying for a eckoDAO Role
      • 🔎KYC
    • 🌀Proposal Epoch
      • 🗃️Proposal Categories
      • 📑Creating Proposals
        • 🧾Proposal Template
        • 👍Proposal Example
      • 📊Voting on Proposals
      • 🗣️Discourse - Proposal Discussion
    • 💰Using the KDX Treasury
    • 📄Smart Contracts
  • 🔒Security & Contracts
    • Bug Bounty
    • Audits
  • 🤝Marketing
    • Social & Communities
    • eckoDAO Brand Assets
    • eckoWALLET Brand Assets
  • ⚡SDK
    • Overview
    • Quickstart
    • Reference
      • eckoDEX SDK
        • createPair
        • addLiquidity
        • removeLiquidity
        • swap
        • swapExactIn
        • swapExactOut
      • retrieveVerifiedAccount
      • TOKENS
Powered by GitBook
On this page
  1. SDK
  2. Reference
  3. eckoDEX SDK

removeLiquidity

Removing liquidity from a coin pair liquidity pool

.removeLiquidity({
  token0: TOKENS.KDA,
  token1: TOKENS.ABC,
  liquidity: '0.01',
})
Parameter
Type
Default Value

account

Account

config.account (†)

secretKey

string

config.secretKey (†)

token0

Token

token1

Token

slippage

string

† Can be initialized in the SDK client constructor, i.e

new KaddexSdk({ account, secretKey })
PreviousaddLiquidityNextswap

Last updated 11 months ago

⚡