# EventSource

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

[**@midnight/ledger v8.1.3**](https://docs.midnight.network/api-reference/ledger.md)

***

[@midnight/ledger](https://docs.midnight.network/api-reference/ledger/globals.md) / EventSource

# Type Alias: EventSource

```
type EventSource = {

  logicalSegment: number;

  physicalSegment: number;

  transactionHash: TransactionHash;

};
```

Where an event originated from

## Properties[​](#properties "Direct link to Properties")

### logicalSegment[​](#logicalsegment "Direct link to logicalSegment")

```
logicalSegment: number;
```

The logical event segment, that is, during which segment's execution the event was emitted.

***

### physicalSegment[​](#physicalsegment "Direct link to physicalSegment")

```
physicalSegment: number;
```

The physical event segment, that is, the segment of the transaction this event's trigger is contained in.

***

### transactionHash[​](#transactionhash "Direct link to transactionHash")

```
transactionHash: TransactionHash;
```

The hash of the originating transaction.
