State
UserProfile | undefined
Core profile metadata (id, address, username, account type, withdrawal status). Undefined until fetched. Does not include balances, movements, or orders.
AccountBalance[]
User’s token balances. Populated by
fetchProfile() (first 20) or getUserBalances(). Empty array until fetched.GetPaginatedUserMovementsResponse | undefined
User’s ledger movements. Populated by
fetchProfile() (page 1, limit 20) or getPaginatedUserMovements(). Undefined until fetched.GetPaginatedOrdersResponse | undefined
User’s orders. Populated by
fetchProfile() (page 1, pageSize 20) or getPaginatedOrders(). Undefined until fetched.boolean
True while
fetchProfile() is in flight. Does not reflect individual fetch method calls.Actions
() => Promise<UserProfile>
Fetches the core profile and the first page of balances, movements, and orders in parallel. Updates all state fields. Throws if the profile fetch fails; balance/movement/order fetch failures are silent (state remains unchanged for those fields).
(params?) => Promise<GetUserBalancesResponse>
Fetch paginated token balances. Updates
balances state.Parameters:page(optional): Page number, starts from 1 (default: 1)pageSize(optional): Number of items per page, max 100 (default: 20)
(assetId: string) => Promise<AccountBalance>
Get the balance for a specific asset by its UUID. Does not update
balances state.(params?) => Promise<GetPaginatedUserMovementsResponse>
Fetch paginated transaction history. Updates
movements state.Parameters:page(optional): Page number, starts from 1 (default: 1)pageSize(optional): Number of items per page, max 100 (default: 20)entryType(optional): Filter by entry type (LedgerEntryType, upper-case)transactionType(optional): Filter by transaction type (TransactionType, upper-case)assetId(optional): Filter by asset UUID
(params?) => Promise<GetPaginatedOrdersResponse>
Fetch paginated orders. Updates
orders state.Parameters:page(optional): Page number, starts from 1 (default: 1)pageSize(optional): Items per page, max 100 (default: 20)

