Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 1.14 KB

README.md

File metadata and controls

34 lines (21 loc) · 1.14 KB

Sui MetaMask Snap

This Snap allows MetaMask users to interact with the Sui blockchain.

Usage

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/

Enable Sui Snap in your app

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();

Development

  • pnpm install
  • run pnpm build in packages/wallet-adapter
  • run pnpm dev in both packages/snap and packages/wallet-dapp