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:240


eventSignature

get eventSignature(): string

The event signature.

Returns

string

Source

contract/wrappers.ts:247

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:178


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:187


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:196


removeListener()

removeListener(): Promise<void>

Unregister the triggered listener for future events.

Returns

Promise<void>

Inherited from

ContractUnknownEventPayload.removeListener

Source

utils/events.ts:99