Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
0b79037
SDK new structure PoC
alexandratran Sep 23, 2025
44a6248
edits
alexandratran Sep 24, 2025
f234baf
remove custom reference component
alexandratran Sep 24, 2025
f331654
edits
alexandratran Sep 25, 2025
e2f4b8b
Merge branch 'main' into sdk-new-structure
alexandratran Sep 30, 2025
ef20ee1
fix links, update redirects, "metamask wallet sdk"
alexandratran Sep 30, 2025
39b9b16
Merge branch 'main' into sdk-new-structure
alexandratran Oct 16, 2025
905d9a8
add simplified api reference with two examples
alexandratran Oct 18, 2025
549887c
missing files
alexandratran Oct 18, 2025
1b97b2c
Merge branch 'main' into sdk-new-structure
alexandratran Oct 20, 2025
bb103fb
remove starknet docs
alexandratran Oct 21, 2025
8216d8b
copy over solana docs
alexandratran Oct 21, 2025
34aed2c
Merge branch 'main' into sdk-new-structure
alexandratran Oct 22, 2025
d64e8a4
Merge branch 'main' into sdk-new-structure
alexandratran Oct 23, 2025
e02092a
Update terminology and restructure EVM docs
alexandratran Oct 23, 2025
956c09a
fix broken links
alexandratran Oct 23, 2025
86d2dfc
Merge branch 'main' into sdk-new-structure
alexandratran Nov 4, 2025
f70f940
fix broken links
alexandratran Nov 4, 2025
e1e0008
Add/update Solana Wallet Adapter docs (#2443)
alexandratran Nov 7, 2025
37a4d06
Merge branch 'main' into sdk-new-structure
alexandratran Nov 10, 2025
30d0439
Update mobile products menu
alexandratran Nov 10, 2025
3db005f
Update MM Connect EVM JS code samples with potential new usage (#2454)
alexandratran Nov 12, 2025
d122361
Merge branch 'main' into sdk-new-structure
alexandratran Nov 13, 2025
360383d
Remove ParserOpenRPC component and replace usage in Linea services
alexandratran Nov 14, 2025
98476fe
Merge branch 'main' into sdk-new-structure
alexandratran Nov 18, 2025
c04fb6d
fix broken link
alexandratran Nov 18, 2025
b034e01
Add more multichain info (#2479)
alexandratran Nov 18, 2025
77bb9a9
Merge branch 'main' into sdk-new-structure
alexandratran Nov 27, 2025
b4716d6
Enhance JS section {WIP} (#2450)
shahbaz17 Nov 27, 2025
2a6e4ab
Add view & wagmi options
shahbaz17 Nov 27, 2025
6cf2880
Merge branch 'main' into sdk-new-structure
alexandratran Nov 28, 2025
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
Prev Previous commit
Next Next commit
Enhance JS section {WIP} (#2450)
* Enhance JS section

Add viem, web3, ethers support

* Feat EVM Structure changes (#2538)

* fix some cursor issues and use mm connect package

* fix links, slight file restructure

* add wagmi tabs + edits

* update redirects

* fix link

---------

Co-authored-by: Alexandra Carrillo <[email protected]>
  • Loading branch information
shahbaz17 and alexandratran authored Nov 27, 2025
commit b4716d67c5e46db94937c9b6c824cc1eb8817e57
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const config = {
markdown: {
mermaid: true,
hooks: {
onBrokenMarkdownLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
},
},
themes: ['@docusaurus/theme-mermaid'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const sessionAccount = privateKeyToAccount("0x...");
Currently, Advanced Permissions do not support automatically upgrading a MetaMask user's account to a [MetaMask smart account](../../concepts/smart-accounts.md). Therefore, you must
ensure that the user is upgraded to a smart account before requesting Advanced Permissions.

If the user has not yet been upgraded, you can handle the upgrade [programmatically](/sdk/evm/connect/guides/javascript/send-transactions/batch-transactions) or ask the
If the user has not yet been upgraded, you can handle the upgrade [programmatically](/sdk/evm/connect/guides/send-transactions/batch-transactions) or ask the
user to [switch to a smart account manually](https://support.metamask.io/configure/accounts/switch-to-or-revert-from-a-smart-account/#how-to-switch-to-a-metamask-smart-account).

:::info Why is a Smart Account upgrade is required?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const sessionAccount = privateKeyToAccount("0x...");
Currently, ERC-7715 does not support automatically upgrading a MetaMask user's account to a [MetaMask smart account](../../concepts/smart-accounts.md). Therefore, you must
ensure that the user is upgraded to a smart account before requesting ERC-7715 permissions.

If the user has not yet been upgraded, you can handle the upgrade [programmatically](/sdk/evm/connect/guides/javascript/send-transactions/batch-transactions) or ask the
If the user has not yet been upgraded, you can handle the upgrade [programmatically](/sdk/evm/connect/guides/send-transactions/batch-transactions) or ask the
user to [switch to a smart account manually](https://support.metamask.io/configure/accounts/switch-to-or-revert-from-a-smart-account/#how-to-switch-to-a-metamask-smart-account).

:::info Why is a Smart Account upgrade is required?
Expand Down
100 changes: 48 additions & 52 deletions sdk-sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,76 +49,72 @@ const sdkSidebar = {
],
evm: [
'evm/index',
{
type: 'category',
label: 'Quickstart',
collapsible: false,
collapsed: false,
items: [
'evm/connect/quickstart/javascript',
'evm/connect/quickstart/wagmi',
'evm/connect/quickstart/rainbowkit',
'evm/connect/quickstart/connectkit',
'evm/connect/quickstart/react-native',
'evm/connect/quickstart/dynamic',
'evm/connect/quickstart/web3auth',
],
},
{
type: 'category',
label: 'Guides',
collapsible: false,
collapsed: false,
items: [
'evm/connect/guides/manage-user-accounts',
'evm/connect/guides/manage-networks',
{
type: 'category',
label: 'Send transactions',
collapsible: true,
collapsed: true,
link: { type: "doc", id: "evm/connect/guides/send-transactions/index" },
items: [
'evm/connect/guides/send-transactions/batch-transactions',
],
},
{
type: 'category',
label: 'JavaScript',
label: 'Sign data',
collapsible: true,
collapsed: true,
link: { type: "doc", id: "evm/connect/guides/javascript/index" },
link: { type: "doc", id: "evm/connect/guides/sign-data/index" },
items: [
'evm/connect/guides/javascript/manage-user-accounts',
'evm/connect/guides/javascript/manage-networks',
{
type: 'category',
label: 'Send transactions',
collapsible: true,
collapsed: true,
link: { type: "doc", id: "evm/connect/guides/javascript/send-transactions/index" },
items: [
'evm/connect/guides/javascript/send-transactions/batch-transactions',
],
},
{
type: 'category',
label: 'Sign data',
collapsible: true,
collapsed: true,
link: { type: "doc", id: "evm/connect/guides/javascript/sign-data/index" },
items: [
'evm/connect/guides/javascript/sign-data/siwe',
],
},
'evm/connect/guides/javascript/batch-requests',
'evm/connect/guides/javascript/interact-with-contracts',
'evm/connect/guides/javascript/use-deeplinks',
'evm/connect/guides/javascript/display-tokens',
{
type: 'category',
label: 'Best practices',
collapsible: true,
collapsed: true,
items: [
'evm/connect/guides/javascript/best-practices/display',
'evm/connect/guides/javascript/best-practices/run-devnet',
'evm/connect/guides/javascript/best-practices/production-readiness',
],
},
'evm/connect/guides/sign-data/siwe',
],
},
'evm/connect/guides/interact-with-contracts',
{
type: 'category',
label: 'Wagmi',
label: 'MetaMask exclusive',
collapsible: true,
collapsed: true,
link: { type: "doc", id: "evm/connect/guides/wagmi/index" },
items: [
'evm/connect/guides/wagmi/manage-user-accounts',
'evm/connect/guides/wagmi/manage-networks',
'evm/connect/guides/wagmi/send-transactions',
'evm/connect/guides/wagmi/interact-with-contracts',
'evm/connect/guides/metamask-exclusive/batch-requests',
'evm/connect/guides/metamask-exclusive/use-deeplinks',
'evm/connect/guides/metamask-exclusive/display-tokens',
],
},
{
type: 'category',
label: 'Best practices',
collapsible: true,
collapsed: true,
items: [
'evm/connect/guides/best-practices/display',
'evm/connect/guides/best-practices/run-devnet',
'evm/connect/guides/best-practices/production-readiness',
],
},
'evm/connect/guides/rainbowkit',
'evm/connect/guides/connectkit',
'evm/connect/guides/react-native',
'evm/connect/guides/dynamic',
'evm/connect/guides/web3auth',
],
},
{
Expand All @@ -132,7 +128,7 @@ const sdkSidebar = {
label: "Create a wallet AI agent",
href: "/tutorials/create-wallet-ai-agent"
},
{
{
type: "link",
label: "Upgrade an EOA to a smart account",
href: "/tutorials/upgrade-eoa-to-smart-account"
Expand All @@ -152,7 +148,7 @@ const sdkSidebar = {
label: "JSON-RPC API",
collapsible: true,
collapsed: true,
link: { type: "doc", id: "evm/connect/reference/json-rpc-api/index" },
link: { type: "doc", id: "evm/connect/reference/json-rpc-api/index" },
items: [
"evm/connect/reference/json-rpc-api/wallet_sendCalls",
"evm/connect/reference/json-rpc-api/eth_signTypedData_v4",
Expand Down
Binary file modified sdk/evm/connect/_assets/personal_sign.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sdk/evm/connect/_assets/signTypedData.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sdk/evm/connect/_assets/siwe-bad-domain-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sdk/evm/connect/_assets/siwe-bad-domain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified sdk/evm/connect/_assets/siwe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ For example:

- **Clear feedback** - Display user friendly messages when wallet connection or transaction errors occur (for example, network switch failures or user rejections).

- **Event management** - If you're using Vanilla JavaScript, handle MetaMask events such as [`chainChanged`](../../../reference/provider-api.md#chainchanged)
and [`accountsChanged`](../../../reference/provider-api.md#accountschanged) to promptly update the UI and internal state.
- **Event management** - If you're using Vanilla JavaScript, handle MetaMask events such as [`chainChanged`](../../reference/provider-api.md#chainchanged)
and [`accountsChanged`](../../reference/provider-api.md#accountschanged) to promptly update the UI and internal state.
If you're using Wagmi, you generally don't need to handle MetaMask events, because the hooks will handle the events for you.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Follow these steps to connect MetaMask to Hardhat Network.

:::tip
Alternatively, you can add Hardhat Network to MetaMask using
[`wallet_addEthereumChain`](../../../reference/json-rpc-api/index.md).
[`wallet_addEthereumChain`](../../reference/json-rpc-api/index.md).
:::

## Reset your local nonce calculation
Expand Down
Loading
Loading