The amount which may be due from any contractor to his creditor may be recovered from said owner by the creditor of said contractor, in any action at law, to the extent and value of any balance due by the owner to his contractor under the contract with him, at the time of the notice first given as provided in § 44-9-10, or subsequently, according to such contract or under the same.
SDCL 44-9-12