---
title: "Returns all possible connections between two chains."
method: GET
path: "/v1/connections"
---

# Returns all possible connections between two chains.

`GET /v1/connections`

## Request

- Base URL: `https://li.quest`
- URL: `https://li.quest/v1/connections`
- Auth: none declared
- TypeScript: <https://skmtc.dev/lifi/apis/li-fi-api/docs/v1/connections/get.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint gives information about all possible transfers between chains.
`fromChain` and `toChain` are required. Additional filters such as token, bridge, and exchange can be used to narrow the result further.
Information about which chains and tokens are supported can be taken from the response of the /v1/chains endpoint.
Information about which bridges and exchanges are supported can be taken from the response of the `/v1/tools` endpoint.

## Query parameters

- `fromChain` string, required
- `toChain` string, required
- `fromToken` string
- `toToken` string
- `chainTypes` string
- `allowBridges` string[]
- `denyBridges` string[]
- `preferBridges` string[]
- `allowExchanges` string[]
- `denyExchanges` string[]
- `preferExchanges` string[]
- `allowSwitchChain` boolean
- `allowDestinationCall` boolean

## Headers

- `x-lifi-api-key` string

## Response `200`

- ConnectionsResponse
  - `connections` Connection[]: The possible connections
    - `fromChainId` number, required: The sending chain
    - `toChainId` number, required: The receiving chain
    - `fromTokens` BaseToken[], required: List of possible tokens that can be sent
      - `address` string, required: Address of the token
      - `chainId` number, required: Id of the token's chain
    - `toTokens` BaseToken[], required: List of tokens that can be received
      - `address` string, required: Address of the token
      - `chainId` number, required: Id of the token's chain

---

[API](https://skmtc.dev/lifi/apis/li-fi-api.md) - [All operations](https://skmtc.dev/lifi/apis/li-fi-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lifi/apis/li-fi-api/revisions/82e72a7fa5e0?raw)
