For AI agents: a documentation index is available at /llms.txt. A markdown version of this page is available at the same URL with .md appended (or via Accept: text/markdown).
Skip to main content

wallet_requestPermissions

Requests additional permissions from the user. This method accepts a single permission per call. Specified by EIP-2255.

Parameters

Permission(object)required

Object containing the permission to request.

Returns

An array of the user's permissions.

Errors

CodeDescription
4100

User rejected the request.

Example request
await provider.request({
method: 'wallet_requestPermissions',
params: [
{
eth_accounts: {},
},
],
})
Example response
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"eth_accounts": {}
}
}