Integrating Leap Wallet
This documentation provides a guide on integrating Leap Wallet into your Solana application. By following these steps, you can seamlessly detect, connect, and interact with Leap.
Detecting Leap Wallet
Prerequisites
# Using NPM
npm i @wallet-standard/core
# Using Yarn
yarn add @wallet-standard/coreImplementing Wallet Detection
import { getWallets } from '@wallet-standard/core'
const { get } = getWallets()
const allWallets = get()import { isWalletAdapterCompatibleStandardWallet }from '@solana/wallet-adapter-base'
const solanaWallets = allWallets.filter(isWalletAdapterCompatibleStandardWallet)Alternative Detection Method
Enable Connection
Disconnect
Sign In
Sign Message
Sign Transaction
Sign and Send Transaction
Change Network
Example Usage with Web3.js
Events
Last updated