# Aerodrome

### Supported Chains

Available on **Base**

### Available Endpoints:

*Click on the endpoint to jump to the section with full details*

* [<mark style="color:blue;">/getprice</mark>](#getprice) <mark style="color:blue;">`GET`</mark> - Returns the swap quotation for a given token pair on Aerodrome.
* [<mark style="color:blue;">/getuserliquidity</mark>](#getuserliquidity) <mark style="color:blue;">`GET`</mark> - Returns the balance of a particular token pair of accounts.&#x20;
* [<mark style="color:blue;">/getpoolliquidity</mark>](#getpoolliquidity) <mark style="color:blue;">`GET`</mark> - Returns the total liquidity for a specified pool.
* [<mark style="color:blue;">/gettokenliquidity</mark>](#gettokenliquidity) <mark style="color:blue;">`GET`</mark> - Returns the individual token liquidity within the specified liquidity pool.
* [<mark style="color:blue;">/g</mark>](#user-content-fn-1)[^1][<mark style="color:blue;">etpool</mark>](#getpool)<mark style="color:blue;">`GET`</mark> - Returns poolAddress, tickSpacing, tokensLiquidity and liquidity data based on tokenA and tokenB
* [/<mark style="color:blue;">swap</mark>](#swap) <mark style="color:green;">`POST`</mark> - Initiate a swap transaction on a specified DEX.&#x20;
* [/<mark style="color:blue;">addliquidity</mark>](#addliquidity) <mark style="color:green;">`POST`</mark> - Add liquidity to a specified pool in a specified DEX.&#x20;
* [<mark style="color:blue;">/removeliquidity</mark>](#removeliquidity) <mark style="color:green;">`POST`</mark> - Remove liquidity from a specified pool in a specified DEX.&#x20;

### DEX IDs

Many endpoints have a parameter where you can provide a DEX ID.&#x20;

Below is a list of DEX IDs related to PancakeSwap V3. Please see the [DEX ID page](https://docs.expand.network/integrations/dex-and-dex-aggregators/broken-reference) for a complete DEX ID list and more information.

| DEX Name  | Chain | DEX ID |
| --------- | ----- | ------ |
| Aerodrome | Base  | 3600   |

## Endpoint Details

### /getprice

Returns the swap quotation for a given token pair on Aerodrome

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/dex/getprice`

#### Query Parameters

| Name                                       | Type   | Description                                                                  |
| ------------------------------------------ | ------ | ---------------------------------------------------------------------------- |
| rpc                                        | String | Remote procedural call URL.                                                  |
| dexId<mark style="color:red;">\*</mark>    | String | See the [DEX ID](#dex-ids) page for a list of all DEX IDs.                   |
| path<mark style="color:red;">\*</mark>     | String | Comma separated values of token addresses whose price is to be fetched.      |
| amountIn<mark style="color:red;">\*</mark> | String | Amount of token.                                                             |
| tickSpacing                                | String | Different pool based on the tick spacing. By default, it is selected as 100. |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/dex/getprice?path=0x4200000000000000000000000000000000000006%2C0xacfE6019Ed1A7Dc6f7B508C02d1b04ec88cC21bf&tickSpacing=100&amountIn=10000000000000&dexId=3600
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "amountIn": "10000000000000",
        "path": [
            "0x4200000000000000000000000000000000000006",
            "0xacfE6019Ed1A7Dc6f7B508C02d1b04ec88cC21bf"
        ],
        "amountsOut": [
            "10000000000000",
            "5017892452668128"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

[<mark style="color:blue;">back to top</mark>](#endpoints-available)

### /getuserliquidity

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

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/dex/getuserliquidity`

#### Query Parameters

| Name                                      | Type   | Description                                                                                                           |
| ----------------------------------------- | ------ | --------------------------------------------------------------------------------------------------------------------- |
| rpc                                       | String | Remote procedural call URL.                                                                                           |
| tokenId<mark style="color:red;">\*</mark> | String | The token ID for Aerodrome liquidity position.                                                                        |
| dexId<mark style="color:red;">\*</mark>   | String | Refer to [DexId](https://docs.expand.network/integrations/dex-and-dex-aggregators/broken-reference) page for details. |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/dex/getuserliquidity?dexId=3600&tokenId=6402229
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "liquidity": "0",
        "tokenV3": "0x55d398326f99059fF775485246999027B3197955"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /getpoolliquidity

Returns the total liquidity for a specified pool.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/dex/getpoolliquidity`

#### Query Parameters

| Name                                          | Type   | Description                                                                                                            |
| --------------------------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                                                                                            |
| poolAddress<mark style="color:red;">\*</mark> | String | Pool address whose liquidity is to be fetched.                                                                         |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](https://docs.expand.network/integrations/dex-and-dex-aggregators/broken-reference) page for details. |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network//dex/getpoolliquidity?dexId=3600&poolAddress=0x6446021F4E396dA3df4235C62537431372195D38
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "totalLiquidity": "3842613418337609306114460735"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /gettokenliquidity

Returns the individual token liquidity within the specified liquidity pool.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/dex/gettokenliquidity`

#### Query Parameters

| Name                                          | Type   | Description                                                                                                            |
| --------------------------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------- |
| rpc                                           | String | Remote procedural call URL.                                                                                            |
| poolAddress<mark style="color:red;">\*</mark> | String | The pool address.                                                                                                      |
| dexId<mark style="color:red;">\*</mark>       | String | Refer to [DEX ID](https://docs.expand.network/integrations/dex-and-dex-aggregators/broken-reference) page for details. |

{% tabs %}
{% tab title="Sample Request" %}

```
https://api.expand.network//dex/gettokenliquidity?dexId=3600&poolAddress=0xC96fa108B551E24609bA22F177a652FFAa05E3a5
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "WETH": "14793727084925305",
        "B3": "48389790764073"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /getpool

&#x20;Returns poolAddress, tickSpacing, poolFees, tokensLiquidity and liquidity data based on tokenA and tokenB

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/dex/getpool`

#### Query Parameters

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/dex/getpool?dexId=3600&tokenA=0x4200000000000000000000000000000000000006&tokenB=0xacfE6019Ed1A7Dc6f7B508C02d1b04ec88cC21bf
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "poolAddress": "0x7eC6C9D993D9832Aa654593f2Dbc21303650Bc6c",
            "tickSpacing": "100",
            "tokensLiquidity": {
                "WETH": "48768555569924423019",
                "VVV": "53838383560167152098431"
            },
            "liquidity": "17265977496275101973877"
        },
        {
            "poolAddress": "0x46D398A5b33709877f50c8918A7eE96F1Be1d7dd",
            "tickSpacing": "200",
            "tokensLiquidity": {
                "WETH": "20559058494109486027",
                "VVV": "32656440862879438912554"
            },
            "liquidity": "53885788767252899437975"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /swap

Initiate a swap transaction on a specified DEX.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/dex/swap`

#### Request Body

<table><thead><tr><th width="177">Name</th><th width="105">Type</th><th>Description</th></tr></thead><tbody><tr><td>rpc</td><td>String</td><td>Remote procedural call URL.</td></tr><tr><td>dexId<mark style="color:red;">*</mark></td><td>String</td><td>Refer to the <a href="broken-reference">DEX ID</a> page for details. </td></tr><tr><td>path<mark style="color:red;">*</mark></td><td>Array</td><td>Comma-separated values of token addresses, inside an array, to swap.</td></tr><tr><td>amountIn<mark style="color:red;">*</mark></td><td>String</td><td>Amount of token to be swapped.</td></tr><tr><td>amountOutMin</td><td>String</td><td>Minimum amount accepted as a result of swap.</td></tr><tr><td>to<mark style="color:red;">*</mark></td><td>String</td><td>Address of the recipient of the token.</td></tr><tr><td>from<mark style="color:red;">*</mark></td><td>String</td><td>Address of the sender of the token.</td></tr><tr><td>gas</td><td>String</td><td>Maximum gas limit provided by the sender, for the transaction.</td></tr><tr><td>tickSpacing</td><td>String</td><td>Different pool based on the tick spacing. By default, it is selected as 100.</td></tr><tr><td>gasPriority</td><td>String</td><td>low, medium, or high.</td></tr><tr><td>slippage</td><td>String</td><td><p>Percentage of total swap value. <br>By default, 1.</p><p>0 &#x3C;= slippage  value &#x3C;= 100</p></td></tr></tbody></table>

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "path": [
        "0x4200000000000000000000000000000000000006",
        "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf"
    ],
    "amountIn": "1017533960529743",
    "amountOutMin": "0",
    "involveBaseToken": "2",
    "gas": "100000",
    "tickSpacing": "100",
    "deadline": "1747703271",
    "from": "0x6A00277E6F9E5b5773772BDE0f8F154f2875Dc26",
    "to": "0x6A00277E6F9E5b5773772BDE0f8F154f2875Dc26",
    "dexId": "3600"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0x6A00277E6F9E5b5773772BDE0f8F154f2875Dc26",
        "to": "0xBE6D8f0d05cC4be24d5167a3eF062215bE6D18a5",
        "value": "0",
        "gas": "262173",
        "data": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000104a026383e0000000000000000000000004200000000000000000000000000000000000006000000000000000000000000cbb7c0000ab88b473b1f5afd9ef808440eed33bf0000000000000000000000000000000000000000000000000000000000000064000000000000000000000000be6d8f0d05cc4be24d5167a3ef062215be6d18a500000000000000000000000000000000000000000000000000000000682bd5e700000000000000000000000000000000000000000000000000039d711643a74f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004449404b7c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000006a00277e6f9e5b5773772bde0f8f154f2875dc2600000000000000000000000000000000000000000000000000000000",
        "estimationCheck": true,
        "referenceId": "501d277a48f2437d91e239d762f4713c"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (medium):**

```json
{
    "path": [
        "0x4200000000000000000000000000000000000006",
        "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf"
    ],
    "amountIn": "1017533960529743",
    "amountOutMin": "0",
    "involveBaseToken": "2",
    "gas": "100000",
    "tickSpacing": "100",
    "deadline": "1747703271",
    "from": "0x6A00277E6F9E5b5773772BDE0f8F154f2875Dc26",
    "to": "0x6A00277E6F9E5b5773772BDE0f8F154f2875Dc26",
    "dexId": "3600",
    "gasPriority": "medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0x6A00277E6F9E5b5773772BDE0f8F154f2875Dc26",
        "to": "0xBE6D8f0d05cC4be24d5167a3eF062215bE6D18a5",
        "value": "0",
        "gas": "267752",
        "data": "0xac9650d800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000104a026383e0000000000000000000000004200000000000000000000000000000000000006000000000000000000000000cbb7c0000ab88b473b1f5afd9ef808440eed33bf0000000000000000000000000000000000000000000000000000000000000064000000000000000000000000be6d8f0d05cc4be24d5167a3ef062215be6d18a500000000000000000000000000000000000000000000000000000000682bd5e700000000000000000000000000000000000000000000000000039d711643a74f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004449404b7c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000006a00277e6f9e5b5773772bde0f8f154f2875dc2600000000000000000000000000000000000000000000000000000000",
        "gasPrice": "5867623",
        "estimationCheck": true,
        "referenceId": "5a7a5eaf11bd49abb81c8d6af79b9964"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /addliquidity

Add liquidity to a specified pool in a specified DEX.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/dex/addliquidity`

#### Request Body

| Name                                             | Type   | Description                                                                                                                |
| ------------------------------------------------ | ------ | -------------------------------------------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>          | String | Refer to the [DEX ID](https://docs.expand.network/integrations/dex-and-dex-aggregators/broken-reference) page for details. |
| tokenA<mark style="color:red;">\*</mark>         | String | Address of the first token being added.                                                                                    |
| tokenB<mark style="color:red;">\*</mark>         | String | Address of the second token being added.                                                                                   |
| tickSpacing                                      | String | Different pool based on the tick spacing. By default, it is selected as 100.                                               |
| amountADesired<mark style="color:red;">\*</mark> | String | Desired amount of token A.                                                                                                 |
| amountBDesired<mark style="color:red;">\*</mark> | String | Desired amount of token B.                                                                                                 |
| amountAMin<mark style="color:red;">\*</mark>     | String | Minimum amount of token A.                                                                                                 |
| amountBMin<mark style="color:red;">\*</mark>     | String | Minimum amount of token B.                                                                                                 |
| deadline<mark style="color:red;">\*</mark>       | String | Deadline for the transaction to be executed (UNIX Timestamp).                                                              |
| to<mark style="color:red;">\*</mark>             | String | Address of the recipient of the token.                                                                                     |
| from<mark style="color:red;">\*</mark>           | String | Address of the sender of the token.                                                                                        |
| gas                                              | String | Maximum gas limit provided by the sender, for the transaction.                                                             |
| rpc                                              | String | Remote procedural call URL.                                                                                                |
| tokenId                                          | String | The token ID for Aerodrome liquidity position.                                                                             |
| gasPriority                                      | String | low, medium, or high.                                                                                                      |
| slippage                                         | String | <p>Percentage of total value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p>                                     |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "tokenA": "0x4200000000000000000000000000000000000006",
    "tokenB": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",
    "tickSpacing": "100",
    "amountADesired": "10000000000000",
    "amountBDesired": "24437",
    "amountAMin": "0",
    "amountBMin": "0",
    "from": "0xDb8b672ce5aE1Cb537EEd31b2a61dFEef1feA65a",
    "to": "0xDb8b672ce5aE1Cb537EEd31b2a61dFEef1feA65a",
    "deadline": "1740727106",
    "gas": "10000",
    "dexId": "3600"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0xDb8b672ce5aE1Cb537EEd31b2a61dFEef1feA65a",
        "to": "0x827922686190790b37229fd06084350E74485b72",
        "value": "0",
        "gas": "10000",
        "data": "0xac9650d80000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000184b5007d1f0000000000000000000000004200000000000000000000000000000000000006000000000000000000000000cbb7c0000ab88b473b1f5afd9ef808440eed33bf0000000000000000000000000000000000000000000000000000000000000064fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbe27cfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbe40c000000000000000000000000000000000000000000000000000009184e72a0000000000000000000000000000000000000000000000000000000000000005f7500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000db8b672ce5ae1cb537eed31b2a61dfeef1fea65a0000000000000000000000000000000000000000000000000000000067c16342000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "estimationCheck": true,
        "referenceId": "79356a26d508445c9da3e57e7b6d6ebf"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority (medium):**

```json
{
    "tokenA": "0x4200000000000000000000000000000000000006",
    "tokenB": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",
    "tickSpacing": "100",
    "amountADesired": "10000000000000",
    "amountBDesired": "24437",
    "amountAMin": "0",
    "amountBMin": "0",
    "from": "0xDb8b672ce5aE1Cb537EEd31b2a61dFEef1feA65a",
    "to": "0xDb8b672ce5aE1Cb537EEd31b2a61dFEef1feA65a",
    "deadline": "1740727106",
    "gas": "10000",
    "dexId": "3600",
     "gasPriority": "medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0xDb8b672ce5aE1Cb537EEd31b2a61dFEef1feA65a",
        "to": "0x827922686190790b37229fd06084350E74485b72",
        "value": "0",
        "gas": "10000",
        "data": "0xac9650d80000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000184b5007d1f0000000000000000000000004200000000000000000000000000000000000006000000000000000000000000cbb7c0000ab88b473b1f5afd9ef808440eed33bf0000000000000000000000000000000000000000000000000000000000000064fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbe27cfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbe40c000000000000000000000000000000000000000000000000000009184e72a0000000000000000000000000000000000000000000000000000000000000005f7500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000db8b672ce5ae1cb537eed31b2a61dfeef1fea65a0000000000000000000000000000000000000000000000000000000067c16342000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "gasPrice": "5712444",
        "estimationCheck": "Returned error: execution reverted",
        "referenceId": "4bae0cacf32548ceb1d037cd16668d73"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

### /removeliquidity

Remove liquidity from a specified pool for a specified DEX.

<mark style="color:green;">`POST`</mark> `https://api.expand.network/dex/removeliquidity`

#### Request Body

| Name                                        | Type   | Description                                                                                                                |
| ------------------------------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------- |
| dexId<mark style="color:red;">\*</mark>     | String | Refer to the [DEX ID](https://docs.expand.network/integrations/dex-and-dex-aggregators/broken-reference) page for details. |
| tokenId<mark style="color:red;">\*</mark>   | String | The token ID for Aerodrome liquidity position.                                                                             |
| amountAMin                                  | String | Minimum amount of Token A.                                                                                                 |
| amountAMax                                  | String | Maximum amount of Token A.                                                                                                 |
| amountBMax                                  | String | Maximum amount of Token B.                                                                                                 |
| to<mark style="color:red;">\*</mark>        | String | Recipient for sweep tokens.                                                                                                |
| deadline<mark style="color:red;">\*</mark>  | String | Deadline for the transaction to be executed (UNIX Timestamp).                                                              |
| from<mark style="color:red;">\*</mark>      | String | Address of the sender of the token.                                                                                        |
| gas                                         | String | Maximum gas limit provided by the sender, for the transaction.                                                             |
| rpc                                         | String | Remote procedural call URL.                                                                                                |
| tokenA<mark style="color:red;">\*</mark>    | String | Address of the first token being removed.                                                                                  |
| tokenB                                      | String | Address of the second token being removed.                                                                                 |
| liquidity<mark style="color:red;">\*</mark> | string | The liquidity to be removed.                                                                                               |
| amountBMin                                  | String | Minimum amount of Token B.                                                                                                 |
| gasPriority                                 | String | low, medium, or high.                                                                                                      |
| slippage                                    | String | <p>Percentage of total value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p>                                     |

{% tabs %}
{% tab title="Sample Request" %}

```json
{
    "tokenA": "0x4200000000000000000000000000000000000006",
    "tokenB": "0x4F9Fd6Be4a90f2620860d680c0d4d5Fb53d1A825",
    "tickSpacing": "50",
    "liquidity": "10000000000000",
    "amountAMin": "0",
    "amountBMin": "0",
    "from": "0x67d12A43b726C58412Eb9CD1EaF3f4aC16381dEC",
    "to": "0x67d12A43b726C58412Eb9CD1EaF3f4aC16381dEC",
    "deadline": "1840727106",
    "gas": "10000",
    "tokenId": "6762916",
    "dexId": "3600"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0x67d12A43b726C58412Eb9CD1EaF3f4aC16381dEC",
        "to": "0x827922686190790b37229fd06084350E74485b72",
        "value": "0",
        "gas": "10000",
        "data": "0xac9650d80000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000a40c49ccbe00000000000000000000000000000000000000000000000000000000006731a4000000000000000000000000000000000000000000000000000009184e72a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006db74442000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084fc6f786500000000000000000000000000000000000000000000000000000000006731a4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000ffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064df2ab5bb0000000000000000000000004200000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000067d12a43b726c58412eb9cd1eaf3f4ac16381dec00000000000000000000000000000000000000000000000000000000",
        "estimationCheck": true,
        "referenceId": "2c05c202673b4d7993380467601cc8ce"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Sample Request" %}
**With gasPriority:**

```json
{
    "tokenA": "0x4200000000000000000000000000000000000006",
    "tokenB": "0x4F9Fd6Be4a90f2620860d680c0d4d5Fb53d1A825",
    "tickSpacing": "50",
    "liquidity": "10000000000000",
    "amountAMin": "0",
    "amountBMin": "0",
    "from": "0x67d12A43b726C58412Eb9CD1EaF3f4aC16381dEC",
    "to": "0x67d12A43b726C58412Eb9CD1EaF3f4aC16381dEC",
    "deadline": "1840727106",
    "gas": "10000",
    "tokenId": "6762916",
    "dexId": "3600",
    "gasPriority": "medium"
}
```

{% endtab %}

{% tab title="Sample Response" %}
**With gasPriority:**

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0x67d12A43b726C58412Eb9CD1EaF3f4aC16381dEC",
        "to": "0x827922686190790b37229fd06084350E74485b72",
        "value": "0",
        "gas": "10000",
        "data": "0xac9650d80000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000a40c49ccbe00000000000000000000000000000000000000000000000000000000006731a4000000000000000000000000000000000000000000000000000009184e72a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006db74442000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084fc6f786500000000000000000000000000000000000000000000000000000000006731a4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000ffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064df2ab5bb0000000000000000000000004200000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000067d12a43b726c58412eb9cd1eaf3f4ac16381dec00000000000000000000000000000000000000000000000000000000",
        "gasPrice": "5999660",
        "estimationCheck": true,
        "referenceId": "dbf1a131feec4d85a15b5e0941e9260a"
    }
}
```

{% endtab %}
{% endtabs %}

[back to top](#endpoints-available)

[^1]: getpool
