The bracha of the eruv is recited when the communal food arrangement is established. It belongs to the mitzvah of eruv chatzeiros or shitufei mevo'os, together with the act that joins the residents through the food. It is not a bracha on a wire, pole, wall, or other part of the physical perimeter.

The Alter Rebbe gives the bracha as:

ברוך אתה ה' אלקינו מלך העולם אשר קדשנו במצותיו וצונו על מצות עירוב

He then gives a declaration describing the carrying permitted through the eruv. For eruv chatzeiros, the declaration refers to carrying from the houses to the courtyard, from the courtyard to the houses, and from one house to another. (Shulchan Aruch Harav, Orach Chaim 366:18.)

When the bracha is made

The bracha is made at the act that establishes the communal participation. When food is being collected from the residents, it is recited in connection with that collection. When one person supplies the food and grants shares in it to the residents through zikui, the bracha is recited when those shares are granted. The Alter Rebbe explains the timing by the ordinary rule that a birchas hamitzvos is recited before performing the mitzvah. (Orach Chaim 366:18; 395:1.)

In the customary communal arrangement, the decisive act is often the zikui. The food is handed to a qualifying person who acquires it on behalf of the congregation. The Alter Rebbe records the practice of giving the eruv to the Rav to acquire for the entire community, and he states that the person making or effecting that zikui can recite the bracha at that point.

The declaration follows the actual arrangement

The wording of the declaration reflects what the food is doing. For a shitufei mevo'os, the Alter Rebbe directs that the declaration state that the shituf permits carrying between the courtyards and the mavoi. When the shituf is made with bread and is also being relied upon in place of separate eruvei chatzeiros, the declaration is expanded to include carrying between the courtyards and the houses as well. (Orach Chaim 395:1.)

This follows the distinction between the two communal institutions. Eruv chatzeiros joins the dwellings around a courtyard. Shitufei mevo'os joins the courtyards that share a mavoi. Bread can allow one communal shituf to serve both functions where the halachic conditions are satisfied.

If the bracha was omitted

The bracha is the required birchas hamitzvos when establishing the eruv, but it is not an element that makes an otherwise invalid arrangement valid. The Alter Rebbe rules expressly that if the communal food was established without the bracha or without the declaration, the omission does not invalidate the eruv or shituf. (Orach Chaim 366:18; 395:1.)

The reverse is equally important. Reciting the bracha does not cure a defect in the communal food, its zikui, or the physical perimeter. The blessing accompanies a valid halachic act. It does not replace the act.

What the mitzvah refers to here

In these halachos, the Alter Rebbe writes that it is a mitzvah to seek the establishment of eruv chatzeiros so that people will not come to carry in violation of Shabbos. In the laws of shituf he writes similarly that it is a mitzvah to seek shitufei mevo'os. The bracha of al mitzvas eruv appears in that same context. (Orach Chaim 366:18; 395:1.)

This communal mitzvah should therefore be kept conceptually distinct from the engineering and halachic questions of the perimeter. A community may need walls, fences, tzuras hapesach, or other valid boundaries before the communal food can operate across the area. Those boundaries are addressed under the physical enclosure pages. The bracha described here is made on the communal eruv or shituf established with food.