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

# Struct UintNote

Module: `uint_note`

```rust
pub struct UintNote {
    pub value: u128,
}
```

A private note representing a numeric value associated to an account (e.g. a token balance).

## Fields

```rust
value: u128
```

The number stored in the note.

## Implementations

```rust
impl UintNote
```

```rust
pub fn partial(
    owner: AztecAddress,
    context: &mut PrivateContext,
    recipient: AztecAddress,
    completer: AztecAddress,
) -> PartialUintNote
```

Creates a partial note that will hide the owner but not the value or storage slot, since the note will be later completed in public. This is a powerful technique for scenarios in which the value cannot be known in private (e.g. because it depends on some public state, such as a DEX).

This function inserts a partial note validity commitment into the nullifier tree to be later on able to verify that the partial note and completer are legitimate. See function docs of `compute_validity_commitment` for more details.

Each partial note should only be used once, since otherwise multiple notes would be linked together and known to belong to the same owner.

As part of the partial note creation process, a log will be sent to `recipient` so that they can discover the note. `recipient` will typically be the same as `owner`.

## Trait implementations

```rust
impl Deserialize for UintNote
```

```rust
pub fn deserialize(fields: [Field; 1]) -> Self
```

```rust
pub fn stream_deserialize<let K: u32>(reader: &mut Reader<K>) -> Self
```

```rust
impl Eq for UintNote
```

```rust
pub fn eq(_self: Self, _other: Self) -> bool
```

```rust
impl NoteHash for UintNote
```

```rust
pub fn compute_note_hash(
    self,
    owner: AztecAddress,
    storage_slot: Field,
    randomness: Field,
) -> Field
```

```rust
pub fn compute_nullifier(
    self,
    context: &mut PrivateContext,
    owner: AztecAddress,
    note_hash_for_nullification: Field,
) -> Field
```

```rust
pub unconstrained fn compute_nullifier_unconstrained(
    self,
    owner: AztecAddress,
    note_hash_for_nullification: Field,
) -> Option<Field>
```

```rust
impl NoteProperties<UintNoteProperties> for UintNote
```

```rust
pub fn properties() -> UintNoteProperties
```

```rust
impl NoteType for UintNote
```

```rust
pub fn get_id() -> Field
```

```rust
impl Packable for UintNote
```

```rust
pub fn pack(self) -> [Field; 1]
```

```rust
pub fn unpack(packed: [Field; 1]) -> Self
```

```rust
impl Serialize for UintNote
```

```rust
pub fn serialize(self) -> [Field; 1]
```

```rust
pub fn stream_serialize<let K: u32>(self, writer: &mut Writer<K>)
```
