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. Network CLI
  2. Dex Interface

Swap

Commands used to run token swaps.

You must specify the address of the input and output tokens, and the quantity of input tokens to swap.

./sg dex swap -i ${input_token_address} -o ${output_token_address} -x ${amount}

- t : Address of the input token - o : Address of the output token - x : Number of input tokens to swap

  • Example

./sg dex swap -i dc2d6ab6d6a6000fb82931cc6ea3989629d051612701158df1214e62ac25
PreviousTransfer TokenNextProvideLiquidity

Last updated 3 months ago