Skip to main content

Web3RequestManager <API>

Hierarchy

Index

Constructors

publicconstructor

Properties

publicoptionalmiddleware

middleware?: RequestManagerMiddleware<API>

Accessors

publicprovider

  • Will return the current provider.


    Returns undefined | SupportedProviders<API>

    Returns the current provider

publicproviders

publicstaticproviders

Methods

publicemit

publiceventNames

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

publicgetMaxListeners

  • getMaxListeners(): number
  • Returns number

publiclistenerCount

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

publiclisteners

  • listeners<K>(eventName: K): (...args: any[]) => void[]
  • Type parameters

    Parameters

    • eventName: K

    Returns (...args: any[]) => void[]

publicoff

publicon

publiconce

publicremoveAllListeners

  • Returns EventEmitter

publicsend

  • send<Method, ResponseType>(request: Web3APIRequest<API, Method>): Promise<ResponseType>
  • Will execute a request


    Type parameters

    Parameters

    Returns Promise<ResponseType>

    The response of the request ResponseType. If there is error in the response, will throw an error

publicsendBatch

publicsetMaxListenerWarningThreshold

  • setMaxListenerWarningThreshold(maxListenersWarningThreshold: number): void
  • Parameters

    • maxListenersWarningThreshold: number

    Returns void

publicsetMiddleware

publicsetProvider

  • Use to set provider. Provider can be a provider instance or a string.


    Parameters

    Returns boolean