> ## 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.

# EventLog

An **EventLog** contains additional properties parsed from the [**Log**](https://docs.qu.ai/sdk/content/classes/Log.md).

## Extends

* [`Log`](https://docs.qu.ai/sdk/content/classes/Log)

## Properties

| Property | Modifier | Type | Description | Inherited from |
| :- | :- | :- | :- | :- |
| `address` | `readonly` | `string` | The address of the contract that emitted this log. | [`Log`](https://docs.qu.ai/sdk/content/classes/Log).`address` |
| `args` | `readonly` | [`Result`](https://docs.qu.ai/sdk/content/classes/Result) | The parsed arguments passed to the event by `emit`. | - |
| `blockHash` | `readonly` | `string` | The block hash of the block this log occurred in. Use the [**Log.getBlock**](https://docs.qu.ai/sdk/content/classes/Log.md#getblock) to get the [**Block**](https://docs.qu.ai/sdk/content/classes/Block.md). | [`Log`](https://docs.qu.ai/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** when fetching the related [**Block**](https://docs.qu.ai/sdk/content/classes/Block.md), since in the case of an orphaned block, the block at that height may have changed. | [`Log`](https://docs.qu.ai/sdk/content/classes/Log).`blockNumber` |
| `data` | `readonly` | `string` | The data included in this log when it was emitted. | [`Log`](https://docs.qu.ai/sdk/content/classes/Log).`data` |
| `fragment` | `readonly` | [`EventFragment`](https://docs.qu.ai/sdk/content/classes/EventFragment) | The matching event. | - |
| `index` | `readonly` | `number` | The index within the block this log occurred at. This is generally not useful to developers, but can be used with the various roots to proof inclusion within a block. | [`Log`](https://docs.qu.ai/sdk/content/classes/Log).`index` |
| `interface` | `readonly` | [`Interface`](https://docs.qu.ai/sdk/content/classes/Interface) | The Contract Interface. | - |
| `provider` | `readonly` | [`Provider`](https://docs.qu.ai/sdk/content/interfaces/Provider) | The provider connected to the log used to fetch additional details if necessary. | [`Log`](https://docs.qu.ai/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. This can only happen within an orphan event listener. | [`Log`](https://docs.qu.ai/sdk/content/classes/Log).`removed` |
| `topics` | `readonly` | readonly `string`\[] | The indexed topics included in this log when it was emitted. All topics are included in the bloom filters, so they can be efficiently filtered using the [**Provider.getLogs**](https://docs.qu.ai/sdk/content/interfaces/Provider.md#getlogs) method. | [`Log`](https://docs.qu.ai/sdk/content/classes/Log).`topics` |
| `transactionHash` | `readonly` | `string` | The transaction hash of the transaction this log occurred in. Use the [**Log.getTransaction**](https://docs.qu.ai/sdk/content/classes/Log.md#gettransaction) to get the [\*\*TransactionResponse](https://docs.qu.ai/sdk/content/type-aliases/TransactionResponse.md). | [`Log`](https://docs.qu.ai/sdk/content/classes/Log).`transactionHash` |
| `transactionIndex` | `readonly` | `number` | The index within the transaction of this log. | [`Log`](https://docs.qu.ai/sdk/content/classes/Log).`transactionIndex` |

## Accessors

### eventName

```ts theme={null}
get eventName(): string
```

The name of the event.

#### Returns

`string`

#### Source

[contract/wrappers.ts:47](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/contract/wrappers.ts#L47)

***

### eventSignature

```ts theme={null}
get eventSignature(): string
```

The signature of the event.

#### Returns

`string`

#### Source

[contract/wrappers.ts:54](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/contract/wrappers.ts#L54)

## Methods

### getBlock()

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

Returns the block that this log occurred in.

#### Parameters

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

#### Returns

`Promise`\<[`Block`](https://docs.qu.ai/sdk/content/classes/Block)>

A promise resolving to the block.

#### Inherited from

[`Log`](https://docs.qu.ai/sdk/content/classes/Log).[`getBlock`](https://docs.qu.ai/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`](https://docs.qu.ai/sdk/content/type-aliases/TransactionResponse)>

A promise resolving to the transaction.

#### Inherited from

[`Log`](https://docs.qu.ai/sdk/content/classes/Log).[`getTransaction`](https://docs.qu.ai/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`](https://docs.qu.ai/sdk/content/classes/TransactionReceipt)>

A promise resolving to the transaction receipt.

#### Inherited from

[`Log`](https://docs.qu.ai/sdk/content/classes/Log).[`getTransactionReceipt`](https://docs.qu.ai/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`](https://docs.qu.ai/sdk/content/classes/Log).[`toJSON`](https://docs.qu.ai/sdk/content/classes/Log#tojson)

#### Source

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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.