참고: 이 페이지는 아직 한국어로 번역되지 않았습니다. 아래는 영어 원문입니다.
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.
request.shard?ShardThe shard to send the request to.

Returns

Promise<any> The result of the request.

Source

providers/provider-browser.ts:25