One who pays to the owner any part of the price of real property under an agreement for the purchase thereof has a special or vendee's lien upon the property independent of possession for such part of the amount paid as he may be entitled to recover back in case of failure of consideration.
SDCL 44-6-2