There are two types of foam insulation that are very popular today: rigid foam insulation and spray foam insulation. They are both very good options for your wall insulation.
Rigid foam boards
Rigid foam insulation is a great option if you are trying to insulate a space that might have moisture in it, making it ideal for basement walls. It has a high R-value (between R-4 and R-6 per inch) and is installed in a manner that allows it to keep the high R-value. The foam board is installed directly to the foundation of the wall, which keeps it in place and makes it easy to avoid any gaps. Spray foam is used for any gaps between the boards, or surfaces that don’t allow for a flat board to be installed, creating a continuous shield of insulation around your home.
Injection foam insulation
Spray foam insulation is another great option for wall insulation. It comes out as foam that can go in through a small space, such as al hole in your wall. It then goes and forms itself to the wall, where it sticks and hardens. This makes it a good choice since it will cover the entirety of the wall while also sealing any holes.