> ## 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.

# Get Solana Wallet Positions With USD Value

List every token a Solana wallet holds, with best-effort USD prices for up to 50 of them. Returns native SOL plus all nonzero classic SPL and Token-2022 balances, each with its exact mint, owning token program, raw amount, decimals and human-readable amount. Pricing covers up to 50 prioritized holdings per read — canonical USDC and SOL first, then enumeration order — so a holding may report a null price simply because it fell outside that window; the valuation summary reports how many were priced and whether coverage was partial. Balances held across several token accounts for the same mint are summed. Ideal for: valuing and ranking a wallet's main Solana holdings, and answering what a Solana wallet is worth. Not a whole-portfolio total on a wallet holding more than 50 mints; use get-solana-wallet-positions instead when only the inventory is needed and no price is wanted.

![Get Solana Wallet Positions With USD Value logo](https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/solana/info/logo.png)
Catalog action Solana Onchain

List every token a Solana wallet holds, with best-effort USD prices for up to 50 of them. Returns native SOL plus all nonzero classic SPL and Token-2022 balances, each with its exact mint, owning token program, raw amount, decimals and human-readable amount. Pricing covers up to 50 prioritized holdings per read — canonical USDC and SOL first, then enumeration order — so a holding may report a null price simply because it fell outside that window; the valuation summary reports how many were priced and whether coverage was partial. Balances held across several token accounts for the same mint are summed. Ideal for: valuing and ranking a wallet's main Solana holdings, and answering what a Solana wallet is worth. Not a whole-portfolio total on a wallet holding more than 50 mints; use get-solana-wallet-positions instead when only the inventory is needed and no price is wanted.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `get-solana-wallet-positions-usd` |
| Category | Solana Onchain |
| Connector | Not required |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `solana`, `spl`, `token`, `balance`, `positions`, `portfolio`, `usd`, `price`, `query`, `read`, `wallet` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `address` | `string` | Yes | Solana wallet address to enumerate holdings for \(base58 encoded\) |
| `chainId` | `number` | Yes | Solana network \(Mainnet or Devnet\). USD pricing is MAINNET ONLY: on Devnet every row returns priceUsd/valueUsd null and valuation.source null, because a mint address names a different token there. |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `address` | `string` | Yes | The wallet address that was enumerated |
| `chainId` | `number` | Yes | Solana network the balances were read from |
| `positions` | `array` | Yes | Every nonzero holding the wallet owns, one row per mint |
| `valuation` | `object` | Yes | How far USD valuation reached on this read. Never a statement about the holdings — an unpriced row still reports a proven balance. |

## Examples

**Workflow node**

```json
{
  "type": "get-solana-wallet-positions-usd",
  "payload": {
    "address": "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm",
    "chainId": 7565164
  },
  "children": []
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/get-solana-wallet-positions-usd/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "address": "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm",
    "chainId": 7565164
  }
}'
```

**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.