Troubleshooting
Common issues and their solutions when using the SatsTerminal Borrow SDK.Setup Issues
”apiKey is required”
Problem: SDK initialization fails with configuration error. Solution:- Environment variable is set
- Variable name is correct
- Value is not empty string
”wallet.signMessage must be a function”
Problem: Wallet provider configuration error. Solution:“Setup failed” / Smart Account Error
Problem:setup() fails with SmartAccountError.
Causes:
- Invalid signature from wallet
- Network connectivity issues
- API key issues
Wallet Issues
”User rejected signature”
Problem: User cancelled the signature request. Solution:“Invalid signature format”
Problem: Wallet returns signature in unexpected format. Solution:Quote Issues
”No quotes available”
Problem:getQuotes() returns empty array or throws QuoteError.
Causes:
- Collateral amount too small
- Loan amount too large for collateral
- LTV too high
- No liquidity available
Workflow Issues
”Deposit not received” / Stuck on AWAITING_DEPOSIT
Problem: Workflow stuck waiting for deposit. Causes:- BTC not sent to deposit address
- Transaction not confirmed
- Wrong amount sent
- Verify transaction was sent to correct address
- Check transaction confirmations (typically need 1-3)
- Verify amount matches exactly
”Workflow timeout”
Problem: Workflow times out without completing. Solution:“Bridge failed”
Problem: Collateral withdrawal bridge operation fails. Causes:- Network congestion
- Bridge liquidity issues
- Invalid BTC address
Session Issues
”Session expired”
Problem: Operations fail after session expires. Solution:“Not initialized”
Problem: Operations fail with “call setup() first”. Solution:API Issues
”Rate limited” (429)
Problem: Too many API requests. Solution:Storage Issues
”Storage quota exceeded”
Problem: Browser localStorage full. Solution:React-Specific Issues
”Cannot update unmounted component”
Problem: State updates after component unmounts. Solution:Debug Mode
Enable detailed logging:Getting Help
If issues persist:- Check documentation - docs.satsterminal.com
- Search issues - github.com/satsterminal/sdk/issues
- Contact support - [email protected]
- SDK version
- Error message and stack trace
- Steps to reproduce
- Browser/Node.js version
- Relevant configuration (without API keys)