Saseul Gold Docs
  • Saseul Gold Docs
  • Network CLI
    • Using Saseulgold Network CLI
    • Wallet Interface
      • Representative Wallet Settings
      • Check your wallet balance
      • Remittance
    • Dex Interface
      • Get Token Detail
      • Mint Token
      • Transfer Token
      • Swap
      • ProvideLiquidity
    • Swap Process
      • Example
  • Dex API
    • Using Dex API
    • Token Info API
    • Token Mint API
    • Token Pair Info API
    • Provide Liquidity API
    • Faucet API
    • Swap
    • Liquidity Withdraw
    • Balance Of
    • Transfer
  • Backend API
    • Using Backend API
    • Token Detail API
    • Token List API
    • Pair List API
    • Pair Detail API
    • Pair Transaction Candle API
    • Block List API
Powered by GitBook
On this page
  1. Dex API

Liquidity Withdraw

Liquidity providers can withdraw deposits with a premium, using the WithdrawLiquidity contract.

You can withdraw tokens from your own lp token and convert them into token pairs.

At this time, the lp token is incinerated in the liquidity pool, and the swapable limits (reserve_a, save_b) are reduced.

{
    "transaction": {
        "type": "LiquidityWithdraw",
        "token_address_a": "000000000000000000000000000000000000000000000000
        "token_address_b": "70873e8c4de45c34654766cc08caddf7510db620f1f353ea497e",
        "lp_amount": "400000000000000000000",
        "timestamp": 1735695076398662,
        "from": "0fb94161839b539195b641e5124ee174bf68840b9866"
    },
    "public_key": "df1ac6cdfb35d49161e7a6474a8763f6244d5432bbe102ea27c46113836fb",
    "signature": "9cf1b271a2f34df94d03b142e4f5f75fc16fd7610b56d3144c116fbe4c16b44b"
}
PreviousSwapNextBalance Of

Last updated 3 months ago