Skip to main content

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
NameTypeDescription
options?ContractEventOptionsThe options used to subscribe for the event
Returns

LogsSubscription

  • A Promise resolved with LogsSubscription object

Defined in

web3-eth-contract/src/contract.ts:164