# Stargate V2

### /getsupportedchains

Get the list of chains supported by Squid Router, on expand.network.

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

#### Query Parameters

| Name                                       | Type   | Description                                                                            |
| ------------------------------------------ | ------ | -------------------------------------------------------------------------------------- |
| bridgeId<mark style="color:red;">\*</mark> | String | Refer to the [Bridge ID](https://docs.expand.network/ids/bridge-ids) page for details. |
| rpc                                        | String | Remote procedural call URL.                                                            |

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

```url
https://api.expand.network/bridge/getsupportedchains?bridgeId=500
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "chainName": "Ethereum",
            "chainId": "1",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Optimism",
            "chainId": "10",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Flare",
            "chainId": "14",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Rootstock",
            "chainId": "30",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Telos",
            "chainId": "40",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "BNB Chain",
            "chainId": "56",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Gnosis",
            "chainId": "100",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Fuse",
            "chainId": "122",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Polygon",
            "chainId": "137",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Sonic",
            "chainId": "146",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Flow",
            "chainId": "747",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Metis",
            "chainId": "1088",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Core",
            "chainId": "1116",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Glue",
            "chainId": "1300",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Sei",
            "chainId": "1329",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Vana",
            "chainId": "1480",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Story",
            "chainId": "1514",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Gravity",
            "chainId": "1625",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Soneium",
            "chainId": "1868",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Lightlink",
            "chainId": "1890",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Kava",
            "chainId": "2222",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Goat",
            "chainId": "2345",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Abstract",
            "chainId": "2741",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Peaq",
            "chainId": "3338",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Mantle",
            "chainId": "5000",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Kaia",
            "chainId": "8217",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Base",
            "chainId": "8453",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "lota",
            "chainId": "8822",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Apechain",
            "chainId": "33139",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Arbitrum",
            "chainId": "42161",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Hemi",
            "chainId": "43111",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Avalanche",
            "chainId": "43114",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Superposition",
            "chainId": "55244",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Ink",
            "chainId": "57073",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Linea",
            "chainId": "59144",
            "srcChainSupported": true,
            "dstChainSupported": true
        },
        {
            "chainName": "Bera",
            "chainId": "80094",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Codex",
            "chainId": "81224",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Plume",
            "chainId": "98866",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Taiko",
            "chainId": "167000",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Scroll",
            "chainId": "534352",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Degen",
            "chainId": "666666666",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Aurora",
            "chainId": "1313161554",
            "srcChainSupported": false,
            "dstChainSupported": true
        },
        {
            "chainName": "Rari Chain",
            "chainId": "1380012617",
            "srcChainSupported": false,
            "dstChainSupported": true
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /getsupportedtokens

Get the list of tokens supported by Squid Router, on the specified chain, on expand.network.

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

#### Query Parameters

| Name                                       | Type   | Description                                                                                                          |
| ------------------------------------------ | ------ | -------------------------------------------------------------------------------------------------------------------- |
| bridgeId<mark style="color:red;">\*</mark> | String | Refer to the [Bridge ID](https://docs.expand.network/ids/bridge-ids) page for details.                               |
| rpc                                        | String | Remote procedural call URL.                                                                                          |
| chainId<mark style="color:red;">\*</mark>  | String | Refer to the [Chain ID](https://docs.expand.network/ids/bridge-ids/internal-chain-ids-for-bridges) page for details. |

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

```url
https://api.expand.network/bridge/getsupportedtokens?bridgeId=500&chainId=1
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": [
        {
            "tokenSymbol": "USDC",
            "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
        },
        {
            "tokenSymbol": "USDT",
            "address": "0xdac17f958d2ee523a2206206994597c13d831ec7"
        },
        {
            "tokenSymbol": "ETH",
            "address": "0x0000000000000000000000000000000000000000"
        },
        {
            "tokenSymbol": "METH",
            "address": "0xd5f7838f5c461feff7fe49ea5ebaf7728bb0adfa"
        }
    ]
}
```

{% endtab %}
{% endtabs %}

### /getprice

Get the swap quotation for the given token pairs.

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

#### Query Parameters

| Name                                             | Type   | Description                                                                            |
| ------------------------------------------------ | ------ | -------------------------------------------------------------------------------------- |
| rpc                                              | String | Remote procedural call URL.                                                            |
| amountIn<mark style="color:red;">\*</mark>       | String | Address of the pool.                                                                   |
| address                                          | String | Sender's public address.                                                               |
| srcChainId                                       | String | Refer to the [Chain ID](https://docs.expand.network/ids/chain-ids) page for details.   |
| bridgeId                                         | String | Refer to the [Bridge ID](https://docs.expand.network/ids/bridge-ids) page for details. |
| dstChainId<mark style="color:red;">\*</mark>     | String | Destination Chain ID.                                                                  |
| srcTokenSymbol<mark style="color:red;">\*</mark> | String | Source token symbol                                                                    |
| dstTokenSymbol<mark style="color:red;">\*</mark> | String | Destination token symbol                                                               |

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

```url
https://api.expand.network/bridge/getprice?bridgeId=500&srcTokenSymbol=USDC&srcChainId=8453&amountIn=100000000&dstChainId=42161&dstTokenSymbol=USDC
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "srcChainId": "8453",
        "dstChainId": "42161",
        "srcTokenSymbol": "USDC",
        "dstTokenSymbol": "USDC",
        "amountIn": "100000000",
        "amountsOut": [
            "100000000",
            "99994999"
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### /getliquidity

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

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

#### Query Parameters

| Name                                             | Type   | Description                                                                            |
| ------------------------------------------------ | ------ | -------------------------------------------------------------------------------------- |
| rpc                                              | String | Remote procedural call URL.                                                            |
| srcTokenSymbol<mark style="color:red;">\*</mark> | String | Source Token symbol                                                                    |
| address                                          | String | Sender's public address.                                                               |
| srcChainId                                       | String | Refer to the [Chain ID](https://docs.expand.network/ids/chain-ids) page for details.   |
| bridgeId                                         | String | Refer to the [Bridge ID](https://docs.expand.network/ids/bridge-ids) page for details. |

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

```url
https://api.expand.network/bridge/getliquidity?bridgeId=500&srcTokenSymbol=USDC&srcChainId=1&address=0x384897A791f1553e0eB852Cac4476dd72e0794d1
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "token": "USDC",
        "tokenAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
        "poolAddress": "0xc026395860Db2d07ee33e05fE50ed7bD583189C7",
        "totalLiquidity": "17043852488610",
        "userLiquidity": "1000000"
    }
}
```

{% endtab %}
{% endtabs %}

### /gettransaction

Get details of a transaction.

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

#### Query Parameters

| Name                                              | Type   | Description                                                                                                        |
| ------------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------ |
| rpc                                               | String | Remote procedural call URL.                                                                                        |
| transactionHash<mark style="color:red;">\*</mark> | String | The transaction hash.                                                                                              |
| bridgeId                                          | String | Refer to the [Bridge ID](https://docs.expand.network/ids/bridge-ids) page for details.                             |
| srcChainid                                        | String | <p>By default, Ethereum mainnet.<br>Refer to the <a href="../../ids/chain-ids">Chain ID </a>page for details. </p> |

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

```
https://api.expand.network/bridge/gettransaction?transactionHash=0x8a1f55fe1b6362b998806e07bc6f1e3c93a97f4a5935d8e92042b9a616d4e81e&bridgeId=500
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "status": "EXECUTED",
        "srcTx": {
            "chainId": "8453",
            "hash": "0x8a1f55fe1b6362b998806e07bc6f1e3c93a97f4a5935d8e92042b9a616d4e81e",
            "transactionStatus": true,
            "blockNumber": "29964954",
            "timestamp": null,
            "from": "0x446A0fe937c5f8a45c44d6B7F8B99132803f89f2",
            "to": "0x6307119078556Fc8aD77781DFC67df20d75FB4f9",
            "value": "70533070227522",
            "transactionFees": "14678525224148",
            "gas": "976369",
            "gasPrice": "33795556",
            "input": "0x0193b9fc00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda029130000000000000000000000000000000000000000000000000000000008fd833f000000000000000000000000000000000000000000000000000000000000002100000000000000000000000000000000000000000000000000000000681cd90e00000000000000000000000000000000000000000000000000000000000004e000000000000000000000000000000000000000000000000000000000000003e414d53077000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000002002476a0182205afcee90222764b77fa4a289fe4889863737f26dbdbe80b8fb3b1000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913000000000000000000000000446a0fe937c5f8a45c44d6b7f8b99132803f89f20000000000000000000000000000000000000000000000000000000008fd833f000000000000000000000000000000000000000000000000000000000000a86a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a7374617267617465563200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f6a756d7065722e65786368616e67650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000004026429888420000000000000000000000000000000000000000000000000000000000000000000000000000000000000000446a0fe937c5f8a45c44d6b7f8b99132803f89f2000000000000000000000000000000000000000000000000000000000000759a000000000000000000000000446a0fe937c5f8a45c44d6b7f8b99132803f89f20000000000000000000000000000000000000000000000000000000008fd833f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041d9b355ba7146c493a52a5d9139f335f92ee53b315c026320c922ef14149003d41932b20251e91e679380764466c6070cbe42285a0b9e650ad29e83dcbed186841b00000000000000000000000000000000000000000000000000000000000000",
            "nonce": 567,
            "type": 2,
            "network": null,
            "v": "0x1",
            "r": "0x6327c14bf808ae6151f4f085d3107ac8a0485d58821ccdf673b491965cebcc9a",
            "s": "0x337b85078ee9af3eb1c11fdd1a367373595d550f9276e38f2ddd73d0b75766fd",
            "yParity": "0x1",
            "transactionIndex": 51,
            "accessList": [],
            "maxFeePerGas": "59212629",
            "maxPriorityFeePerGas": "25269505",
            "logs": [
                {
                    "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x000000000000000000000000446a0fe937c5f8a45c44d6b7f8b99132803f89f2",
                        "0x0000000000000000000000006307119078556fc8ad77781dfc67df20d75fb4f9"
                    ],
                    "data": "0x0000000000000000000000000000000000000000000000000000000008fd833f",
                    "blockNumber": 29964954,
                    "transactionHash": "0x8a1f55fe1b6362b998806e07bc6f1e3c93a97f4a5935d8e92042b9a616d4e81e",
                    "transactionIndex": 51,
                    "blockHash": "0xd9abe0f0d1ca5db901f5a348dd5d61688cebd2ae23d9b99972bd8dddb600446f",
                    "logIndex": 161,
                    "removed": false,
                    "id": "log_48498ada"
                },
                {
                    "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x0000000000000000000000006307119078556fc8ad77781dfc67df20d75fb4f9",
                        "0x0000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae"
                    ],
                    "data": "0x0000000000000000000000000000000000000000000000000000000008fd833f",
                    "blockNumber": 29964954,
                    "transactionHash": "0x8a1f55fe1b6362b998806e07bc6f1e3c93a97f4a5935d8e92042b9a616d4e81e",
                    "transactionIndex": 51,
                    "blockHash": "0xd9abe0f0d1ca5db901f5a348dd5d61688cebd2ae23d9b99972bd8dddb600446f",
                    "logIndex": 162,
                    "removed": false,
                    "id": "log_9bd7f870"
                },
                {
                    "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x0000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae",
                        "0x00000000000000000000000027a16dc786820b16e5c9028b75b99f6f604b5d26"
                    ],
                    "data": "0x0000000000000000000000000000000000000000000000000000000008fd833f",
                    "blockNumber": 29964954,
                    "transactionHash": "0x8a1f55fe1b6362b998806e07bc6f1e3c93a97f4a5935d8e92042b9a616d4e81e",
                    "transactionIndex": 51,
                    "blockHash": "0xd9abe0f0d1ca5db901f5a348dd5d61688cebd2ae23d9b99972bd8dddb600446f",
                    "logIndex": 163,
                    "removed": false,
                    "id": "log_8040262c"
                },
                {
                    "address": "0xB5320B0B3a13cC860893E2Bd79FCd7e13484Dda2",
                    "topics": [
                        "0x61ed099e74a97a1d7f8bb0952a88ca8b7b8ebd00c126ea04671f92a81213318a"
                    ],
                    "data": "0x0000000000000000000000002cca08ae69e0c44b18a57ab2a87644234daebae400000000000000000000000000000000000000000000000000002d1741badd54",
                    "blockNumber": 29964954,
                    "transactionHash": "0x8a1f55fe1b6362b998806e07bc6f1e3c93a97f4a5935d8e92042b9a616d4e81e",
                    "transactionIndex": 51,
                    "blockHash": "0xd9abe0f0d1ca5db901f5a348dd5d61688cebd2ae23d9b99972bd8dddb600446f",
                    "logIndex": 164,
                    "removed": false,
                    "id": "log_aa33f158"
                },
                {
                    "address": "0xB5320B0B3a13cC860893E2Bd79FCd7e13484Dda2",
                    "topics": [
                        "0x07ea52d82345d6e838192107d8fd7123d9c2ec8e916cd0aad13fd2b60db24644"
                    ],
                    "data": "0x000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000cd37ca043f8479064e10635020c65ffc005d36f6000000000000000000000000cdf31d62140204c08853b547e64707110fbc66800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000987806ed57700000000000000000000000000000000000000000000000000000987806ed577",
                    "blockNumber": 29964954,
                    "transactionHash": "0x8a1f55fe1b6362b998806e07bc6f1e3c93a97f4a5935d8e92042b9a616d4e81e",
                    "transactionIndex": 51,
                    "blockHash": "0xd9abe0f0d1ca5db901f5a348dd5d61688cebd2ae23d9b99972bd8dddb600446f",
                    "logIndex": 165,
                    "removed": false,
                    "id": "log_7df2e372"
                },
                {
                    "address": "0x1a44076050125825900e736c501f859c50fE728c",
                    "topics": [
                        "0x1ab700d4ced0c005b164c0f789fd09fcbb0156d4c2041b8a3bfbcd961cd1567f"
                    ],
                    "data": "0x00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000120000000000000000000000000b5320b0b3a13cc860893e2bd79fcd7e13484dda2000000000000000000000000000000000000000000000000000000000000009c01000000000000304c000075e80000000000000000000000005634c4a5fed09819e3c46d86a965dd9447d86e470000759a00000000000000000000000017e450be3ba9557f2378e20d64ad417e59ef9a34bc3dba1b033d80f0cc1cec5c10f24565caae16f1411721f9eb6bd87913a129fe010001000000000000000000000000446a0fe937c5f8a45c44d6b7f8b99132803f89f20000000008fd65c9000000000000000000000000000000000000000000000000000000000000000000000016000301001101000000000000000000000000000249f000000000000000000000",
                    "blockNumber": 29964954,
                    "transactionHash": "0x8a1f55fe1b6362b998806e07bc6f1e3c93a97f4a5935d8e92042b9a616d4e81e",
                    "transactionIndex": 51,
                    "blockHash": "0xd9abe0f0d1ca5db901f5a348dd5d61688cebd2ae23d9b99972bd8dddb600446f",
                    "logIndex": 166,
                    "removed": false,
                    "id": "log_bafa60c1"
                },
                {
                    "address": "0x27a16dc786820B16E5c9028b75B99F6f604b5d26",
                    "topics": [
                        "0x85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a",
                        "0xbc3dba1b033d80f0cc1cec5c10f24565caae16f1411721f9eb6bd87913a129fe",
                        "0x0000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae"
                    ],
                    "data": "0x000000000000000000000000000000000000000000000000000000000000759a0000000000000000000000000000000000000000000000000000000008fd833f0000000000000000000000000000000000000000000000000000000008fd65c9",
                    "blockNumber": 29964954,
                    "transactionHash": "0x8a1f55fe1b6362b998806e07bc6f1e3c93a97f4a5935d8e92042b9a616d4e81e",
                    "transactionIndex": 51,
                    "blockHash": "0xd9abe0f0d1ca5db901f5a348dd5d61688cebd2ae23d9b99972bd8dddb600446f",
                    "logIndex": 167,
                    "removed": false,
                    "id": "log_c6e637ba"
                },
                {
                    "address": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
                    "topics": [
                        "0xcba69f43792f9f399347222505213b55af8e0b0b54b893085c2e27ecbe1644f1"
                    ],
                    "data": "0x00000000000000000000000000000000000000000000000000000000000000202476a0182205afcee90222764b77fa4a289fe4889863737f26dbdbe80b8fb3b1000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913000000000000000000000000446a0fe937c5f8a45c44d6b7f8b99132803f89f20000000000000000000000000000000000000000000000000000000008fd833f000000000000000000000000000000000000000000000000000000000000a86a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a7374617267617465563200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f6a756d7065722e65786368616e67650000000000000000000000000000000000",
                    "blockNumber": 29964954,
                    "transactionHash": "0x8a1f55fe1b6362b998806e07bc6f1e3c93a97f4a5935d8e92042b9a616d4e81e",
                    "transactionIndex": 51,
                    "blockHash": "0xd9abe0f0d1ca5db901f5a348dd5d61688cebd2ae23d9b99972bd8dddb600446f",
                    "logIndex": 168,
                    "removed": false,
                    "id": "log_1e0ceb4a"
                }
            ]
        },
        "dstTx": {
            "chainId": "43114",
            "hash": "0x58ec8ac4291698cc14759926b701301214a1df7ca65850873e4b87ae3dffc15a",
            "transactionStatus": true,
            "blockNumber": "61672682",
            "timestamp": null,
            "from": "0xe93685f3bBA03016F02bD1828BaDD6195988D950",
            "to": "0x90E595783E43eb89fF07f63d27B8430e6B44bD9c",
            "value": "0",
            "transactionFees": "1611522777528396",
            "gas": "450020",
            "gasPrice": "12092073876",
            "input": "0xcfc32570000000000000000000000000000000000000000000000000000000000000002000000000000000000000000017e450be3ba9557f2378e20d64ad417e59ef9a3400000000000000000000000000000000000000000000000000000000000075e80000000000000000000000005634c4a5fed09819e3c46d86a965dd9447d86e47000000000000000000000000000000000000000000000000000000000000304cbc3dba1b033d80f0cc1cec5c10f24565caae16f1411721f9eb6bd87913a129fe000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000029428000000000000000000000000000000000000000000000000000000000000002b010001000000000000000000000000446a0fe937c5f8a45c44d6b7f8b99132803f89f20000000008fd65c90000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
            "nonce": 10181473,
            "type": null,
            "network": null,
            "v": "0x150f8",
            "r": "0x4aca6fc5395aa3ad557e64e2acbd1f83e1819f808af76bb059e4de4676be968d",
            "s": "0x4fbe87728d4b2a9fa5f636d7aaa5578171dfa3d90daf6f5e41bd697bd8f0f469",
            "yParity": null,
            "transactionIndex": 7,
            "accessList": null,
            "maxFeePerGas": null,
            "maxPriorityFeePerGas": null,
            "logs": [
                {
                    "address": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
                    "topics": [
                        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                        "0x0000000000000000000000005634c4a5fed09819e3c46d86a965dd9447d86e47",
                        "0x000000000000000000000000446a0fe937c5f8a45c44d6b7f8b99132803f89f2"
                    ],
                    "data": "0x0000000000000000000000000000000000000000000000000000000008fd65c9",
                    "blockNumber": 61672682,
                    "transactionHash": "0x58ec8ac4291698cc14759926b701301214a1df7ca65850873e4b87ae3dffc15a",
                    "transactionIndex": 7,
                    "blockHash": "0xaf34d35ca4e13dd1b14e257747c27c93b89e968a3488ce242833dec385460f35",
                    "logIndex": 40,
                    "removed": false,
                    "id": "log_f335ad63"
                },
                {
                    "address": "0x5634c4a5FEd09819E3c46D86A965Dd9447d86e47",
                    "topics": [
                        "0xefed6d3500546b29533b128a29e3a94d70788727f0507505ac12eaf2e578fd9c",
                        "0xbc3dba1b033d80f0cc1cec5c10f24565caae16f1411721f9eb6bd87913a129fe",
                        "0x000000000000000000000000446a0fe937c5f8a45c44d6b7f8b99132803f89f2"
                    ],
                    "data": "0x00000000000000000000000000000000000000000000000000000000000075e80000000000000000000000000000000000000000000000000000000008fd65c9",
                    "blockNumber": 61672682,
                    "transactionHash": "0x58ec8ac4291698cc14759926b701301214a1df7ca65850873e4b87ae3dffc15a",
                    "transactionIndex": 7,
                    "blockHash": "0xaf34d35ca4e13dd1b14e257747c27c93b89e968a3488ce242833dec385460f35",
                    "logIndex": 41,
                    "removed": false,
                    "id": "log_6c6ca837"
                },
                {
                    "address": "0x1a44076050125825900e736c501f859c50fE728c",
                    "topics": [
                        "0x3cd5e48f9730b129dc7550f0fcea9c767b7be37837cd10e55eb35f734f4bca04"
                    ],
                    "data": "0x00000000000000000000000000000000000000000000000000000000000075e80000000000000000000000005634c4a5fed09819e3c46d86a965dd9447d86e47000000000000000000000000000000000000000000000000000000000000304c00000000000000000000000017e450be3ba9557f2378e20d64ad417e59ef9a34",
                    "blockNumber": 61672682,
                    "transactionHash": "0x58ec8ac4291698cc14759926b701301214a1df7ca65850873e4b87ae3dffc15a",
                    "transactionIndex": 7,
                    "blockHash": "0xaf34d35ca4e13dd1b14e257747c27c93b89e968a3488ce242833dec385460f35",
                    "logIndex": 42,
                    "removed": false,
                    "id": "log_a6c6498d"
                }
            ]
        }
    }
}
```

{% endtab %}
{% endtabs %}

### /swap

Swap assets across multiple chains.

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

#### Request Body

| Name                                             | Type   | Description                                                                                                                         |
| ------------------------------------------------ | ------ | ----------------------------------------------------------------------------------------------------------------------------------- |
| rpc                                              | String | Remote procedural call URL.                                                                                                         |
| bridgeId                                         | String | Refer to the [Bridge ID](https://docs.expand.network/ids/bridge-ids) page for details.                                              |
| srcTokenSymbol<mark style="color:red;">\*</mark> | String | Symbol of token to swap.                                                                                                            |
| dstChainId<mark style="color:red;">\*</mark>     | String | Destination chain Id. Refer to the [Chain ID ](https://docs.expand.network/ids/chain-ids)page for details.                          |
| amountIn<mark style="color:red;">\*</mark>       | String | Amount of token to be swapped.                                                                                                      |
| from<mark style="color:red;">\*</mark>           | String | Address of the sender of the token.                                                                                                 |
| amountOutMin<mark style="color:red;">\*</mark>   | String | Minimum amount accepted as the result of swap.                                                                                      |
| gas<mark style="color:red;">\*</mark>            | String | Maximum gas limit provided by the sender, for the transaction.                                                                      |
| to                                               | String | Address of the recipient of the token.                                                                                              |
| dstTokenSymbol                                   | String | Symbol of token to be received as a result of swap.                                                                                 |
| srcChainId                                       | String | <p>Source Chain Id. By default, Ethereum mainnet.<br>Refer to the <a href="../../ids/chain-ids">Chain ID </a>page for details. </p> |
| srcChainSymbol                                   | String | Source Chain Symbol.                                                                                                                |
| slippage                                         | String | <p>Percentage of total swap value. <br>By default, 1.</p><p>0 <= slippage  value <= 100</p>                                         |
| gasPriority                                      | String | low, medium, or high.                                                                                                               |
| transferMode                                     | String | Mode of transport-`bus` or `taxi`. By default, `taxi`                                                                               |

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

```json
{
    "srcChainId": "8453",
    "dstChainId": "1",
    "srcTokenSymbol": "ETH",
    "dstTokenSymbol": "ETH",
    "amountIn": "10000000000000000",
    "gas": "80000",
    "bridgeId": "500",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "to": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "amountOutMin": "0",    
    "transferMode": "bus"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0xdc181Bd607330aeeBEF6ea62e03e5e1Fb4B6F7C7",
        "value": "20667275745583704",
        "gas": "80000",
        "data": "0xc7c7f5b300000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000025e5d4ad8962560000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b4020000000000000000000000000000000000000000000000000000000000007595000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010100000000000000000000000000000000000000000000000000000000000000",
        "estimationCheck": true,
        "referenceId": "7deb208a16e5441d98f0703c1eac132d"
    }
}
```

{% endtab %}
{% endtabs %}

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

```json
{
    "srcChainId": "8453",
    "dstChainId": "1",
    "srcTokenSymbol": "ETH",
    "dstTokenSymbol": "ETH",
    "amountIn": "10000000000000000",
    "gas": "80000",
    "bridgeId": "500",
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "to": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "amountOutMin": "0",
    "transferMode": "bus",
    "gasPriority": "low"
}
```

{% endtab %}

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

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0xdc181Bd607330aeeBEF6ea62e03e5e1Fb4B6F7C7",
        "value": "20667275745583704",
        "gas": "80000",
        "data": "0xc7c7f5b300000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000025e5d4ad8962560000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b4020000000000000000000000000000000000000000000000000000000000007595000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010100000000000000000000000000000000000000000000000000000000000000",
        "gasPrice": "7825180",
        "estimationCheck": "Returned error: failed with 140000000 gas: insufficient funds for gas * price + value: address 0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402 have 0 want 20667275745583704",
        "referenceId": "de4c9482c5834faaa1c984928fe84200"
    }
}
```

{% endtab %}
{% endtabs %}

### /addliquidity

Loan your assets to the specified bridge.

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

#### Request Body

| Name                                             | Type   | Description                                                                                                                         |
| ------------------------------------------------ | ------ | ----------------------------------------------------------------------------------------------------------------------------------- |
| bridgeId                                         | String | Refer to the [Bridge ID](https://docs.expand.network/ids/bridge-ids) page for details.                                              |
| rpc                                              | String | Remote procedural call URL.                                                                                                         |
| srcChainId                                       | String | <p>Source Chain Id. By default, Ethereum mainnet.<br>Refer to the <a href="../../ids/chain-ids">Chain ID </a>page for details. </p> |
| srcTokenSymbol<mark style="color:red;">\*</mark> | String | Symbol of token to add liquidity.                                                                                                   |
| from<mark style="color:red;">\*</mark>           | String | Address of the sender of the token.                                                                                                 |
| amountIn<mark style="color:red;">\*</mark>       | String | Amount of token to add liquidity.                                                                                                   |
| gas<mark style="color:red;">\*</mark>            | String | Maximum gas limit provided by the sender, for the transaction.                                                                      |
| gasPriority                                      | String | low, medium, or high.                                                                                                               |

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

```json
{
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "amountIn": "10000000000000000",
    "srcChainId": "8453",
    "srcTokenSymbol": "ETH",
    "gas": "2002",
    "bridgeId": "500"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0xdc181Bd607330aeeBEF6ea62e03e5e1Fb4B6F7C7",
        "value": "10000000000000000",
        "gas": "2002",
        "data": "0x47e7ef24000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402000000000000000000000000000000000000000000000000002386f26fc10000",
        "estimationCheck": true,
        "referenceId": "b368c9f69c0447059b2bf6bba32ff766"
    }
}
```

{% endtab %}
{% endtabs %}

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

```json
{
    "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
    "amountIn": "10000000000000000",
    "srcChainId": "8453",
    "srcTokenSymbol": "ETH",
    "gas": "2002",
    "bridgeId": "500",
   "gasPriority": "medium"
}
```

{% endtab %}

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

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "8453",
        "from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
        "to": "0xdc181Bd607330aeeBEF6ea62e03e5e1Fb4B6F7C7",
        "value": "10000000000000000",
        "gas": "2002",
        "data": "0x47e7ef24000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b402000000000000000000000000000000000000000000000000002386f26fc10000",
        "gasPrice": "9165589",
        "estimationCheck": true,
        "referenceId": "b0d590d48c10479eabbe5fd8cbb352fc"
    }
}
```

{% endtab %}
{% endtabs %}

### /removeliquidity

Remove user liquidity across multiple chains.

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

#### Request Body

| Name                                             | Type   | Description                                                                                                                         |
| ------------------------------------------------ | ------ | ----------------------------------------------------------------------------------------------------------------------------------- |
| bridgeId                                         | String | Refer to the [Bridge ID](https://docs.expand.network/ids/bridge-ids) page for details.                                              |
| rpc                                              | String | Remote procedural call URL.                                                                                                         |
| srcChainId                                       | String | <p>Source Chain Id. By default, Ethereum mainnet.<br>Refer to the <a href="../../ids/chain-ids">Chain ID </a>page for details. </p> |
| srcTokenSymbol<mark style="color:red;">\*</mark> | String | Symbol of token to add liquidity.                                                                                                   |
| from<mark style="color:red;">\*</mark>           | String | Address of the sender of the token.                                                                                                 |
| to<mark style="color:red;">\*</mark>             | String | Address of the reciever of the token.                                                                                               |
| amountOut<mark style="color:red;">\*</mark>      | String | Amount of token to remove liquidity.                                                                                                |
| gas<mark style="color:red;">\*</mark>            | String | Maximum gas limit provided by the sender, for the transaction.                                                                      |
| gasPriority                                      | String | low, medium, or high.                                                                                                               |

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

```json
{
    "srcChainId": "1",
    "bridgeId": "500",
    "srcTokenSymbol": "ETH",
    "amountOut": "10000000",
    "gas": "400000",
    "from": "0xe58Aa11A1AD425b12B4a3155124245cd36DA4f5e",
    "to": "0xe58Aa11A1AD425b12B4a3155124245cd36DA4f5e"
}
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xe58Aa11A1AD425b12B4a3155124245cd36DA4f5e",
        "to": "0x77b2043768d28E9C9aB44E1aBfC95944bcE57931",
        "value": "0",
        "gas": "47589",
        "data": "0x7bde82f20000000000000000000000000000000000000000000000000000000000989680000000000000000000000000e58aa11a1ad425b12b4a3155124245cd36da4f5e",
        "estimationCheck": true,
        "referenceId": "4d56aef5b4c94408b983c10bfbb5e4a6"
    }
}
```

{% endtab %}
{% endtabs %}

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

```json
{
    "srcChainId": "1",
    "bridgeId": "500",
    "srcTokenSymbol": "ETH",
    "amountOut": "10000000",
    "gas": "400000",
    "from": "0xe58Aa11A1AD425b12B4a3155124245cd36DA4f5e",
    "to": "0xe58Aa11A1AD425b12B4a3155124245cd36DA4f5e",
    "gasPriority": "high"
}
```

{% endtab %}

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

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "chainId": "1",
        "from": "0xe58Aa11A1AD425b12B4a3155124245cd36DA4f5e",
        "to": "0x77b2043768d28E9C9aB44E1aBfC95944bcE57931",
        "value": "0",
        "gas": "47589",
        "data": "0x7bde82f20000000000000000000000000000000000000000000000000000000000989680000000000000000000000000e58aa11a1ad425b12b4a3155124245cd36da4f5e",
        "gasPrice": "36342138491",
        "estimationCheck": true,
        "referenceId": "aeb9a7490c744503902302842b9c31b5"
    }
}
```

{% endtab %}
{% endtabs %}
