The paper reports for the first time the heat and particle exhaust at the plasma boundary through various edge diagnostics for the high-performance plasma obtained after pellet injection on Wendelstein 7-X. The plasma density at the edge is found to be reduced by a factor of 2 in the high-performance phase, supporting the previously reported density peaking at the plasma centre. The plasma beta effect on the magnetic topology is reflected by the appearance of the second strike line, which is well understood with simulation. However, during the rapid decay phase of the enhanced confinement, a transient localized heat flow of up to 16 MW m−2 is observed at the leading edge of a poorly cooled divertor component, which has not been understood but raises concerns about machine safety