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

Last updated