This Snap allows MetaMask users to interact with the Sui blockchain.
The Snap can be installed by visiting https://suisnap.com or any app that has integrated the Snap (see below for integration instructions).
For apps to be able to connect to Flask, you will need to disable MetaMask and any other wallets that might be overriding the window.ethereum
object.
Docs are available at https://docs.suisnap.com/
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
):
pnpm add @kunalabs-io/sui-snap-wallet
import { registerSuiSnapWallet } from "@kunalabs-io/sui-snap-wallet";
registerSuiSnapWallet();
pnpm install
- run
pnpm build
inpackages/wallet-adapter
- run
pnpm dev
in bothpackages/snap
andpackages/wallet-dapp