# flash_balances

Fetch native and token balances for a wallet, using the built-in per-chain public RPCs (or configured overrides) — no external RPC lookup needed. Defaults to the configured funder wallet. Read-only; works without an API key. Omitting tokens lists every token the wallet holds: SPL tokens on Solana, and ERC-20s on EVM chains that have a block explorer configured (auto-discovered, then read live on-chain). Pass explicit tokens to query specific addresses, or on EVM chains without explorer support (only the native balance is returned otherwise).

Agent View of the PolicyLayer registry record for `flash_balances`. HTML page: https://policylayer.com/tools/definitive-fi-flash-mcp/flash-balances

## Facts

- Tool: `flash_balances`
- Server: Flash (`@definitive-fi/flash-mcp`) — https://policylayer.com/tools/definitive-fi-flash-mcp.md
- Install: `npx -y @definitive-fi/flash-mcp`
- Homepage: https://www.npmjs.com/package/@definitive-fi/flash-mcp
- Risk category: Read (Low risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 4 (1 required)
- Recommended policy verdict: Allowed

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `chain` | string | yes |  |
| `rpcUrl` | string | no | Override the RPC endpoint for this call |
| `tokens` | array | no | Token addresses (EVM) or mints (Solana) to include |
| `address` | string | no | Wallet address (defaults to the configured funder wallet for this chain) |

Parameters from the server's own tool schema.

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "flash_balances",
    "arguments": {
      "chain": "<chain>"
    }
  }
}
```

## Why flash_balances is rated Low

This tool retrieves and queries wallet balance data with no side effects, modifications, or irreversible actions. It is a pure read operation that queries blockchain state. The presence of related financial tools (flash_submit_order, flash_cancel_order) on the same server does not change the classification of this specific tool, which is strictly informational.

From the tool's own definition: "Tool description explicitly states 'Fetch native and token balances for a wallet' and 'Read-only; works without an API key.' The description emphasizes it retrieves balance information without modifying state."

Risk signals: Bulk/mass operation — affects multiple targets

## Use case

AI agents call flash_balances to retrieve information from Flash without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

## Recommended policy (PolicyLayer)

Verdict: **Allowed**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Flash:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "flash_balances": {}
  }
}
```

## Other tools on Flash (7)

- `flash_cancel_order` — Destructive — https://policylayer.com/tools/definitive-fi-flash-mcp/flash-cancel-order.md
- `flash_submit_order` — Financial — https://policylayer.com/tools/definitive-fi-flash-mcp/flash-submit-order.md
- `flash_get_order` — Read — https://policylayer.com/tools/definitive-fi-flash-mcp/flash-get-order.md
- `flash_list_orders` — Read — https://policylayer.com/tools/definitive-fi-flash-mcp/flash-list-orders.md
- `flash_quote` — Read — https://policylayer.com/tools/definitive-fi-flash-mcp/flash-quote.md
- `flash_status` — Read — https://policylayer.com/tools/definitive-fi-flash-mcp/flash-status.md
- `flash_setup` — Write — https://policylayer.com/tools/definitive-fi-flash-mcp/flash-setup.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=definitive-fi-flash-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/definitive-fi-flash-mcp
