Skip to main content
Version: v6
Attention!You are viewing unreleased ink! 6 docs. Click here to view the latest docs.

Env Function Title Picture

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 Self::env().caller() or self.env().caller().

Some handy functions include: