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

# Struct NewNote

Module: `noir_aztec::note::lifecycle`

```rust
pub struct NewNote<Note> {
    pub note: Note,
    pub owner: AztecAddress,
    pub storage_slot: Field,
    pub randomness: Field,
    pub note_hash_counter: u32,
}
```

A note that was created in the current contract call.

This struct holds a freshly created note along with the side-effect counter that the kernel uses to order note creations within a transaction. It is produced by [`create_note`](/aztec-nr-api/mainnet/noir_aztec/note/lifecycle/fn.create_note.md) and is typically wrapped in a [`NoteMessage`](/aztec-nr-api/mainnet/noir_aztec/note/struct.NoteMessage.md), which is responsible for delivering the note's information to its recipient so that it is not lost.

Unlike [`ConfirmedNote`](/aztec-nr-api/mainnet/noir_aztec/note/struct.ConfirmedNote.md), which represents a note whose existence has been proven (either by reading it from PXE or by checking historical state), a `NewNote` represents a note whose creation is still pending in the current transaction's side-effect stream. Its note hash has been pushed into the [`PrivateContext`](/aztec-nr-api/mainnet/noir_aztec/context/struct.PrivateContext.md) but has not yet been siloed nor inserted into the note hash tree.

## Fields

```rust
note: Note
```

```rust
owner: AztecAddress
```

```rust
storage_slot: Field
```

```rust
randomness: Field
```

```rust
note_hash_counter: u32
```

## Implementations

```rust
impl<Note> NewNote<Note>
```
