wallet_requestPermissions
Requests additional permissions from the user. This method accepts a single permission per call. Specified by EIP-2255.
Parameters
Permission(object)requiredObject containing the permission to request.
Returns
An array of the user's permissions.
Errors
| Code | Description |
|---|---|
|
Example request
await provider.request({
method: "wallet_requestPermissions",
params: [
{
"eth_accounts": {}
}
]
});
Example response
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"eth_accounts": {}
}
}