Skip to content
Laser Eyes ยท TypeScript Interface for Bitcoin Wallets
laser eyes logo
One seamless wallet connect for your Ordinals dApp

Unleashing the next wave of developers on Bitcoin Ordinals
yarn
yarn add @omnisat/lasereyes

Version

License

Wallet Support ๐Ÿ—๏ธ
Get all leading walleting into your Ordinals frontend
Modular ๐Ÿงฉ
Composable modules to build applications & libraries with speed
Performant ๐Ÿš€
Quickly create new Bitcoin Ordinal dApps
Typed APIs ๐ŸŒ
Flexible programmatic APIs with extensive TypeScript typing

Overview

Wrap a top-level component with LaserEyesProvider.

// MUST be rendered client-side
import { LaserEyesProvider } from '@omnisat/lasereyes'
import ConnectWallet from '@/components/ConnectWallet'
 
function App() {
    return (
        <LaserEyesProvider config={{
            network: 'mainnet'
        }}>
            <ConnectWallet />
        </LaserEyesProvider>
    )
}

Then, use the useLaserEyes hook to access the context in any child component.

import { LEATHER, UNISAT, XVERSE, useLaserEyes } from '@omnisat/lasereyes';
 
function ConnectWallet() {
  const { connect, disconnect } = useLaserEyes();
  return (
    <>
      <button onClick={() => connect(LEATHER)}>Connect Wallet</button>
 
      <button onClick={() => connect(UNISAT)}>Connect Wallet</button>
 
      <button onClick={() => connect(XVERSE)}>Connect Wallet</button>
 
      <button onClick={disconnect}>Disconnect Wallet</button>
    </>
  );
}

Check out Getting Started for more details.

Features

Laser Eyes supports all these features out-of-the-box:

Example

laser eyes logo

Try Example

Community

Check out the following places for more laser eyes - related content:

Support

Help support future development and make laser eyes a sustainable open-source project:

Sponsors

Ecosystem Partner
UTXOOrdinalsBot
Layer 1 FoundationBlife
Start Ups
Leather WalletCTRLOrange WalletSat Ventures