Alaska Stat. § 22.25.030
(g) If there is no surviving spouse or surviving dependent child entitled to benefits under this section or if after payment of all survivors' benefits due under this section, less than the amount of contributions made by the justice or judge to the system under AS 22.25.011 and interest credited has been paid, the difference between the amount of contributions and the amount of benefits paid shall be paid to the designated beneficiary of the justice or judge. If there is no designated beneficiary or if no designated beneficiary survives the justice or judge, the balance of the contributions and interest credited shall be paid to the