web3.js
Classes
Type Aliases
ContractBoundEvent
Ƭ ContractBoundEvent: (options?
: ContractEventOptions
) => LogsSubscription
Type declaration
▸ (options?
): LogsSubscription
The event object can be accessed from myContract.events.myEvent
.
> Remember: To subscribe to an event, your provider must have support for subscriptions.
const subscription = await myContract.events.MyEvent([options])
Parameters
Name | Type | Description |
---|---|---|
options? | ContractEventOptions | The options used to subscribe for the event |
Returns
LogsSubscription
- A Promise resolved with LogsSubscription object