Integrating Leap Wallet
This documentation provides a guide on integrating Leap Wallet into your Aptos/Movement application. By following these steps, you can seamlessly detect, connect, and interact with Leap
Detecting Leap Wallet
Prerequisites
# If you're using npm
npm install @aptos-labs/wallet-standard
# If you're using yarn
yarn add @aptos-labs/wallet-standardImplementing Wallet Detection
import { getAptosWallets } from '@aptos-labs/wallet-standard'
// Fetch all available Aptos wallets
const wallets = getAptosWallets()
// Access the list of detected wallets
const aptosWallets = wallets.aptosWalletsAlternative Detection Method
Connecting to Leap Wallet
Establishing Connection
Message Signing
Creating a Sign Message Payload
Signing the Message
Transaction Management
Setting Up the Aptos Client
Creating and Signing Transactions
Network Management
1. Specify Network During Connection
2. Change Network After Connection
Last updated