MetaMask
wallet_getPermissions
Summary: Gets the user's permissions.
Gets the user's permissions. Specified by EIP-2255.
Parameters
This method doesn't accept any parameters.
Returns
Permissions list array
An array of the user's permissions.
Customize request
Connect your MetaMask wallet to run requests successfully.
Request
await window.ethereum.request({
"method": "wallet_getPermissions",
"params": [],
});