Tentions question

Can I use 4A power transformator with a driver '' L298N '' wich supports 2A ?

Yes

You could use a 100 amp transformer . . .

Your transformer voltage needs to be within specifications though.

Yes, but as you have been told, you probably can't use an L298 with your stepper motor.
And certainly not at 2Amp per phase.
Leo..

Assuming it is not just a transformer and has a DC output..

Imadora:
Can I use 4A power transformator with a driver '' L298N '' wich supports 2A ?

I believe something's lost in translation. What is your definition of a "power transformator"?

Imadora:
a driver '' L298N '' wich supports 2A ?

2A if the voltage is 12V, at 24V you sohuldn't use more than 1A.
Max 25W...