注意: 此页面尚未翻译成中文。以下内容为英文原版。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()
Parameters
| Parameter | Type | Description |
|---|---|---|
request | object | The request object. |
request.method | string | The method name. |
request.params? | any[] | Record<string, any> | The parameters for the method. |
request.shard? | Shard | The shard to send the request to. |
Returns
Promise<any>
The result of the request.
