Function
A block of code in a smart contract that performs a specific task when called.
To put it in plain English
Functions are like buttons in an app. Press one, and something specific happens behind the scenes.
A block of code in a smart contract that performs a specific task when called.
Functions are like buttons in an app. Press one, and something specific happens behind the scenes.