- Try it
- Response
Router
Get Supported Routes for Bridge
Return all source/destination chain pairs supported by a specific bridge
Returns all source/destination chain pairs supported by a specific bridge.
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Return all source/destination chain pairs supported by a specific bridge
import { crapi, Chainrails } from "@chainrails/sdk"
Chainrails.config({
api_key: "your_api_key_here"
})
const routes = await crapi.router.getSupportedRoutes("ACROSS")
console.log("Supported routes:", routes)
[
{
"sourceChain": "BASE_MAINNET",
"destinationChain": "ARBITRUM_MAINNET"
},
{
"sourceChain": "BASE_MAINNET",
"destinationChain": "ETHEREUM_MAINNET"
},
{
"sourceChain": "ARBITRUM_MAINNET",
"destinationChain": "BASE_MAINNET"
}
]
Was this page helpful?
