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

# ContractEventPayload

A **ContractEventPayload** is included as the last parameter to Contract Events when the event is known.

## Extends

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

## Properties

| Property   | Modifier   | Type                                                                                                                                | Description                                         | Overrides                                                                                   | Inherited from                                                                              |
| :--------- | :--------- | :---------------------------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------- | :------------------------------------------------------------------------------------------ | :------------------------------------------------------------------------------------------ |
| `args`     | `readonly` | [`Result`](/sdk/content/classes/Result)                                                                                             | The parsed arguments passed to the event by `emit`. | -                                                                                           | -                                                                                           |
| `emitter`  | `readonly` | [`EventEmitterable`](/sdk/content/interfaces/EventEmitterable)\<[`ContractEventName`](/sdk/content/type-aliases/ContractEventName)> | The **EventEmitterable**.                           | [`ContractUnknownEventPayload`](/sdk/content/classes/ContractUnknownEventPayload).`emitter` | [`ContractUnknownEventPayload`](/sdk/content/classes/ContractUnknownEventPayload).`emitter` |
| `filter`   | `readonly` | [`ContractEventName`](/sdk/content/type-aliases/ContractEventName)                                                                  | The event filter.                                   | [`ContractUnknownEventPayload`](/sdk/content/classes/ContractUnknownEventPayload).`filter`  | [`ContractUnknownEventPayload`](/sdk/content/classes/ContractUnknownEventPayload).`filter`  |
| `fragment` | `readonly` | [`EventFragment`](/sdk/content/classes/EventFragment)                                                                               | The matching event.                                 | -                                                                                           | -                                                                                           |
| `log`      | `readonly` | [`EventLog`](/sdk/content/classes/EventLog)                                                                                         | The log, with parsed properties.                    | [`ContractUnknownEventPayload`](/sdk/content/classes/ContractUnknownEventPayload).`log`     | [`ContractUnknownEventPayload`](/sdk/content/classes/ContractUnknownEventPayload).`log`     |

## Accessors

### eventName

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

The event name.

#### Returns

`string`

#### Source

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

***

### eventSignature

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

The event signature.

#### Returns

`string`

#### Source

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

## Methods

### getBlock()

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

Resolves to the block the event occured in.

#### Parameters

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

#### Returns

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

A promise resolving to the block the event occured in.

#### Inherited from

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

#### Source

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

***

### getTransaction()

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

Resolves to the transaction the event occured in.

#### Returns

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

A promise resolving to the transaction the event occured in.

#### Inherited from

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

#### Source

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

***

### getTransactionReceipt()

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

Resolves to the transaction receipt the event occured in.

#### Returns

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

A promise resolving to the transaction receipt the event occured in.

#### Inherited from

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

#### Source

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

***

### removeListener()

```ts theme={null}
removeListener(): Promise<void>
```

Unregister the triggered listener for future events.

#### Returns

`Promise`\<`void`>

#### Inherited from

[`ContractUnknownEventPayload`](/sdk/content/classes/ContractUnknownEventPayload).[`removeListener`](/sdk/content/classes/ContractUnknownEventPayload#removelistener)

#### Source

[utils/events.ts:99](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/utils/events.ts#L99)
