Skip to main content
Version: 4.x

Environment Functions

ink! exposes a number of handy environment functions. A full overview is found here.

In an #[ink(constructor)] use Self::env() to access those, in an #[ink(message)] use self.env(). So e.g. Self::env().caller() or self.env().caller().

Some handy functions include: