Core API
Wallet Providers
LaserEyes supports multiple Bitcoin wallet providers through a unified interface, making it simple to integrate with any supported wallet.
Supported Wallets
Usage
Basic Example
using-providers.ts
import {
UNISAT,
XVERSE,
OYL,
LEATHER,
MAGIC_EDEN,
OKX,
PHANTOM,
WIZZ,
ORANGE
} from '@omnisat/lasereyes-core'
// Connect to UniSat wallet
await client.connect(UNISAT)
// Connect to Xverse wallet
await client.connect(XVERSE)
// Connect to OYL wallet
await client.connect(OYL)
Provider Detection
provider-detection.ts
import { isWalletAvailable } from '@omnisat/lasereyes-core'
// Check if UniSat wallet is available
const isUnisatAvailable = isWalletAvailable(UNISAT)
// Get all available wallet providers
const availableProviders = [
UNISAT,
XVERSE,
OYL,
LEATHER,
MAGIC_EDEN,
OKX,
PHANTOM,
WIZZ,
ORANGE
].filter(provider => isWalletAvailable(provider))