> For the complete documentation index, see [llms.txt](https://docs.sodex.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sodex.com/for-developers/developers/wealth/quickstart.md).

# Quickstart

Discover a Wealth fund at runtime, then follow the path for its `fundType`. Do not send a vault request to a SoDEX RWA token.

**Mainnet base URL:** `https://mainnet-gw.sodex.dev/api/v1/wealth`

There is no Testnet Wealth API. Contract addresses for vaults are on [Wealth Contracts](/for-developers/developers/wealth/contracts.md).

## 1. List funds

```bash
curl -sS 'https://mainnet-gw.sodex.dev/api/v1/wealth/funds' \
  -H 'Accept: application/json'
```

The list contains listed funds only. Select a fund by its case-sensitive `fundId`. `fundType` says which product it is. The call you submit comes from the table in step 3, after you have read trading status.

| `fundType`      | Product                                           |
| --------------- | ------------------------------------------------- |
| `escrow_vault`  | Escrow vault. A subscription escrow plus a vault. |
| `clob`          | SoDEX RWA token on the order book.                |
| `bridged_vault` | Bridged vault. No local vault.                    |

`nav` and `aum` are omitted on a `clob` fund. A `bridged_vault` omits `aum`, and omits `nav` until an external NAV exists.

## 2. Vault configuration

This step applies to `escrow_vault`. Replace `CXMT` with the selected `fundId`.

```bash
curl -sS 'https://mainnet-gw.sodex.dev/api/v1/wealth/funds/CXMT' \
  -H 'Accept: application/json'
```

Use `data.contracts` and `data.chainConfig` at runtime. Do not hardcode a per-fund address from an example. A missing or unlisted `fundId` is a not-found error. `chainConfig` is `null` when the fund has no on-chain parameter snapshot.

Check `fundStatus` and `chainConfig.paused`. A vault deposit spends the underlying asset on **ValueChain**. If that balance is still on an external network, move it with [Mirror Protocol](/for-developers/developers/mirror-protocol.md) first. The wallet needs SOSO for gas.

## 3. Choose the vault operation

Check [trading status](/for-developers/api-reference/wealth-api/trading.md#trading-status), then match the row below. Exactly one `channel` is active. A batch deposit or redemption encodes `referral` first ([Referrals](/for-developers/developers/wealth/referrals.md)), including `bytes32(0)` when none applies. On a direct batch call, also pass `builderFeeData` (`bytes32(0)` when none applies); see [Builder Integration](/for-developers/developers/wealth/builder.md).

`fundType` is `escrow_vault`, `clob`, or `bridged_vault`. `fundStatus` is `subscription` or `live`. `channel` is `rfq`, `batch`, `closed`, `subscription`, or `clob`.

| `fundType`      | `fundStatus`             | `channel`      | What to do                                                                                                                            |
| --------------- | ------------------------ | -------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| `escrow_vault`  | `subscription`           | `subscription` | Subscribe or cancel on `contracts.subscription` with `subscribe` or `unsubscribe`.                                                    |
| `escrow_vault`  | `subscription`           | `closed`       | Do not subscribe.                                                                                                                     |
| `escrow_vault`  | `live`                   | `rfq`          | Request a quote and submit `buy` or `sell`. See [RFQ Subscribe and Redeem](/for-developers/developers/wealth/rfq.md).                 |
| `escrow_vault`  | `live`                   | `batch`        | Submit `requestDeposit` or `requestRedeem` on the vault. See [Vault Lifecycle](/for-developers/developers/wealth/vault-lifecycle.md). |
| `escrow_vault`  | `live`                   | `closed`       | The market is closed. Wait for `nextChannelAt`.                                                                                       |
| `clob`          | `live`                   | `clob`         | Place an order on the order book. See [Trading](/for-developers/developers/trading.md).                                               |
| `clob`          | `live`                   | `closed`       | The market is closed. Wait for `nextChannelAt`.                                                                                       |
| `bridged_vault` | `subscription` or `live` | `closed`       | The bridge is not ready.                                                                                                              |

Direct and signed vault submission and claims are how-tos under Vault Lifecycle. A CLOB fill for a SoDEX RWA token is not a vault request.

## 4. Confirm the result

A successful submission is not arrival.

For a **vault**, save the request transaction hash and query [User Fund History](/for-developers/api-reference/wealth-api/user-fund-history.md). Amounts and prices are decimal strings; do not parse them as floating-point JSON numbers.

```bash
curl -sS "https://mainnet-gw.sodex.dev/api/v1/wealth/users/$USER_ADDRESS/fund-details?fundId=$FUND_ID" \
  -H 'Accept: application/json'
```

Match the saved hash and operation kind. Empty entries or `processing` do not confirm credit. Claim only when history and the on-chain request say the result was not automatically delivered. Then check the vault share or underlying balance.

For a **SoDEX RWA token**, confirm the [Spot](/for-developers/api-reference/trading-api/rest-v1/sodex-rest-spot-api.md) position. Do not use `fund-details` claim flags for that trade.

{% content-ref url="/pages/UM96vkfpt9V4mWJV51RX" %}
[RFQ Subscribe and Redeem](/for-developers/developers/wealth/rfq.md)
{% endcontent-ref %}

{% content-ref url="/pages/a1uIUuv4ujFrQ0lk4JjC" %}
[Vault Lifecycle](/for-developers/developers/wealth/vault-lifecycle.md)
{% endcontent-ref %}

{% content-ref url="/pages/U4BcskuFTTWaukMrJD9k" %}
[Builder Integration](/for-developers/developers/wealth/builder.md)
{% endcontent-ref %}

{% content-ref url="/pages/0JPfycqwKsnQ2suYPttG" %}
[Referrals](/for-developers/developers/wealth/referrals.md)
{% endcontent-ref %}

{% content-ref url="/pages/aQ6Q5f14MXj2NyvjBB9V" %}
[Wealth API](/for-developers/api-reference/wealth-api.md)
{% endcontent-ref %}
