Loans contracted or guaranteed by States are called sovereign loans. To benefit from them, States must be in a position to borrow and have a low level of debt.
Another possibility: a country whose debt has returned to a low level following a debt relief program, in the context of the Heavily Indebted Poor Countries (HIPC) Initiative. This is, for example, the case with Senegal.