Interface EthereumProvider
interface EthereumProvider { on(eventName: string | symbol,
listener: ((...args: any[]) => void)): this; removeListener(eventName: string | symbol,
listener: ((...args: any[]) => void)): this; request(args: RequestArguments): Promise<unknown>; } Methods
on
- on(eventName, listener): this
Parameters
- eventName: string | symbol
- listener: ((...args: any[]) => void)
- (...args): void
Returns void
Returns this
removeListener
- removeListener(eventName, listener): this
Parameters
- eventName: string | symbol
- listener: ((...args: any[]) => void)
- (...args): void
Returns void
Returns this
request
- request(args): Promise<unknown>
Returns Promise<unknown>