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

Extends

Properties

PropertyModifierTypeDescriptionOverridesInherited from
argsreadonlyResultThe parsed arguments passed to the event by emit.--
emitterreadonlyEventEmitterable<ContractEventName>The EventEmitterable.ContractUnknownEventPayload.emitterContractUnknownEventPayload.emitter
filterreadonlyContractEventNameThe event filter.ContractUnknownEventPayload.filterContractUnknownEventPayload.filter
fragmentreadonlyEventFragmentThe matching event.--
logreadonlyEventLogThe log, with parsed properties.ContractUnknownEventPayload.logContractUnknownEventPayload.log

Accessors

eventName

get eventName(): string

The event name.

Returns

string

Source

contract/wrappers.ts:238


eventSignature

get eventSignature(): string

The event signature.

Returns

string

Source

contract/wrappers.ts:245

Methods

getBlock()

getBlock(shard): Promise<Block>

Resolves to the block the event occured in.

Parameters

ParameterTypeDescription
shardShardThe shard to get the block from.

Returns

Promise<Block>

A promise resolving to the block the event occured in.

Inherited from

ContractUnknownEventPayload.getBlock

Source

contract/wrappers.ts:176


getTransaction()

getTransaction(): Promise<TransactionResponse>

Resolves to the transaction the event occured in.

Returns

Promise<TransactionResponse>

A promise resolving to the transaction the event occured in.

Inherited from

ContractUnknownEventPayload.getTransaction

Source

contract/wrappers.ts:185


getTransactionReceipt()

getTransactionReceipt(): Promise<TransactionReceipt>

Resolves to the transaction receipt the event occured in.

Returns

Promise<TransactionReceipt>

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

Inherited from

ContractUnknownEventPayload.getTransactionReceipt

Source

contract/wrappers.ts:194


removeListener()

removeListener(): Promise<void>

Unregister the triggered listener for future events.

Returns

Promise<void>

Inherited from

ContractUnknownEventPayload.removeListener

Source

utils/events.ts:99