Glossary

`require(condition, message)`

Use for input validation and precondition checks. When the condition is false, the transaction reverts and the error message is returned to the caller. Remaining gas is refunded.

Learn More

Related Terms