> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/v6.0.0/llms.txt

# Function emit_event_in_public

Module: `noir_aztec::event::event_emission`

```rust
pub unconstrained fn emit_event_in_public<Event>(context: PublicContext, event: Event)
where
    Event: EventInterface,
    Event: Serialize
```

Equivalent to `self.emit(event)`: see [`crate::contract_self::ContractSelfPublic::emit`](/aztec-nr-api/v6.0.0/noir_aztec/contract_self/contract_self_public/struct.ContractSelfPublic.md#emit).
