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

# Struct OriginBlockState

Module: `noir_aztec::facts`

```rust
pub struct OriginBlockState
{ /* private fields */ }
```

Chain state of a retractable fact's origin block, mirroring the L2 chain tips.

## Implementations

```rust
impl OriginBlockState
```

```rust
pub fn pending() -> Self
```

```rust
pub fn proven() -> Self
```

```rust
pub fn finalized() -> Self
```

```rust
pub fn is_pending(self) -> bool
```

Whether the origin block is still above the proven tip.

```rust
pub fn is_proven(self) -> bool
```

Whether the origin block is proven but not yet finalized.

```rust
pub fn is_finalized(self) -> bool
```

Whether the origin block is finalized, and thus facts related to it can no longer be retracted.

## Trait implementations

```rust
impl Deserialize for OriginBlockState
```

```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 OriginBlockState
```

```rust
pub fn eq(self, other: Self) -> bool
```

```rust
impl Serialize for OriginBlockState
```

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

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