Get Supported Chains
Fetch the list of chains supported by the routing engine
Fetch supported chains from Zert's backend.
get
Retrieves the list of supported chains.
Parameters
None.
Returns
A Promise that resolves to ChainsResponse.
data.chains(Chain[]): List of chains.meta.requestId(string): Request identifier.meta.timestamp(string): Response timestamp.
Each Chain has: id (e.g. eth-mainnet) and name.
import { RoutingEngineSDK } from 'routing-engine-sdk';
const sdk = new RoutingEngineSDK({
api: { apiKey: 'your-api-key' },
});
try {
const response = await sdk.chains.get();
console.log(response.data.chains);
} catch (error) {
console.error(error);
}Last updated

