Function createDestIdMultilocationData

  • Creates a destination multilocation object for the deposit transaction.

    Example

    // Create a destination multilocation object
    const address = '0x123abc';
    const domainId = '42';
    const multilocationData = createDestIdMultilocationData(address, domainId);
    console.log(multilocationData);
    // Output: {
    // parents: 0,
    // interior: {
    // x2: [
    // { generalKey: '0x123abc' },
    // { generalKey: '0x2a' }
    // ]
    // }
    // }

    Returns

    • The destination multilocation object.

    Parameters

    • address: string

      The recipient address.

    • domainId: string

      The domain identifier.

    Returns object

Generated using TypeDoc