Core API Reference
Explore the foundational building blocks of LaserEyes and learn how to leverage its powerful features in your applications.
The LaserEyes Core API provides a powerful foundation for building Bitcoin applications. It's designed to be flexible, type-safe, and framework-agnostic, making it suitable for any JavaScript or TypeScript project.
Core Components
LaserEyesClient
The central client that orchestrates wallet connections, transactions, and data retrieval.
DataSourceManager
Manages interactions with Bitcoin data providers like Maestro, Sandshrew, and Mempool.space.
Wallet Providers
Constants and adapters for interacting with different Bitcoin wallet providers.
Security Manager
Handles secure key management, transaction signing, and message verification.
Transaction Builder
Utilities for constructing and managing Bitcoin transactions and PSBTs.
Configuration
Flexible configuration system for customizing LaserEyes behavior.
Core Concepts
Framework Agnostic
The core API is designed to work with any JavaScript framework or vanilla JS project. It provides the foundation that framework-specific packages build upon.
- Pure TypeScript implementation
- No framework dependencies
- Consistent behavior across platforms
Extensible Architecture
LaserEyes is built with extensibility in mind, allowing you to customize and extend its functionality to meet your specific needs.
- Custom wallet providers
- Custom data sources
- Plugin system