Contract global variables

Every contract has the following three global functions:

  • this: The current contract's type, explicitly convertible to address
  • selfdestruct: This is an address recipient that destroys the current contract, sending its funds to the given address
  • suicide: This is an address recipient too alias to selfdestruct

Get Solidity Programming Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.