Get available chains
getChains
Fetches a list of all available chains supported by the SDK.
Parameters
client(SDKClient): The SDK client instance.params(ChainsRequest, optional): Configuration for the requested chains.chainTypes(ChainType[], optional): List of chain types.
options(RequestOptions, optional): Additional request options.
ExtendedChain objects.
Example
Get available bridges and DEXs
getTools
Fetches the tools available for bridging and swapping tokens.
Parameters
client(SDKClient): The SDK client instance.params(ToolsRequest, optional): Configuration for the requested tools.chains((ChainKey | ChainId)[], optional): List of chain IDs or keys.
options(RequestOptions, optional): Additional request options.
ToolsResponse and contains information about available bridges and DEXs.
Example
Get available connections
A connection is a pair of two tokens (on the same chain or on different chains) that can be exchanged via our platform. Read more Getting all possible ConnectionsgetConnections
Gets all the available connections for swapping or bridging tokens.
Parameters
client(SDKClient): The SDK client instance.connectionRequest(ConnectionsRequest): Configuration of the connection request.fromChain(number | string): The source chain ID or key.fromToken(string, optional): The source token address.toChain(number | string): The destination chain ID or key.toToken(string, optional): The destination token address.allowBridges(string[], optional): Allowed bridges.denyBridges(string[], optional): Denied bridges.preferBridges(string[], optional): Preferred bridges.allowExchanges(string[], optional): Allowed exchanges.denyExchanges(string[], optional): Denied exchanges.preferExchanges(string[], optional): Preferred exchanges.allowProtocols(string[], optional): Allowed protocols.denyProtocols(string[], optional): Denied protocols.allowSwitchChain(boolean, optional): Whether connections that require chain switch (multiple signatures) are included. Default is true.allowDestinationCall(boolean, optional): Whether connections that include destination calls are included. Default is true.chainTypes(ChainType[], optional): Types of chains to include.
options(RequestOptions, optional): Request options.
ConnectionsResponse.
Example

