This represents one possible implementation approach. Other valid implementations may vary based on your specific requirements.
Integration Flow
Step #0 -> Create Strategy
Get started by creating a strategy for your application. You’ll then be able to get an API key that enables you to begin integration.
1
Deposit Funds
Process User Deposits
When a user wants to deposit:
- Use
POST /deposit/txto generate a complete transaction, or - Use
POST /deposit/ixfor more control over transaction construction - User signs the transaction with their wallet
- Submit to Solana network to complete the deposit
2
Monitor Portfolio
Track Performance & Analytics
Regularly update user portfolio data:
GET /user-balances/{user_id}for real-time portfolio valuesGET /user-yield/{user_id}for earned yield values- Display yield earned, current risk exposure, and portfolio growth
3
Withdraw Funds
Process User Withdrawals
When a user wants to withdraw:
- Use
POST /withdraw/txto generate a complete withdrawal transaction, or - Use
POST /withdraw/ixfor custom transaction handling - Specify amount of assets to withdraw or use
"all": truefor full withdrawal - User signs the transaction to complete the withdrawal process

