> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.solvimon.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.solvimon.com/_mcp/server.

# Wallet balances

The Wallet balances component renders a customer's current credit wallet balances. Use it when you want to show prepaid credit or balance state in your product.

---

![](/_fern-img/cf0ca75a5b14c625529eb8587dee6ec3b6749bc733bb84a7825a74e02912fe9b.webp)

---

## Overview

Wallet balances is driven by a `portalObject` your backend generates for a specific customer. The SDK uses it to fetch and display that customer's active wallets and their remaining balances. Your frontend never handles API keys directly.

This is a display-only component — it has no interactive actions.

## Mount the component

**`Wallet balances component`**

```js Wallet balances component
import { createSolvimonCore } from '@solvimon/solvimon-web/core';

// Generated by your backend via the Solvimon API.
const customerPortalObject = {
    object_type: 'PORTAL_URL',
    id: 'purl_example',
    type: 'CUSTOMER_PORTAL',
    customer_id: 'cust_example',
    token: 'replace-with-a-real-portal-token',
    status: 'PUBLISHED',
};

const solvimon = createSolvimonCore({
    environment: 'TEST',
    locale: 'en-US',
});

const unmount = solvimon.createComponent('wallet-balances', {
    container: '#sdk-root',
    portalObject: customerPortalObject,
});

window.addEventListener('beforeunload', () => {
    unmount?.();
});
```