Skip to main content

Since January 2026, we are unfortunately unable to actively maintain or develop ink! further.

We have written down the details in a Polkadot Forum post.

Version: v5
Attention!You are viewing outdated ink! 5 docs. Click here to view the latest docs.

Text/event2 Title Picture

Applicable on struct definitions.

Defines an ink! event. A contract can define multiple such ink! events.

Events can now be defined independently of contracts. The legacy syntax of events defined within a contract module using #[ink(event)] continues to be valid.

See our section on Events for a detailed description and examples.