async request()
Invokes the selected RPC method. Depeding on the provider chain it will invoke a Constellation RPC method or an Ethereum RPC method.
Type
async request(request): any
Parameters
Name
Type
Description
request
Request
Request method and parameters.
Request
type Request = {
readonly method: string;
readonly params?: any[];
};
Return Type
Any
- Data returned from the request, depends on the invoked RPC method.
Example
TypeScript
await provider.request({ method: "dag_accounts", params: [] });
// ["DAG88C9WDSKH451sisyEP3hAkgCKn5DN72fuwjfX"]
Last updated
Was this helpful?