The interface to an EIP-1193 provider, which is a standard used by most injected providers, which the BrowserProvider accepts and exposes the API of.

Methods

request()

request(request): Promise<any>

See EIP-1193 for details on this method.

Parameters

ParameterTypeDescription
requestobjectThe request object.
request.methodstringThe method name.
request.params?any[] | Record<string, any>The parameters for the method.

Returns

Promise<any>

The result of the request.

Source

providers/provider-browser.ts:23