@nomiclabs/buidler > EthereumProvider

# Interface: EthereumProvider

# Hierarchy

EventEmitter

↳ EthereumProvider

# Index

# Properties

# Methods


# Properties

# <Static> defaultMaxListeners

● defaultMaxListeners: number

Inherited from EventEmitter.defaultMaxListeners

Defined in /opt/build/repo/node_modules/@types/node/base.d.ts:896


# Methods

# addListener

addListener(event: string | symbol, listener: function): this

Inherited from EventEmitter.addListener

Overrides EventEmitter.addListener

Defined in /opt/build/repo/node_modules/@types/node/base.d.ts:898

Parameters:

Name Type
event string | symbol
listener function

Returns: this


# emit

emit(event: string | symbol, args: any[]): boolean

Inherited from EventEmitter.emit

Overrides EventEmitter.emit

Defined in /opt/build/repo/node_modules/@types/node/base.d.ts:908

Parameters:

Name Type
event string | symbol
Rest args any[]

Returns: boolean


# eventNames

eventNames(): Array<string | symbol>

Inherited from EventEmitter.eventNames

Overrides EventEmitter.eventNames

Defined in /opt/build/repo/node_modules/@types/node/base.d.ts:909

Returns: Array<string | symbol>


# getMaxListeners

getMaxListeners(): number

Inherited from EventEmitter.getMaxListeners

Overrides EventEmitter.getMaxListeners

Defined in /opt/build/repo/node_modules/@types/node/base.d.ts:906

Returns: number


# listenerCount

listenerCount(type: string | symbol): number

Inherited from EventEmitter.listenerCount

Overrides EventEmitter.listenerCount

Defined in /opt/build/repo/node_modules/@types/node/base.d.ts:910

Parameters:

Name Type
type string | symbol

Returns: number


# listeners

listeners(event: string | symbol): Function[]

Inherited from EventEmitter.listeners

Overrides EventEmitter.listeners

Defined in /opt/build/repo/node_modules/@types/node/base.d.ts:907

Parameters:

Name Type
event string | symbol

Returns: Function[]


# on

on(event: string | symbol, listener: function): this

Inherited from EventEmitter.on

Overrides EventEmitter.on

Defined in /opt/build/repo/node_modules/@types/node/base.d.ts:899

Parameters:

Name Type
event string | symbol
listener function

Returns: this


# once

once(event: string | symbol, listener: function): this

Inherited from EventEmitter.once

Overrides EventEmitter.once

Defined in /opt/build/repo/node_modules/@types/node/base.d.ts:900

Parameters:

Name Type
event string | symbol
listener function

Returns: this


# prependListener

prependListener(event: string | symbol, listener: function): this

Inherited from EventEmitter.prependListener

Overrides EventEmitter.prependListener

Defined in /opt/build/repo/node_modules/@types/node/base.d.ts:901

Parameters:

Name Type
event string | symbol
listener function

Returns: this


# prependOnceListener

prependOnceListener(event: string | symbol, listener: function): this

Inherited from EventEmitter.prependOnceListener

Overrides EventEmitter.prependOnceListener

Defined in /opt/build/repo/node_modules/@types/node/base.d.ts:902

Parameters:

Name Type
event string | symbol
listener function

Returns: this


# removeAllListeners

removeAllListeners(event: string | symbol): this

Inherited from EventEmitter.removeAllListeners

Overrides EventEmitter.removeAllListeners

Defined in /opt/build/repo/node_modules/@types/node/base.d.ts:904

Parameters:

Name Type
Optional event string | symbol

Returns: this


# removeListener

removeListener(event: string | symbol, listener: function): this

Inherited from EventEmitter.removeListener

Overrides EventEmitter.removeListener

Defined in /opt/build/repo/node_modules/@types/node/base.d.ts:903

Parameters:

Name Type
event string | symbol
listener function

Returns: this


# send

send(method: string, params: any[]): Promise<any>

Defined in types.ts:288

Parameters:

Name Type
method string
Optional params any[]

Returns: Promise<any>


# setMaxListeners

setMaxListeners(n: number): this

Inherited from EventEmitter.setMaxListeners

Overrides EventEmitter.setMaxListeners

Defined in /opt/build/repo/node_modules/@types/node/base.d.ts:905

Parameters:

Name Type
n number

Returns: this


# <Static> listenerCount

listenerCount(emitter: EventEmitter, event: string | symbol): number

Inherited from EventEmitter.listenerCount

Defined in /opt/build/repo/node_modules/@types/node/base.d.ts:895

Parameters:

Name Type
emitter EventEmitter
event string | symbol

Returns: number