Type alias BaseMultichainSmartAccount

BaseMultichainSmartAccount: {
    addressOn: {
        (chainId, strictMode): `0x${string}`;
        (chainId, strictMode?): undefined | `0x${string}`;
    };
    deploymentOn: {
        (chainId, strictMode): ModularSmartAccount;
        (chainId, strictMode?): undefined | ModularSmartAccount;
    };
    deployments: ModularSmartAccount[];
    signer: Signer;
}

Represents a smart account deployed across multiple chains

Type declaration

  • addressOn: {
        (chainId, strictMode): `0x${string}`;
        (chainId, strictMode?): undefined | `0x${string}`;
    }

    Function to retrieve the address of the account on a specific chain

    Returns

    The address of the account on the specified chain

    Throws

    Error if no deployment exists for the specified chain and strictMode is true

      • (chainId, strictMode): `0x${string}`
      • Parameters

        • chainId: number

          The ID of the chain to query

        • strictMode: true

          Whether to throw an error if no deployment exists for the specified chain

        Returns `0x${string}`

      • (chainId, strictMode?): undefined | `0x${string}`
      • Parameters

        • chainId: number

          The ID of the chain to query

        • Optional strictMode: false

          Whether to throw an error if no deployment exists for the specified chain

        Returns undefined | `0x${string}`

  • deploymentOn: {
        (chainId, strictMode): ModularSmartAccount;
        (chainId, strictMode?): undefined | ModularSmartAccount;
    }

    Function to retrieve deployment information for a specific chain

    Returns

    The smart account deployment for the specified chain

    Throws

    Error if no deployment exists for the specified chain and strictMode is true

      • (chainId, strictMode): ModularSmartAccount
      • Parameters

        • chainId: number

          The ID of the chain to query

        • strictMode: true

          Whether to throw an error if no deployment exists for the specified chain

        Returns ModularSmartAccount

      • (chainId, strictMode?): undefined | ModularSmartAccount
      • Parameters

        • chainId: number

          The ID of the chain to query

        • Optional strictMode: false

          Whether to throw an error if no deployment exists for the specified chain

        Returns undefined | ModularSmartAccount

  • deployments: ModularSmartAccount[]

    Array of minimal MEE smart account instances across different chains

  • signer: Signer

    The signer associated with this multichain account