In 798, the kansha shrines were divided into Kanpeisha which continued to receive heihaku from Jingikan, and Kokuheisha which received heihaku from a kokushi (provincial governor) of the ryoseikoku (province) in where that shrine was.
これが、延暦17年（798年）、それまで通り神祇官から幣帛を受ける官幣社と、その令制国の国司から幣帛を受ける国幣社とに分けられた。