You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Under this definition, only eth_accounts is restricted. We want to modify this definition to include the signature, sending, and encryption methods that are enabled via eth_accounts.
Something along the lines of "restricted methods are methods that cannot be called unless you have permission to do so using wallet_requestPermissions or wallet_requestSnaps." Add a note to this definition stating that acquiring the eth_accounts permission includes/enables calling the restricted signing/sending methods.
Also include in the description of each restricted method how to acquire the permission (either via eth_requestAccounts or wallet_requestSnaps – this is already be done for the restricted Snaps methods).
We'll need to specify that Snap methods that are restricted are a little different in that they need to go through wallet_requestSnaps rather than wallet_requestPermission for permissions.
We currently imply that a "restricted" method is a method that requires being passed directly to
wallet_requestPermissions
:Under this definition, only
eth_accounts
is restricted. We want to modify this definition to include the signature, sending, and encryption methods that are enabled viaeth_accounts
.Something along the lines of "restricted methods are methods that cannot be called unless you have permission to do so using
wallet_requestPermissions
orwallet_requestSnaps
." Add a note to this definition stating that acquiring theeth_accounts
permission includes/enables calling the restricted signing/sending methods.Also include in the description of each restricted method how to acquire the permission (either via
eth_requestAccounts
orwallet_requestSnaps
– this is already be done for the restricted Snaps methods).See MetaMask/api-specs#195 for the full list of restricted methods.
The text was updated successfully, but these errors were encountered: