Integrating Leap Wallet
This documentation provides a guide on integrating Leap Wallet into your Sui application. By following these steps, you can seamlessly detect, connect, and interact with Leap
Detecting Leap Wallet
Prerequisites
# Using NPM
npm i @mysten/wallet-standard
# Using Yarn
yarn add @mysten/wallet-standardImplementing Wallet Detection
import { getWallets } from '@mysten/wallet-standard'
const { get } = getWallets()
const allWallets = get()import { isWalletWithRequiredFeatureSet } from '@mysten/wallet-standard'
const suiWallets = allWallets.filter(isWalletWithRequiredFeatureSet)
Alternative Detection Method
Enable Connection
Disconnect
Sign Personal Message
Sign Transaction
Sign and Execute Transaction
Legacy Support (Transaction Blocks)
Sign Transaction Block
Sign and Execute Transaction Block
Events
Example Usage with Sui SDK
Supported Chains
Last updated