wallet-spark
Overview of the @tetherto/wdk-wallet-spark module
Known Issue: Thread Hanging in Bare runtime Environments
There is a known issue with this module causing thread hanging when used in bare runtime environments. The module is not production-ready in bare runtime at this time.
For the latest updates and workarounds, please check the GitHub Issues.
A simple and secure package to manage BIP-32 wallets for the Spark blockchain. This package provides a clean API for creating, managing, and interacting with Spark wallets using BIP-39 seed phrases, BIP-44 derivation paths, and the Spark SDK for Bitcoin layer 2 functionality including Lightning Network integration.
Features
Spark Blockchain Support: Full integration with the Spark Bitcoin layer 2 network
Lightning Network Integration: Create and pay Lightning Network invoices directly
Bitcoin Layer 1 Bridge: Deposit and withdraw Bitcoin between layer 1 and Spark
BIP-44 Derivation Paths: Support for standard BIP-44 derivation paths with Spark-specific coin type (998)
BIP-39 Seed Phrase Support: Generate and validate BIP-39 mnemonic seed phrases
Multi-Account Management: Create and manage multiple accounts from a single seed phrase
Single-Use Deposit Addresses: Generate unique deposit addresses for Bitcoin layer 1 deposits
Fee-Free Transactions: Spark transactions are fee-free on the layer 2 network
Transaction History: Complete transaction history with incoming/outgoing transfers
Message Signing: Sign and verify messages using Spark identity keys
Memory Safety: Secure private key management with automatic memory cleanup
TypeScript Support: Full TypeScript definitions included
Supported Networks
This package supports the following Spark networks:
Spark Mainnet: Production Spark network
Spark Testnet: Spark test network for development
Spark Regtest: Local Spark network for testing

