diff --git a/sdk/route/src/automatic.ts b/sdk/route/src/automatic.ts index c7b240c3c..7b89ff2d6 100644 --- a/sdk/route/src/automatic.ts +++ b/sdk/route/src/automatic.ts @@ -160,6 +160,13 @@ export class NttAutomaticRoute ntt: params.normalizedParams.sourceContracts, }); + if (!(await ntt.isRelayingAvailable(toChain.chain))) { + return { + success: false, + error: new Error(`Relaying to chain ${toChain.chain} is not available`), + }; + } + const deliveryPrice = await ntt.quoteDeliveryPrice( toChain.chain, params.normalizedParams.options