Smart contracts consist of mathematical algorithms (functions) that automatically perform different actions based on the user’s input.