noun
temple/shrine lottery
Historical term for a lottery held by a Buddhist temple or Shinto shrine, often to raise funds.
江戸時代には、寺社が富くじを開いて資金を集めた。
In the Edo period, temples and shrines held lotteries to raise funds.
宝くじ is the modern public lottery, while 富くじ refers specifically to historical temple/shrine lotteries.
Compound of 富 (tomi, 'wealth') and くじ (kuji, 'lottery'). The exact historical origin is uncertain, but the term is associated with Edo-period fundraising lotteries.