Skip to main content

Monaco Protocol SDK v0.3.1

Balance Management Enhancements

This release adds new SDK methods for querying user token balances, building on the v0.3.0 foundation. These additions provide more flexible and efficient ways to access account balance information.

What’s New

Balance Query Methods
  • Paginated Balance Listing: New getUserBalances() method with pagination support
  • Individual Token Balance: New getUserBalanceByToken() method for single-token queries
  • Enhanced Balance Details: Returns available, locked, and total balance for each token

Technical Details

Get All User Balances (Paginated) Query all token balances for the authenticated user with pagination:
Get Balance for Specific Token Query balance for a single token address:
Response Structure Both methods return detailed balance information:

Use Cases

Portfolio Dashboard
Pre-Trade Balance Check
Infinite Scroll Balance List

Packages Updated

Installation

Migration Notes

This is a backward-compatible release. No breaking changes from v0.3.0:
  • All v0.3.0 features continue to work unchanged
  • New balance methods are additive - existing getProfile() method still works
  • Existing code requires no modifications to upgrade

Documentation

This SDK release corresponds to backend API enhancements:
  • New GET /api/v1/accounts/balances endpoint (paginated)
  • New GET /api/v1/accounts/balances/:token endpoint (individual token)
  • Performance optimizations for balance queries