The term “layer-2” refers to a software or hardware layer operating on top of an existing blockchain protocol. It allows…