Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions snaps/reference/permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ Specify this permission in the manifest file as follows:
},
```

:::note
The global `ethereum` API in Snaps has fewer capabilities than `window.ethereum` for dapps.
You can only use it to make read requests from the RPC provider, not to write to the blockchain or initiate transactions.
You can also use it to connect to Ethereum accounts with `eth_requestAccounts` and then use `personal_sign` with
those connected accounts.
:::

### endowment:long-running

:::caution
Expand Down
8 changes: 5 additions & 3 deletions snaps/reference/rpc-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,11 @@ derive an address for the relevant protocol or sign a transaction for the user.

This method is only callable by snaps.

:::danger important
Coin type 60 is reserved for MetaMask accounts and is blocked for snaps.
If you wish to connect to MetaMask accounts in a snap, use `eth_accounts`.
:::caution
Coin type 60 is reserved for MetaMask accounts and blocked for snaps.
If you wish to connect to MetaMask accounts in a snap, use
[`endowment:ethereum-provider`](../reference/permissions.md/#endowmentethereum-provider) and
`eth_requestAccounts`.
:::

#### Parameters
Expand Down