diff --git a/wallet/how-to/access-accounts.md b/wallet/how-to/access-accounts.md index 97b9454666..a629501f41 100644 --- a/wallet/how-to/access-accounts.md +++ b/wallet/how-to/access-accounts.md @@ -1,6 +1,6 @@ --- description: Access a user's accounts and handle changed accounts. -sidebar_position: 2 +sidebar_position: 1 --- # Access a user's accounts diff --git a/wallet/how-to/batch-json-rpc-requests.md b/wallet/how-to/batch-json-rpc-requests.md index 101b37047d..7b22de6aee 100644 --- a/wallet/how-to/batch-json-rpc-requests.md +++ b/wallet/how-to/batch-json-rpc-requests.md @@ -1,6 +1,6 @@ --- description: Batch multiple JSON-RPC requests using MetaMask SDK. -sidebar_position: 7 +sidebar_position: 6 tags: - JavaScript SDK --- diff --git a/wallet/how-to/display/_category_.json b/wallet/how-to/display/_category_.json index 6fc1495633..18a9beba55 100644 --- a/wallet/how-to/display/_category_.json +++ b/wallet/how-to/display/_category_.json @@ -1,6 +1,6 @@ { "label": "Display in MetaMask", - "position": 8, + "position": 7, "link": { "type": "generated-index", "slug": "how-to/display", diff --git a/wallet/how-to/make-read-only-requests.md b/wallet/how-to/make-read-only-requests.md index 43d4904508..588a7bbcac 100644 --- a/wallet/how-to/make-read-only-requests.md +++ b/wallet/how-to/make-read-only-requests.md @@ -1,5 +1,5 @@ --- -sidebar_position: 6 +sidebar_position: 5 description: Use Infura and custom nodes to make direct, read-only requests in your JavaScript dapp. tags: - JavaScript SDK diff --git a/wallet/how-to/manage-networks/_category_.json b/wallet/how-to/manage-networks/_category_.json index 1cb8160229..6f807ee2e3 100644 --- a/wallet/how-to/manage-networks/_category_.json +++ b/wallet/how-to/manage-networks/_category_.json @@ -1,6 +1,6 @@ { "label": "Manage networks", - "position": 3, + "position": 2, "link": { "type": "generated-index", "slug": "how-to/manage-networks", diff --git a/wallet/how-to/manage-permissions.md b/wallet/how-to/manage-permissions.md index 147da5beb8..7a8fe7b75d 100644 --- a/wallet/how-to/manage-permissions.md +++ b/wallet/how-to/manage-permissions.md @@ -1,6 +1,6 @@ --- description: Request and revoke permissions to call restricted methods. -sidebar_position: 6 +sidebar_position: 8 --- # Manage permissions diff --git a/wallet/how-to/onboard-users.md b/wallet/how-to/onboard-users.md index dbb4e867a4..c8c9dd3798 100644 --- a/wallet/how-to/onboard-users.md +++ b/wallet/how-to/onboard-users.md @@ -23,7 +23,7 @@ If it finds an origin, the final confirmation button of the MetaMask onboarding the user will be redirected back to your dapp. :::tip -[MetaMask SDK](../how-to/use-sdk/index.md) incorporates the functionality of the MetaMask onboarding library. +[MetaMask SDK](../connect/metamask-sdk/index.md) incorporates the functionality of the MetaMask onboarding library. You don't need to set up the onboarding library if you use the SDK. ::: diff --git a/wallet/how-to/send-transactions.md b/wallet/how-to/send-transactions.md index e581fa4979..ceabb4657e 100644 --- a/wallet/how-to/send-transactions.md +++ b/wallet/how-to/send-transactions.md @@ -1,6 +1,6 @@ --- description: Send transactions using eth_sendTransaction. -sidebar_position: 5 +sidebar_position: 4 --- # Send transactions diff --git a/wallet/how-to/sign-data/index.md b/wallet/how-to/sign-data/index.md index 1e6cb7233c..8275a9d5c8 100644 --- a/wallet/how-to/sign-data/index.md +++ b/wallet/how-to/sign-data/index.md @@ -1,6 +1,6 @@ --- description: Sign data using eth_signTypedData_v4 and personal_sign. -sidebar_position: 4 +sidebar_position: 3 --- # Sign data diff --git a/wallet/index.md b/wallet/index.md new file mode 100644 index 0000000000..3bc118b111 --- /dev/null +++ b/wallet/index.md @@ -0,0 +1,44 @@ +--- +title: Introduction +--- + +# Integrate your dapp with the MetaMask wallet + +Integrate your dapp with MetaMask using **MetaMask SDK**, a comprehensive toolkit that simplifies +wallet connectivity across desktop and mobile platforms, and MetaMask's **Wallet API**, which offers +a flexible way to interact with wallets and blockchain networks through standardized JSON-RPC calls. + +Get started by [connecting to MetaMask](connect/index.md). + +## Why use MetaMask SDK? + +**MetaMask SDK** enables a reliable connection from your dapp to the MetaMask browser extension and +MetaMask Mobile, and seamlessly integrates from the platform of your choice, ensuring a +secure and consistent user experience. +It offers the following features: + +- **Cross-platform compatibility.** Connect to MetaMask across desktop, iOS, Android, React Native, and other platforms. +- **Persistent and seamless connections.** Reduce reconnections and offer a smoother user experience, especially on mobile. +- **Mobile-first.** Use instant deep links and advanced features for faster wallet interactions. +- **Enhanced functionality.** Batch transactions, RPC access, and [EIP-6963](https://eips.ethereum.org/EIPS/eip-6963) integration for wallet discovery and security. + +For dapps that need direct control, the **Wallet API** provides access to Ethereum accounts, signing +data, and other core wallet functions. +Dapps can call Wallet API methods with or without the SDK installed. + +## Where do I start? + +- [**Connect to MetaMask**](connect/index.md) – Learn more about and get started with the different + connection options. +- [**Wallet API reference**](/wallet/reference/json-rpc-api) – See the full list of JSON-RPC methods. +- If you're new to integrating dapps with MetaMask, see the following topics: + - [**About the Wallet API**](concepts/wallet-api.md) + - [**Create a simple dapp tutorial**](tutorials/javascript-dapp-simple.md) + +## Questions? + +For more support, connect with the MetaMask team and community on [Consensys Discord](https://discord.gg/consensys). + +:::note MetaMask user support +For MetaMask user support, visit the [MetaMask Help Center](https://support.metamask.io/). +::: diff --git a/wallet/index.mdx b/wallet/index.mdx deleted file mode 100644 index f452164767..0000000000 --- a/wallet/index.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Introduction ---- - -# MetaMask Integration Overview - -MetaMask provides developers with tools to integrate their dapps across desktop and mobile platforms. -This guide introduces the **MetaMask SDK**, a comprehensive toolkit that simplifies wallet connectivity across platforms, -and the MetaMask API, which offers a flexible way to interact with wallets and blockchain networks through standardized JSON-RPC calls. - -## Why Use the MetaMask SDK? - -The **MetaMask SDK** offers reliable wallet connections to MetaMask Extension and MetaMask Mobile from dapps and has additional features for seamless cross-platform integration on the platform of your choice, ensuring a secure and consistent user experience. - -### Key Benefits - -- **Cross-Platform Compatibility:** Connect to MetaMask across desktop, iOS, Android, React Native, and more. -- **Persistent and Seamless Connections:** Reduce reconnections and offer a smoother experience, especially on mobile. -- **Mobile-First:** Utilize instant deep links and advanced features for faster wallet interactions. -- **Enhanced Functionality:** Batch transactions, RPC access, and EIP-6963 integration for wallet discovery and security. - -For a full overview of features, refer to the [MetaMask SDK Product Overview](/connect/metamask-sdk/index.md). - -## Using the MetaMask API - -For developers who need direct control, the **MetaMask API (JSON-RPC)** provides access to Ethereum accounts, signing data, and other core wallet functions. - -- Interact with users' Ethereum accounts -- Perform actions like signing data, executing transactions, and listening for wallet events -- Build dapp logic directly within MetaMask or other Ethereum-compatible environments - -## Next Steps - -- **[Get Started with the SDK](/connect/metamask-sdk/index.md):** Learn how to integrate the SDK into your dapp. -- **[Explore the MetaMask API](/wallet/reference/json-rpc-api/):** Direct access to the core MetaMask wallet features. - -## Questions? - -For more support, connect with the MetaMask team and community on [Consensys Discord](https://discord.gg/consensys). - -:::info MetaMask user support -For MetaMask user support, visit the [MetaMask Help Center](https://support.metamask.io/). -:::