Snap integration (developers)
Last updated
Last updated
Gain access to 30M+ MetaMask users by enabling the Sui Snap wallet connection with one line of code.
Since MetaMask Snaps don't support the wallet standard, the Sui Snap wallet needs to be registered manually. You can do this by installing the @kunalabs-io/sui-snap-wallet
package and calling the registerSuiSnapWallet
function in the initialization of your app (e.g., in main.tsx
):
Make sure you're calling the registration method only once during app initialization.
The Sui MetaMask Snap will appear as any regular wallet standard wallet.
The Snap and wallet adapter source code can be found here .