ContractEventPayload
A ContractEventPayload is included as the last parameter to Contract Events when the event is known.
Extends
Properties
Property | Modifier | Type | Description | Overrides | Inherited from |
---|---|---|---|---|---|
args | readonly | Result | The parsed arguments passed to the event by emit . | - | - |
emitter | readonly | EventEmitterable <ContractEventName > | The EventEmitterable. | ContractUnknownEventPayload .emitter | ContractUnknownEventPayload .emitter |
filter | readonly | ContractEventName | The event filter. | ContractUnknownEventPayload .filter | ContractUnknownEventPayload .filter |
fragment | readonly | EventFragment | The matching event. | - | - |
log | readonly | EventLog | The log, with parsed properties. | ContractUnknownEventPayload .log | ContractUnknownEventPayload .log |
Accessors
eventName
The event name.
Returns
string
Source
eventSignature
The event signature.
Returns
string
Source
Methods
getBlock()
Resolves to the block the event occured in.
Parameters
Parameter | Type | Description |
---|---|---|
shard | Shard | The shard to get the block from. |
Returns
Promise
<Block
>
A promise resolving to the block the event occured in.
Inherited from
ContractUnknownEventPayload
.getBlock
Source
getTransaction()
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
getTransactionReceipt()
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
removeListener()
Unregister the triggered listener for future events.
Returns
Promise
<void
>
Inherited from
ContractUnknownEventPayload
.removeListener
Source
Was this page helpful?