Skip to main content

SyncingSubscription

Hierarchy

  • Web3Subscription<CommonSubscriptionEvents & { changed: boolean; data: SyncOutput }>
    • SyncingSubscription

Index

Constructors

constructor

  • new SyncingSubscription(args: any, options: { requestManager: Web3RequestManager<EthExecutionAPI>; returnFormat?: DataFormat }): SyncingSubscription
  • Parameters

    • args: any
    • options: { requestManager: Web3RequestManager<EthExecutionAPI>; returnFormat?: DataFormat }

    Returns SyncingSubscription

Properties

readonlyargs

args: any

Accessors

id

  • get id(): undefined | string
  • Returns undefined | string

lastBlock

  • get lastBlock(): undefined | BlockOutput
  • Returns undefined | BlockOutput

Methods

emit

  • emit<K>(eventName: K, params: CommonSubscriptionEvents & { changed: boolean; data: SyncOutput }[K]): void
  • Type parameters

    • K: Web3EventKey<CommonSubscriptionEvents & { changed: boolean; data: SyncOutput }>

    Parameters

    • eventName: K
    • params: CommonSubscriptionEvents & { changed: boolean; data: SyncOutput }[K]

    Returns void

eventNames

  • eventNames(): (string | symbol)[]
  • Returns (string | symbol)[]

getMaxListeners

  • getMaxListeners(): number
  • Returns number

listenerCount

  • listenerCount<K>(eventName: K): number
  • Type parameters

    • K: Web3EventKey<CommonSubscriptionEvents & { changed: boolean; data: SyncOutput }>

    Parameters

    • eventName: K

    Returns number

listeners

  • listeners<K>(eventName: K): Function[]
  • Type parameters

    • K: Web3EventKey<CommonSubscriptionEvents & { changed: boolean; data: SyncOutput }>

    Parameters

    • eventName: K

    Returns Function[]

off

  • off<K>(eventName: K, fn: Web3EventCallback<CommonSubscriptionEvents & { changed: boolean; data: SyncOutput }[K]>): void
  • Type parameters

    • K: Web3EventKey<CommonSubscriptionEvents & { changed: boolean; data: SyncOutput }>

    Parameters

    • eventName: K
    • fn: Web3EventCallback<CommonSubscriptionEvents & { changed: boolean; data: SyncOutput }[K]>

    Returns void

on

  • on<K>(eventName: K, fn: Web3EventCallback<CommonSubscriptionEvents & { changed: boolean; data: SyncOutput }[K]>): void
  • Type parameters

    • K: Web3EventKey<CommonSubscriptionEvents & { changed: boolean; data: SyncOutput }>

    Parameters

    • eventName: K
    • fn: Web3EventCallback<CommonSubscriptionEvents & { changed: boolean; data: SyncOutput }[K]>

    Returns void

once

  • once<K>(eventName: K, fn: Web3EventCallback<CommonSubscriptionEvents & { changed: boolean; data: SyncOutput }[K]>): void
  • Type parameters

    • K: Web3EventKey<CommonSubscriptionEvents & { changed: boolean; data: SyncOutput }>

    Parameters

    • eventName: K
    • fn: Web3EventCallback<CommonSubscriptionEvents & { changed: boolean; data: SyncOutput }[K]>

    Returns void

removeAllListeners

  • removeAllListeners(): EventEmitter
  • Returns EventEmitter

resubscribe

  • resubscribe(): Promise<void>
  • Returns Promise<void>

setMaxListenerWarningThreshold

  • setMaxListenerWarningThreshold(maxListenersWarningThreshold: number): void
  • Parameters

    • maxListenersWarningThreshold: number

    Returns void

subscribe

  • subscribe(): Promise<void>
  • Returns Promise<void>

unsubscribe

  • unsubscribe(): Promise<void>
  • Returns Promise<void>