getUserBalances function retrieves the balances of PT, YT, SY, staked YT, and staged funds that a user has locked in the orderbook escrow for active orders.
Usage
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
user | PublicKey | Yes | The user’s wallet public key |
Returns
Returns an object with the following balance fields (all as strings):pt- Principal Token amount held in escrowyt- Yield Token amount held in escrowsy- Standardized Yield token amount held in escrowstakedYt- Staked Yield Token amountstaged- Staged funds available for collection