// All supported chains, keyed by chainIdconst chains = await dzap.getAllSupportedChains();// Same data, but cached across calls (static method, no args)const cachedChains = await DZapClient.getChainConfig();// Router/DCA/zap contract address for one chain + service (async)const router = await dzap.getDZapContractAddress({ chainId: 8453, service: 'trade' });
Use these instead of hard-coding addresses or chain IDs, both shift over time.