Complete Borrow App
BorrowApp composes the complete SatsTerminal borrowing journey into one framework-agnostic application. It includes loan creation, offer selection, workflow tracking, loan history, focused management views, repayment, collateral withdrawal, and platform-wallet EVM withdrawal.
No application routes are required. Selecting, tracking, or creating a loan opens a focused view controlled by URL search parameters.
Install
This single command installs every supporting SatsTerminal block and required shadcn primitive automatically.
BorrowApp requires @satsterminal-sdk/borrow 1.7.3 or later.
Render
BorrowApp includes a minimal UniSat connector, owns the BorrowProvider, restores the extension account and SDK session, and starts a fresh SDK session only when restoration is unavailable. No wallet package is required.
Applications that already manage a wallet can pass their own SDK-compatible wallet prop; doing so bypasses the built-in UniSat connection screen.
Included flow
The installed app composes:
LoanComposer and AvailableOffers
- Resumable
BorrowFlow
UserLoans
LoanManagement for Deposit more and Borrow more
RepayLoan
WithdrawCollateral
WalletWithdrawal for EVM platform-wallet transfers
PlatformWalletAddress in the application header
Focused loan pages
BorrowApp starts on a dashboard containing the composer, offers, history, and wallet withdrawal. Creating a loan or selecting an existing loan switches to a focused transaction view instead of stacking management components below the dashboard.
The selected view is stored in namespaced stBorrow* URL search parameters using the browser History API. Refreshing preserves the current transaction, browser Back returns to the dashboard, and the component remains framework-agnostic—no Next.js or React Router dependency is required.
Props
Atomic components
Use the individual registry blocks instead when you need custom routing or a different layout. BorrowApp installs the same editable source components; it does not introduce a separate closed component system.