What is the purpose of the 'require' statement in Solidity?
-
A
To import external libraries at compile time
-
B
To validate conditions and revert the transaction with a message if the condition is false
-
C
To declare a variable that cannot be changed after deployment
-
D
To emit an event on the blockchain