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
Next Next commit
SDK new structure PoC
  • Loading branch information
alexandratran committed Sep 23, 2025
commit 0b7903717640770419ad18a11042dd058d7a06fc
25 changes: 0 additions & 25 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,31 +251,6 @@ const config = {
rehypePlugins,
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'wallet',
path: 'wallet',
routeBasePath: 'wallet',
editUrl: 'https://github.com/MetaMask/metamask-docs/edit/main/',
sidebarPath: require.resolve('./wallet-sidebar.js'),
breadcrumbs: false,
remarkPlugins,
rehypePlugins,
sidebarItemsGenerator: async function ({ defaultSidebarItemsGenerator, ...args }) {
const sidebarItems = await defaultSidebarItemsGenerator(args)
const dynamicItems = await fetchAndGenerateDynamicSidebarItems(
MM_RPC_URL,
MM_REF_PATH,
NETWORK_NAMES.metamask
)
if (args.item.dirName === 'reference/json-rpc-methods') {
return [...sidebarItems, ...dynamicItems]
}
return sidebarItems
},
},
],
[
'@docusaurus/plugin-content-docs',
{
Expand Down
166 changes: 143 additions & 23 deletions sdk-sidebar.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,49 @@
// @ts-check

/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebar = {
sdkSidebar: [
const sdkSidebar = {
multichain: [
'index',
{
type: 'doc',
label: 'Introduction',
id: "index",
type: 'category',
label: 'Guides',
collapsible: false,
collapsed: false,
items: [
'multichain/connect/guides/connect-to-multichain',
'multichain/connect/guides/send-transactions',
],
},
{
type: 'category',
label: 'Tutorials',
collapsible: false,
collapsed: false,
items: [
'multichain/connect/tutorials/create-multichain-dapp',
],
},
{
type: 'category',
label: 'Reference',
collapsible: false,
collapsed: false,
items: [
'multichain/connect/reference/multichain-api',
],
},
],
evm: [
'evm/index',
{
type: 'category',
label: 'Connect to MetaMask',
label: 'Get started',
collapsible: false,
collapsed: false,
items: [
'connect/javascript-wagmi',
'connect/javascript',
'connect/javascript-dynamic',
'connect/javascript-web3auth',
'connect/react-native',
'evm/connect/get-started/javascript-wagmi',
'evm/connect/get-started/javascript',
'evm/connect/get-started/react-native',
],
},
{
Expand All @@ -27,13 +52,53 @@ const sidebar = {
collapsible: false,
collapsed: false,
items: [
'guides/authenticate-users',
'guides/manage-networks',
'guides/handle-transactions',
'guides/interact-with-contracts',
'guides/use-deeplinks',
'guides/batch-requests',
'guides/production-readiness',
'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/send-batch-transactions',
],
},
{
type: 'category',
label: 'Sign data',
collapsible: true,
collapsed: true,
link: { type: "doc", id: "evm/connect/guides/sign-data/index" },
items: [
'evm/connect/guides/sign-data/siwe',
],
},
'evm/connect/guides/batch-requests',
'evm/connect/guides/interact-with-contracts',
'evm/connect/guides/use-deeplinks',
'evm/connect/guides/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',
],
},
],
},
{
type: 'category',
label: 'Partner guides',
collapsible: false,
collapsed: false,
items: [
'evm/connect/partners/dynamic',
'evm/connect/partners/web3auth',
],
},
{
Expand All @@ -60,13 +125,68 @@ const sidebar = {
collapsible: false,
collapsed: false,
items: [
'reference/llm-prompt',
'reference/supported-platforms',
'reference/sdk-options',
'reference/sdk-methods',
'evm/connect/reference/sdk-options',
'evm/connect/reference/sdk-methods',
'evm/connect/reference/provider-api',
{
type: "category",
label: "JSON-RPC API",
collapsible: true,
collapsed: true,
link: { type: "doc", id: "evm/connect/reference/json-rpc-methods/index" },
items: [{ type: "autogenerated", dirName: "evm/connect/reference/json-rpc-methods" }],
},
],
},
],
solana: [
'solana/index',
'solana/connect/wallet-standard',
],
starknet: [
'starknet/index',
{
type: "category",
label: "Guides",
collapsible: false,
collapsed: false,
items: [
'starknet/guides/connect-to-starknet',
'starknet/guides/manage-starknet-accounts',
'starknet/guides/manage-starknet-networks',
'starknet/guides/send-starknet-transactions',
'starknet/guides/sign-starknet-data',
'starknet/guides/troubleshoot',
],
},
{
type: "category",
label: "Concepts",
collapsible: false,
collapsed: false,
items: [
'starknet/concepts/about-get-starknet',
],
},
{
type: "category",
label: "Tutorials",
collapsible: false,
collapsed: false,
items: [
'starknet/tutorials/create-a-simple-starknet-dapp',
],
},
{
type: "category",
label: "Reference",
collapsible: false,
collapsed: false,
items: [
'starknet/reference/starknet-snap-api',
],
},
],
}

module.exports = sidebar
module.exports = sdkSidebar
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
30 changes: 30 additions & 0 deletions sdk/evm/connect/guides/best-practices/display.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Display in MetaMask

## Display icons

When your dapp makes a login request to a MetaMask user, MetaMask may render a modal that displays
your dapp icon.

MetaMask retrieves this icon using the HTML selector `<head> link[rel="shortcut icon"]`, so you can
follow the [favicon standard](https://en.wikipedia.org/wiki/Favicon) to customize your dapp icon.
Make sure to have a `link` tag within your dapp's `head` with `rel = "shortcut icon"`, as in the
following example.
The tag's `href` attribute is used for assigning the dapp icon.

```html
<head>
<link rel="shortcut icon" href="https://your-dapp.com/your-icon.png" />
</head>
```

## Display method names

MetaMask uses the [Ethereum Signature Database](https://www.4byte.directory/) to display
method names on the confirmation screen.
For many common method names, such as token methods, this allows MetaMask to look up the method
names by their [method signature](https://solidity.readthedocs.io/en/v0.4.21/abi-spec.html).
However, sometimes you're using a method that isn't in that database, and MetaMask simply
displays **Contract Interaction** to the user.

To register your contract's method names so they show in the MetaMask interface,
[submit each method's signature to the Ethereum Signature Database](https://www.4byte.directory/submit/).
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ The add NFT interfaces look like the following:

<div class="imgRow">
<div class="imgCol">
<img src={require("../../assets/watchasset-nft.png").default} alt="NFT confirmation" class="appScreen" />
<img src={require("../assets/watchasset-nft.png").default} alt="NFT confirmation" class="appScreen" />
</div>
<div class="imgCol">
<img src={require("../../assets/watchasset-nft-2.png").default} alt="Multiple NFTs confirmation" class="appScreen" />
<img src={require("../assets/watchasset-nft-2.png").default} alt="Multiple NFTs confirmation" class="appScreen" />
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ keywords: [SDK, Wagmi, JavaScript, authenticate, connect, sign, accounts, wallet
toc_max_heading_level: 3
---

# Authenticate users
# Manage user accounts

Connect and manage user wallet sessions in your [Wagmi](#use-wagmi) or
[Vanilla JavaScript](#use-vanilla-javascript) dapp.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ keywords: [SDK, Wagmi, JavaScript, send, transaction, transactions, status, esti
toc_max_heading_level: 2
---

# Handle transactions
# Send transactions

Handle EVM transactions in your [Wagmi](#use-wagmi) or [Vanilla JavaScript](#use-vanilla-javascript) dapp.
With the SDK, you can:
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions sdk/evm/connect/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# MM Connect for EVM networks
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions sdk/evm/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_label: Introduction
---

# MetaMask SDK for EVM networks

## MM Connect

## MM Pay
3 changes: 1 addition & 2 deletions sdk/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
slug: /
title: SDK introduction
sidebar_label: Introduction
description: Introduction page for MetaMask SDK documentation.
keywords: [connect, sdk, integrate, dapp]
---
Expand Down
1 change: 1 addition & 0 deletions sdk/multichain/connect/guides/connect-to-multichain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Connect to multiple chains
1 change: 1 addition & 0 deletions sdk/multichain/connect/guides/send-transactions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Send multichain transactions
1 change: 1 addition & 0 deletions sdk/multichain/connect/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# MM Connect for multichain
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Create a multichain dapp
Loading
Loading