LI.FI — Returns all possible connections between two chains.
lifi_get_v1_connectionsThis endpoint gives information about all possible transfers between chains. Uses the caller's OpenAny gateway credentials. Charges and authorization are determined by the gateway.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toChain | Yes | The chain that should be the end of the possible connections. | |
| toToken | No | Only return connections ending with this token. | |
| fromChain | Yes | The chain that should be the start of the possible connections. | |
| fromToken | No | Only return connections starting with this token. | |
| chainTypes | No | Restrict the resulting connections to the given chainTypes. Available values: EVM, SVM, UTXO, MVM, TVM, STL. | |
| denyBridges | No | List of bridges that are not allowed for this transaction. Retrieve the current catalog from the `/v1/tools` endpoint. | |
| allowBridges | No | List of bridges that are allowed for this transaction. Retrieve the current catalog from the `/v1/tools` endpoint. | |
| denyExchanges | No | List of exchanges that are not allowed for this transaction. Retrieve the current catalog from the `/v1/tools` endpoint. | |
| preferBridges | No | List of bridges that should be preferred for this transaction. Retrieve the current catalog from the `/v1/tools` endpoint. | |
| allowExchanges | No | List of exchanges that are allowed for this transaction. Retrieve the current catalog from the `/v1/tools` endpoint. | |
| preferExchanges | No | List of exchanges that should be preferred for this transaction. Retrieve the current catalog from the `/v1/tools` endpoint. | |
| allowSwitchChain | No | Whether connections that require chain switch should be included in the response. | |
| allowDestinationCall | No | Whether connections that includes destination call should be included in the response. |