@EnjoyCapitalism Since there is no expectant right or claim before death, this is not possible. After death, you can assign (sell) your share of the inheritance. Before death, a waiver of inheritance in favor of another person would be conceivable, who would then offer money for it accordingly.
@tim1 so if I contractually stipulate that someone pays me a sum X and is entitled to my full inheritance in return, provided there is no compulsory heir, would that be legally binding?
@EnjoyCapitalism that would be an inheritance contract. The contract creates a bond and the person would then be your heir. This is also conceivable if there are beneficiaries entitled to a compulsory portion. They would have to claim their compulsory portion against the heir.