What is the role of a smart contract in a decentralized application (DApp)?
B. To execute predefined rules and logic
Smart contracts in DApps are used to automatically enforce the terms of an agreement or execute predefined rules and logic without the need for intermediaries.