Supported Routes
Relay currently supports multiple cross chain routes. The following section explains how to find if a particular routes and token pair are supported by Relay
How to check if a route is supported?
To determine if a route is supported (also referred to as whether a token is supported for bridging), use the Chains API to check for an available route between a given token pair.
The response will return a list of chains, each containing supported token pairs. To verify if a route is supported, follow these steps:
-
Look for the
tokenSupport
field in the response for a given chain:- If
tokenSupport
isAll
, then all routes involving this chain as either the origin or destination are supported for all tokens. - If
tokenSupport
isLimited
, proceed to step 2.
- If
-
If
tokenSupport
isLimited
, check theerc20Currencies
field in the response. This field contains an array of token objects with metadata indicating whether a token supports bridging. -
Locate the
supportsBridging
field in the token object:- If
supportsBridging
istrue
, the token is supported for bridging. - If
supportsBridging
isfalse
or if the token pair is not listed inerc20Currencies
, then the route is not supported.
- If
Examples of Supported and Limited Token Routes
Example: All Tokens Supported
Since the tokenSupport
field is All
, every token on this chain is supported for all routes.
Example: Limited Token Support
Here, tokenSupport
is Limited
, meaning only specific tokens can be bridged. In this case, usdc
is listed under erc20Currencies
with supportsBridging: true
, so routes involving usdc
as an origin or destination token on Zora are supported.