This is a demo application showcasing how to implement the Lombard Staking SDK to enable Bitcoin staking functionality in your application.
- Bitcoin to LBTC staking flow implementation
- Network fee authorization and signature handling
- BTC deposit address generation and management
- Deposit status tracking
- Exchange rate and fee calculations
- Clone the repository
- Install dependencies:
npm install
# or
yarn install
- Run the development server:
npm run dev
# or
yarn dev
src/
├── modules/
│ ├── stake/ # Staking implementation
│ │ ├── components/ # Staking UI components
│ │ └── hooks/ # Custom hooks for SDK integration
│ ├── auth/ # Wallet connection
│ └── common/ # Shared components
This demo implements the core staking flow from the Lombard SDK:
- Network Fee Authorization
- BTC Deposit Address Generation
- Deposit Management
- LBTC Minting
For detailed SDK documentation, please refer to the Lombard Staking SDK package and Lombard SDK V2 documentation.