> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Nest Detect Balance

Read all Nest vault token balances and pUSD balance for a wallet on Plume Network (chain 98866). Uses RPC multicall for efficient batch reading. Returns token balances in both raw (wei) and human-readable formats. Ideal for: portfolio tracking, rebalancing workflows, vault balance monitoring.

![Nest Detect Balance logo](https://cdn.b3.fun/b3os-icons/plume.svg)
Catalog action Blockchain Data

Read all Nest vault token balances and pUSD balance for a wallet on Plume Network (chain 98866). Uses RPC multicall for efficient batch reading. Returns token balances in both raw (wei) and human-readable formats. Ideal for: portfolio tracking, rebalancing workflows, vault balance monitoring.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `nest-detect-balance` |
| Category | Blockchain Data |
| Connector | Not required |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `defi`, `plume`, `nest`, `balance`, `vault`, `read`, `rebalancing` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `walletAddress` | `string` | Yes | Wallet address to query Nest vault balances for. |
| `includeZeroBalances` | `boolean` | No | Whether to include tokens with zero balance in the output \(default: true\). |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `walletAddress` | `string` | Yes | The wallet address queried. |
| `balances` | `array` | Yes | Array of token balances. |
| `totalValuePusd` | `string` | Yes | Total portfolio value in pUSD \(human-readable\). |
| `nativeBalance` | `string` | No | Native PLUME token balance in human-readable units \(for gas estimation\). |

## Examples

**Workflow node**

```json
{
  "type": "nest-detect-balance",
  "payload": {
    "walletAddress": "0x0000000000000000000000000000000000000000"
  },
  "children": []
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/nest-detect-balance/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "walletAddress": "0x0000000000000000000000000000000000000000"
  }
}'
```

**Use expressions for dynamic values**

Payload fields can use workflow expressions such as `{{$trigger.body.amount}}`, `{{$nodes.fetch.result.price}}`, and `{{$props.asset}}` when the value should come from a trigger, prior node, or reusable workflow prop.