abstractWeb3Subscription <EventMap, ArgsType, API, CombinedEventMap>
Hierarchy
- Web3EventEmitter<CombinedEventMap>
- Web3Subscription
Index
Constructors
Properties
Accessors
Methods
Constructors
publicconstructor
Type parameters
- EventMap: Web3EventMap
- ArgsType = any
- API: unknown = EthExecutionAPI
- CombinedEventMap: CommonSubscriptionEvents = EventMap & CommonSubscriptionEvents
Parameters
args: ArgsType
options: { returnFormat?: DataFormat; subscriptionManager: Web3SubscriptionManager<unknown, {}> }
optionalreturnFormat: DataFormat
subscriptionManager: Web3SubscriptionManager<unknown, {}>
Returns Web3Subscription<EventMap, ArgsType, API, CombinedEventMap>
Properties
publicreadonlyargs
Accessors
publicid
Returns undefined | string
publiclastBlock
Returns undefined | BlockOutput
Methods
public_processSubscriptionError
Parameters
error: Error
Returns void
public_processSubscriptionResult
Parameters
data: unknown
Returns void
publicemit
Type parameters
- K: string
Parameters
eventName: K
params: CombinedEventMap[K]
Returns void
publiceventNames
Returns (string | symbol)[]
publicgetMaxListeners
Returns number
publiclistenerCount
Type parameters
- K: string
Parameters
eventName: K
Returns number
publiclisteners
Type parameters
- K: string
Parameters
eventName: K
Returns (...args: any[]) => void[]
publicoff
Type parameters
- K: string
Parameters
eventName: K
fn: Web3EventCallback<CombinedEventMap[K]>
Returns void
publicon
Type parameters
- K: string
Parameters
eventName: K
fn: Web3EventCallback<CombinedEventMap[K]>
Returns void
publiconce
Type parameters
- K: string
Parameters
eventName: K
fn: Web3EventCallback<CombinedEventMap[K]>
Returns void
publicprocessSubscriptionData
Parameters
Returns void
publicremoveAllListeners
Returns EventEmitter
publicresubscribe
Returns Promise<void>
publicsendSubscriptionRequest
Returns Promise<string>
publicsendUnsubscribeRequest
Returns Promise<void>
publicsetMaxListenerWarningThreshold
Parameters
maxListenersWarningThreshold: number
Returns void
publicsubscribe
Returns Promise<string>
publicunsubscribe
Returns Promise<void>