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
Remove guidance to explicitly install @metamask/connect-multichain for single-ecosystem packages and simplify install commands across EVM and Solana quickstarts. Rename Solana methods and Wallet Standard features (solana_signMessage → signMessage, solana_signAndSendTransaction/signAndSendAllTransactions → signAndSendTransaction) and update batch guidance to use the variadic signAndSendTransaction call. Revise error handling docs to use the new multichain error classes (RPCInvokeMethodErr, RPCHttpErr, RPCReadonlyResponseErr, RPCReadonlyRequestErr) and expose wallet RPC codes on err.rpcCode; remove the internal transport 1013 note from provider docs. Misc: update Wagmi quickstart to require @metamask/connect-evm@^2.1.0 and adjust examples/usages across multichain, evm, solana, reference, and troubleshooting pages to match the new APIs and patterns.
Copy file name to clipboardExpand all lines: metamask-connect/evm/index.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,7 +99,7 @@ We recommend using an Infura API key for production dapps. MetaMask Connect EVM
99
99
100
100
To migrate:
101
101
102
-
- Replace `@metamask/sdk` with `@metamask/connect-evm` in your dependencies, and add `@metamask/connect-multichain` (a required peer dependency since `@metamask/connect-evm` 2.0.0).
102
+
- Replace `@metamask/sdk` with `@metamask/connect-evm` in your dependencies.
103
103
- Update imports from `MetaMaskSDK` to `createEVMClient`.
104
104
- Switch from synchronous to async initialization.
Copy file name to clipboardExpand all lines: metamask-connect/evm/quickstart/wagmi.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,11 +97,11 @@ TOD0: Update with new screenshot and link
97
97
Install MetaMask Connect EVM along with its peer dependencies to an existing React project:
98
98
99
99
:::note Version requirements
100
-
This quickstart requires `wagmi@^3.6.0`. The `metaMask` connector is imported from the `wagmi/connectors` subpath (part of the `wagmi` package), and requires `@metamask/connect-evm`, which in turn requires `@metamask/connect-multichain` as a peer dependency.
100
+
This quickstart requires `wagmi@^3.6.0`. The `metaMask` connector is imported from the `wagmi/connectors` subpath (part of the `wagmi` package) and requires `@metamask/connect-evm@^2.1.0`.
Copy file name to clipboardExpand all lines: metamask-connect/evm/reference/provider-api.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -338,7 +338,6 @@ Common codes and their meaning include:
338
338
-`4902` - The chain isn't recognized by the wallet. Add it with `wallet_addEthereumChain`, or pass `chainConfiguration` to [`switchChain`](methods.md#switchchain).
339
339
-`-32602` - The parameters are invalid.
340
340
-`-32603` - Internal error.
341
-
-`1013` - An internal transport disconnect. The SDK retries automatically, so don't treat it as a user-facing disconnect.
342
341
343
342
For the complete list of errors, see [EIP-1193](https://eips.ethereum.org/EIPS/eip-1193#provider-errors)
344
343
and [EIP-1474](https://eips.ethereum.org/EIPS/eip-1474#error-codes).
@@ -349,8 +348,11 @@ returned by the MetaMask provider, and can help you identify their meaning.
349
348
:::
350
349
351
350
:::note Typed errors
352
-
The multichain core exports typed error classes for `instanceof` checks: `ProtocolError`,
353
-
`StorageError`, and `RpcError` from `@metamask/connect-multichain`.
351
+
When you use the multichain client, the core (`@metamask/connect-multichain`) exports typed error
352
+
classes for `instanceof` checks: `RPCInvokeMethodErr` (wraps wallet `invokeMethod` errors—read the
353
+
wallet's original code from `err.rpcCode`), `RPCHttpErr`, `RPCReadonlyResponseErr`, and
354
+
`RPCReadonlyRequestErr`. The EVM provider itself rejects with a standard EIP-1193 `ProviderRpcError`
Copy file name to clipboardExpand all lines: metamask-connect/index.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,6 @@ See [supported platforms](supported-platforms.md) for the full matrix.
96
96
### Which blockchain networks does MetaMask Connect support?
97
97
98
98
MetaMask Connect supports Ethereum and all EVM-compatible networks (Polygon, Arbitrum, Optimism, Linea, Base, etc.) through `@metamask/connect-evm`, Solana through `@metamask/connect-solana`, and both simultaneously through `@metamask/connect-multichain`.
99
-
Since their 2.0.0 releases, `@metamask/connect-evm` and `@metamask/connect-solana` require `@metamask/connect-multichain` as an explicitly installed peer dependency.
100
99
See [integration options](integration-options.md) to choose the right package.
101
100
102
101
### Do I need an Infura API key to use MetaMask Connect?
0 commit comments