Skip to content

Commit d287d3a

Browse files
authored
Merge pull request #881 from Web3Auth/mipd
Add MIPD as a feature
2 parents 17eac4d + 3d7d60f commit d287d3a

File tree

4 files changed

+43
-9
lines changed

4 files changed

+43
-9
lines changed

docs/features/mipd.mdx

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
title: Multi Injected Provider Discovery
3+
description: "Multi Injected Provider Discovery (MIPD) | Documentation - Web3Auth"
4+
---
5+
6+
Web3Auth have capability to discover, and interact with various injected wallets seamlessly. This
7+
feature is known as Multi Injected Provider Discovery. It's is a standard that Web3Auth follows to
8+
identify and interact with various wallet providers that inject themselves into the browser's window
9+
object.
10+
11+
This feature is particularly useful in environments where multiple wallets might be present, such as
12+
browser extensions. It provides a more flexible and user-friendly experience for applications that
13+
support Ethereum or Solana ecosystems.
14+
15+
MIPD for Ethereum compatible wallets follows the [EIP-6963](https://eips.ethereum.org/EIPS/eip-6963)
16+
standard. It uses a new event-based system for provider discovery where wallets announce their
17+
presence by emitting a event. These events can be listened by dApps to discover available providers.
18+
19+
MIPD for Solana wallets follows the
20+
[Wallet Standard for Solana](https://github.com/wallet-standard/wallet-standard/blob/master/extensions/solana.md).
21+
Wallet Standard is a set of interfaces and conventions designed to improve the user experience for
22+
wallets.
23+
24+
## Key features of MIPD
25+
26+
1. **Enhanced User Experience**: Users can choose their preferred wallet from multiple options.
27+
2. **Broader Wallet Support**: Your dApp can interact with a wide range of wallets without
28+
additional configuration.
29+
3. **Ecosystem Flexibility**: Supports both Ethereum compatible chains and Solana ecosystem,
30+
catering to a wider audience.
31+
32+
## Implementing MIPD in Your Application
33+
34+
You can start using MIPD feature in your application by simply configuring adapters for Web3Auth PnP
35+
Web SDKs. For EVM based applications, you can simply use the
36+
[default EVM adapter](/docs/sdk/pnp/web/adapters/default-evm-adapter), and for Solana based
37+
applications you can use the [default Solana adapter](web/adapters/default-solana-adapter).

docs/sdk/pnp/web/adapters/default-evm-adapter.mdx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@ import Tabs from "@theme/Tabs";
1111

1212
## [`@web3auth/default-evm-adapter`](https://npmjs.com/package/@web3auth/default-evm-adapter)
1313

14-
Default EVM adapter allows you to create external adapters like
15-
[`@web3auth/torus-evm`](/sdk/pnp/web/adapters/torus-evm),
16-
[`@web3auth/metamask`](/sdk/pnp/web/adapters/metamask), and
17-
[`@web3auth/wallet-connect-v2`](/sdk/pnp/web/adapters/wallet-connect-v2) easily with a single line
18-
of code.
14+
Default EVM adapter allows you to seamlessly identify injected EVM wallets and interact with them
15+
with a single line of code.
1916

2017
## Basic Details
2118

docs/sdk/pnp/web/adapters/default-solana-adapter.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@ sidebar_label: Default Solana Adapter
44
description: "Web3Auth PnP Web Adapter SDKs - Default Solana Adapter | Documentation - Web3Auth"
55
---
66

7-
# Default EVM Adapter
7+
# Default Solana Adapter
88

99
import TabItem from "@theme/TabItem";
1010
import Tabs from "@theme/Tabs";
1111

1212
## [`@web3auth/default-solana-adapter`](https://npmjs.com/package/@web3auth/default-solana-adapter)
1313

14-
Default Solana Adapter allows you to create external adapters like
15-
[`@web3auth/torus-solana`](/sdk/pnp/web/adapters/torus-solana), and
16-
[`@web3auth/phantom`](/sdk/pnp/web/adapters/phantom) easily with a single line of code.
14+
Default Solana adapter allows you to seamlessly identify injected Solana wallets and interact with
15+
them with a single line of code.
1716

1817
## Basic Details
1918

sidebars.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ const sidebars: SidebarsConfig = {
273273
"features/session-management",
274274
"features/user-management",
275275
"features/wallet-pregeneration",
276+
"features/mipd",
276277
"features/wallet-aggregation",
277278
"features/whitelabel",
278279
{

0 commit comments

Comments
 (0)