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
request
Request
Request
Return Type
Any - Data returned from the request, depends on the invoked RPC method.
Example
TypeScript
Request method and parameters.
type Request = {
readonly method: string;
readonly params?: any[];
};await provider.request({ method: "dag_accounts", params: [] });
// ["DAG88C9WDSKH451sisyEP3hAkgCKn5DN72fuwjfX"]