# JournaledGrain&lt;TGrainState, TEventBase&gt;.RetrieveConfirmedEvents(int, int)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.journaledgrain-2/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.journaledgrain-2/methods/)

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.EventSourcing/JournaledGrain.cs#L185-L190)

```csharp
protected Task<IReadOnlyList<TEventBase>> JournaledGrain<TGrainState, RetrieveConfirmedEvents(int fromVersion, int toVersion)
```

Retrieves a segment of the confirmed event sequence, possibly from storage. Throws `System.NotSupportedException` if the events are not available to read. Whether events are available, and for how long, depends on the providers used and how they are configured.

### Parameters

- `fromVersion` (`int`): the position of the event sequence from which to start
- `toVersion` (`int`): the position of the event sequence on which to end

### Returns

a task which returns the sequence of events between the two versions
