# async request()

[**EIP-1193 request()**](https://eips.ethereum.org/EIPS/eip-1193#request)

Invokes the selected RPC method. Depeding on the provider chain it will invoke a [Constellation RPC method](https://2892156949-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAUvaNviXuvMQPGFFlTu0%2Fuploads%2FlwMsSc6JGh3Hs9uhTPhW%2FconstellationRPCAPI?alt=media) or an [Ethereum RPC method](https://2892156949-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAUvaNviXuvMQPGFFlTu0%2Fuploads%2FMUnqupiDBooRpr30wRuc%2FethereumRPCAPI?alt=media).

**Type**

`async request(request): any`

**Parameters**

| Name    | Type      | Description                    |
| ------- | --------- | ------------------------------ |
| request | `Request` | Request method and parameters. |

Request

```typescript
type Request = {
  readonly method: string;
  readonly params?: any[];
};
```

**Return Type**

`Any` - Data returned from the request, depends on the invoked RPC method.

**Example**

TypeScript

```typescript
await provider.request({ method: "dag_accounts", params: [] });
// ["DAG88C9WDSKH451sisyEP3hAkgCKn5DN72fuwjfX"]
```
