Liquidswap
Supported Chains
Available on Aptos Mainnet
Available Endpoints:
Click on the endpoint to jump to the section with full details
/getprice
GET- Returns the swap quotation for a given token pair on Liquidswap./getuserliquidity
GET- Returns the balance of a particular token pair of accounts./getpoolliquidity
GET- Returns the total liquidity for a specified pool./gettokenliquidity
GET- Returns the individual token liquidity within the specified liquidity pool./swap
POST- Initiate a swap transaction on a specified DEX./addliquidity
POST- Add liquidity to a specified pool in a specified DEX./removeliquidity
POST- Remove liquidity from a specified pool for a specified DEX.
DEX IDs
Many endpoints have a parameter where you can provide a DEX ID.
Below is a list of DEX IDs related to Liquidswap. For a complete list and more information, please see the DEX ID page.
Liquidswap
Aptos Mainnet
3200
Endpoint Details
/getprice
Returns the swap quotation for a given token pair.
GET https://api.expand.network/dex/getprice
Query Parameter
rpc
String
Remote procedural call URL.
amountIn*
String
Amount of token.
path*
String
Comma separated values of token addresses whose price is to be fetched.
/getuserliquidity
Returns the balance of a particular token pair of an account.
GET https://api.expand.network/dex/getuserliquidity
Query Parameter
rpc
String
Remote procedural call URL.
address*
String
Public address of liquidity provider.
poolAddress*
String
Pool address whose liquidity is to be fetched.
/getpoolliquidity
Returns the total liquidity for a specified pool.
GET https://api.expand.network/dex/getpoolliquidity
Query Parameter
rpc
String
Remote procedural call URL.
poolAddress*
String
Pool address whose liquidity is to be fetched.
/gettokenliquidity
Returns the individual token liquidity within the specified liquidity pool.
GET https://api.expand.network/dex/gettokenliquidity
Query Parameter
rpc
String
Remote procedural call URL.
poolAddress*
String
Pool address whose liquidity is to be fetched.
/swap
Initiate a swap transaction on a specified DEX.
POST https://api.expand.network/dex/swap
Request Body
rpc
String
Remote procedural call URL.
path*
String
Comma separated values of token addresses.
amountIn*
String
Amount of token to be swapped.
gas
String
Maximum gas limit provided by the sender, for the transaction.
from*
String
Address of the sender of the token.
slippage
String
Percentage of total swap value. By default, 1.
0 <= slippage value <= 10
/addliquidity
Add liquidity to a specified pool in a specified DEX.
POST https://api.expand.network/dex/addliquidity
Request Body
rpc
String
Remote procedural call URL.
path*
String
Comma separated values of token addresses.
amountIn*
String
Amount of token0 and token1 to be added.
slippage
String
Percentage of total swap value. By default, 1.
0 <= slippage value <= 10
from*
String
Address of the sender of the token.
gas
String
Maximum gas limit provided by the sender, for the transaction.
curveType
String
Type of curve for pool pair.
stable/uncorrelated.
By Default, stable
/removeliquidity
Remove liquidity from a specified pool for a specified DEX.
POST https://api.expand.network/dex/removeliquidity
Request Body
rpc
String
Remote procedural call URL.
path*
String
Comma separated values of token addresses.
slippage
String
Percentage of total swap value. By default, 1.
0 <= slippage value <= 10
from*
String
Address of the sender of the token.
liquidity*
String
The liquidity to be removed.
gas
String
Maximum gas limit provided by the sender, for the transaction.
curveType
String
Type of curve for pool pair.
stable/uncorrelated.
By Default, stable
Last updated

