Sologenic

Supported Chains

Available on XRPL Mainnet and Testnet

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 Sologenic.

  • /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.

  • /removeliquidityPOST - 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 Sologenic. For a complete list and more information, please see the DEX ID page.

DEX Name
Chain
DEX ID

Sologenic

XRPL Mainnet

3500

Sologenic

XRPL Testnet

3501

Endpoint Details

/getprice

Returns the swap quotation for a given token pair.

GET https://api.expand.network/dex/getprice

Query Parameter

Name
Type
Description

rpc

String

Remote procedural call URL.

dexId*

String

Refer to the DEX ID page for details.

amountIn*

String

Amount of token.

path*

String

Comma separated values of token addresses whose price is to be fetched.

https://api.expand.network/dex/getprice?path=PHNIX%3ArDFXbW2ZZCG5WgPtqwNiA2xZokLMm9ivmN,XRP&amountIn=10000000000000000000&dexId=3500

/getuserliquidity

Returns the balance of a particular token pair of an account.

GET https://api.expand.network/dex/getuserliquidity

Query Parameter

Name
Type
Description

rpc

String

Remote procedural call URL.

dexId*

String

Refer to the DEX ID page for details.

address*

String

Public address of liquidity provider.

poolAddress*

String

Pool address whose liquidity is to be fetched.

https://api.expand.network/dex/getuserliquidity?dexId=3500&poolAddress=rakZprdzwsUJ1rD2ouhYYAVP7tPbhrCbtz&address=rfkgjHxPbq1z6i8boURnEXY4qe4JFbiFLQ

/getpoolliquidity

Returns the total liquidity for a specified pool.

GET https://api.expand.network/dex/getpoolliquidity

Query Parameter

Name
Type
Description

rpc

String

Remote procedural call URL.

dexId*

String

Refer to the DEX ID page for details.

poolAddress*

String

Pool address whose liquidity is to be fetched.

https://api.expand.network/dex/getpoolliquidity?dexId=3500&poolAddress=rakZprdzwsUJ1rD2ouhYYAVP7tPbhrCbtz

/gettokenliquidity

Returns the individual token liquidity within the specified liquidity pool.

GET https://api.expand.network/dex/gettokenliquidity

Query Parameter

Name
Type
Description

rpc

String

Remote procedural call URL.

dexId*

String

Refer to the DEX ID page for details.

poolAddress*

String

Pool address whose liquidity is to be fetched.

https://api.expand.network/dex/gettokenliquidity?dexId=3500&poolAddress=rLjUKpwUVmz3vCTmFkXungxwzdoyrWRsFG

/swap

Initiate a swap transaction on a specified DEX.

POST https://api.expand.network/dex/swap

Request Body

Name
Type
Description

rpc

String

Remote procedural call URL.

dexId*

String

Refer to the DEX ID page for details.

path*

String

Comma separated values of token addresses.

amountIn*

String

Amount of token to be swapped.

amountOutMin*

String

Minimum amount accepted as a result of swap.

from*

String

Address of the sender of the token.

slippage

String

Percentage of total swap value. By default, 1.

0 <= slippage value <= 10

{
    "path": [
        "XRP",
        "SOLO:rsoLo2S1kiGeCcn6hCUXVrCpGMWLrRrLZz"
    ],
    "amountIn": "20000",
    "amountOutMin": "2324",
    "from": "rfkgjHxPbq1z6i8boURnEXY4qe4JFbiFLQ",
    "dexId": "3500"
}

/addliquidity

Add liquidity to a specified pool in a specified DEX.

POST https://api.expand.network/dex/addliquidity

Request Body

Name
Type
Description

rpc

String

Remote procedural call URL.

dexId*

String

Refer to the DEX ID page for details.

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.

amountOutMin*

String

Minimum amount accepted as a result of add liquidity.

{
    "dexId": "3500",
    "amountIn": [
        "1000000",
        "1000000"
    ],
    "from": "rPJ2kXNTseFAD1qotRXBtv7cd3x8ZN4BkP",
    "path": [
        "XRP",
        "SOLO:rsoLo2S1kiGeCcn6hCUXVrCpGMWLrRrLZz"
    ],
    "slippage": "10",
    "amountOutMin": "3"
}

/removeliquidity

Remove liquidity from a specified pool for a specified DEX.

POST https://api.expand.network/dex/removeliquidity

Request Body

Name
Type
Description

rpc

String

Remote procedural call URL.

dexId*

String

Refer to the DEX ID page for details.

path*

String

Comma separated values of token addresses.

from*

String

Address of the sender of the token.

liquidity*

String

The liquidity to be removed.

{
    "dexId": "3500",
    "liquidity": "1000000",
    "from": "rfkgjHxPbq1z6i8boURnEXY4qe4JFbiFLQ",
    "path": [
        "XRP",
        "SOLO:rsoLo2S1kiGeCcn6hCUXVrCpGMWLrRrLZz"
    ]
}

Last updated