Skip to content

Commit

Permalink
Update rpc-api.md (MetaMask#533)
Browse files Browse the repository at this point in the history
* Update rpc-api.md

Include note about allowlisting the extension origin when switching chains.

* docs: clarify wallet_addEthereumChain edge case
  • Loading branch information
zzmp authored Aug 16, 2022
1 parent 5e9d77c commit b84cf77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/guide/rpc-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ if any parameter is incorrectly formatted.
In addition, MetaMask will automatically reject the request under the following circumstances:

- If the RPC endpoint doesn't respond to RPC calls.
NOTE: Calls are made from the extension's background page, _not_ the foreground page. If you use an origin allowlist, they will be blocked.
- If the RPC endpoint returns a different chain ID when `eth_chainId` is called.
- If the chain ID corresponds to any default MetaMask chains.

Expand Down

0 comments on commit b84cf77

Please sign in to comment.