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

# Struct LogRetrievalRequest

Module: `noir_aztec::messages::processing::log_retrieval_request`

```rust
pub struct LogRetrievalRequest {
    pub contract_address: AztecAddress,
    pub unsiloed_tag: Field,
    pub source: Field,
    pub from_block: Option<Field>,
    pub to_block: Option<Field>,
}
```

A request for the `bulk_retrieve_logs` oracle to fetch all logs matching a tag.

## Fields

```rust
contract_address: AztecAddress
```

```rust
unsiloed_tag: Field
```

```rust
source: Field
```

Which log source to query: public, private, or both (the default). See [`LogSource`](/aztec-nr-api/v6.0.0/noir_aztec/messages/processing/log_retrieval_request/global.LogSource.md).

```rust
from_block: Option<Field>
```

Inclusive lower bound on block number. When unset, logs from the first block are included.

```rust
to_block: Option<Field>
```

Exclusive upper bound on block number. When unset, logs up to the anchor block are included.

## Implementations

```rust
impl LogRetrievalRequest
```

## Trait implementations

```rust
impl Serialize for LogRetrievalRequest
```

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

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