How to blend attack animation to idle state?

No file was uploaded it seems.
Would need to see that to understand what you mean.

Generally. The idle animation would resume from where it left off, so its not a guarantee that making a specific animation that lerps to frame 0 would blend correctly.
(It would still blend more correctly than other stuff though).