Skip to main content

teleport-sdk.getdefaultdstdomain

Home > teleport-sdk > getDefaultDstDomain

getDefaultDstDomain() function

Get the default target domain for a given source domain

Signature:
export declare function getDefaultDstDomain(srcDomain: DomainDescription): DomainId;

Parameters

ParameterTypeDescription
srcDomainDomainDescriptionsource domain's DomainId
Returns:

DomainId

target domain's DomainId

Remarks

This usually means L2 -> L1 for rollup chains on Ethereum