> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# UndecodedEventLog

An **EventLog** contains additional properties parsed from the [**Log**](/sdk/content/classes/Log).

## Extends

* [`Log`](/sdk/content/classes/Log)

## Properties

| Property           | Modifier   | Type                                           | Description                                                                                                                                                                                                                                                                 | Inherited from                                       |
| :----------------- | :--------- | :--------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------- |
| `address`          | `readonly` | `string`                                       | The address of the contract that emitted this log.                                                                                                                                                                                                                          | [`Log`](/sdk/content/classes/Log).`address`          |
| `blockHash`        | `readonly` | `string`                                       | The block hash of the block this log occurred in. Use the [**Log.getBlock**](/sdk/content/classes/Log#getblock) to get the<br />[**Block**](/sdk/content/classes/Block).                                                                                                    | [`Log`](/sdk/content/classes/Log).`blockHash`        |
| `blockNumber`      | `readonly` | `number`                                       | The block number of the block this log occurred in. It is preferred to use the Block.hash \| **Block.hash**<br />when fetching the related [**Block**](/sdk/content/classes/Block), since in the case of an orphaned block, the block at that<br />height may have changed. | [`Log`](/sdk/content/classes/Log).`blockNumber`      |
| `data`             | `readonly` | `string`                                       | The data included in this log when it was emitted.                                                                                                                                                                                                                          | [`Log`](/sdk/content/classes/Log).`data`             |
| `error`            | `readonly` | `Error`                                        | The error encounted when trying to decode the log.                                                                                                                                                                                                                          | -                                                    |
| `index`            | `readonly` | `number`                                       | The index within the block this log occurred at. This is generally not useful to developers, but can be used with<br />the various roots to proof inclusion within a block.                                                                                                 | [`Log`](/sdk/content/classes/Log).`index`            |
| `provider`         | `readonly` | [`Provider`](/sdk/content/interfaces/Provider) | The provider connected to the log used to fetch additional details if necessary.                                                                                                                                                                                            | [`Log`](/sdk/content/classes/Log).`provider`         |
| `removed`          | `readonly` | `boolean`                                      | If the **Log** represents a block that was removed due to an orphaned block, this will be true.<br /><br />This can only happen within an orphan event listener.                                                                                                            | [`Log`](/sdk/content/classes/Log).`removed`          |
| `topics`           | `readonly` | readonly `string`\[]                           | The indexed topics included in this log when it was emitted.<br /><br />All topics are included in the bloom filters, so they can be efficiently filtered using the<br />[**Provider.getLogs**](/sdk/content/interfaces/Provider#getlogs) method.                           | [`Log`](/sdk/content/classes/Log).`topics`           |
| `transactionHash`  | `readonly` | `string`                                       | The transaction hash of the transaction this log occurred in. Use the<br />[**Log.getTransaction**](/sdk/content/classes/Log#gettransaction) to get the<br />[\*\*TransactionResponse](/sdk/content/type-aliases/TransactionResponse).                                      | [`Log`](/sdk/content/classes/Log).`transactionHash`  |
| `transactionIndex` | `readonly` | `number`                                       | The index within the transaction of this log.                                                                                                                                                                                                                               | [`Log`](/sdk/content/classes/Log).`transactionIndex` |

## Methods

### getBlock()

```ts theme={null}
getBlock(shard): Promise<Block>
```

Returns the block that this log occurred in.

#### Parameters

| Parameter | Type                                       | Description                        |
| :-------- | :----------------------------------------- | :--------------------------------- |
| `shard`   | [`Shard`](/sdk/content/enumerations/Shard) | The shard to fetch the block from. |

#### Returns

`Promise`\<[`Block`](/sdk/content/classes/Block)>

A promise resolving to the block.

#### Inherited from

[`Log`](/sdk/content/classes/Log).[`getBlock`](/sdk/content/classes/Log#getblock)

#### Source

[providers/provider.ts:1089](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/providers/provider.ts#L1089)

***

### getTransaction()

```ts theme={null}
getTransaction(): Promise<TransactionResponse>
```

Returns the transaction that this log occurred in.

#### Returns

`Promise`\<[`TransactionResponse`](/sdk/content/type-aliases/TransactionResponse)>

A promise resolving to the transaction.

#### Inherited from

[`Log`](/sdk/content/classes/Log).[`getTransaction`](/sdk/content/classes/Log#gettransaction)

#### Source

[providers/provider.ts:1100](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/providers/provider.ts#L1100)

***

### getTransactionReceipt()

```ts theme={null}
getTransactionReceipt(): Promise<TransactionReceipt>
```

Returns the transaction receipt fot the transaction that this log occurred in.

#### Returns

`Promise`\<[`TransactionReceipt`](/sdk/content/classes/TransactionReceipt)>

A promise resolving to the transaction receipt.

#### Inherited from

[`Log`](/sdk/content/classes/Log).[`getTransactionReceipt`](/sdk/content/classes/Log#gettransactionreceipt)

#### Source

[providers/provider.ts:1111](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/providers/provider.ts#L1111)

***

### toJSON()

```ts theme={null}
toJSON(): any
```

Returns a JSON-compatible object.

#### Returns

`any`

#### Inherited from

[`Log`](/sdk/content/classes/Log).[`toJSON`](/sdk/content/classes/Log#tojson)

#### Source

[providers/provider.ts:1065](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/providers/provider.ts#L1065)
