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

# DeFi Dashboards and Analytics

> Use Uniblock to build DeFi dashboards with price, token, transaction, and market activity data.

# DeFi Dashboards and Analytics

DeFi products usually need a mix of wallet state, market data, and event monitoring. Uniblock helps by combining normalized token and transaction data with market-data endpoints and optional provider-specific access through Direct API.

## Best-fit use cases

* Token watchlists and market overview pages
* Treasury dashboards for protocol-owned assets
* Yield, LP, or vault monitoring tools
* Internal analytics for on-chain protocol activity

***

## Recommended APIs

* [Market Data API overview](/reference/unified-api/api-overview-market-data)
* [Token API overview](/reference/unified-api/api-overview-token)
* [Transaction API overview](/reference/unified-api/api-overview-transaction)
* [Direct API overview](/reference/direct-api/overview-direct-api)

Key endpoints to start with:

* `GET /market-data/price`
* `GET /market-data/history`
* `GET /market-data/chart-range`
* `GET /market-data/trending`
* `GET /token/balance`
* `GET /token/transfers`
* `GET /transactions`

***

## Suggested implementation flow

### 1. Build the market layer

Use market-data endpoints to power:

* spot prices
* 24 hour volume
* historical charts
* trending or top-moving token lists

```bash theme={null}
curl --location \
  'https://api.uniblock.dev/uni/v1/market-data/price?chainId=1&tokenAddress=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48' \
  --header 'x-api-key: YOUR_API_KEY'
```

### 2. Add protocol and treasury positions

Use token balance and transaction endpoints to monitor wallets tied to:

* protocol treasuries
* reward distribution wallets
* multisigs
* liquidity management accounts

### 3. Add event-driven workflows

If a dashboard needs to react quickly to transfers or contract activity, add:

* [Address activity webhooks](/reference/webhook/webhook-types/event-trigger-address-activity)
* [Contract event webhooks](/reference/webhook/webhook-types/event-trigger-contract-event)

These are useful for vault deposits, treasury movements, and settlement events.

### 4. Use Direct API when you need provider-specific depth

Some DeFi products eventually need provider-native features or niche datasets. That is where [Direct API](/reference/direct-api/overview-direct-api) is the right extension point.

<Info>
  Start with Unified API for portability. Move into Direct API only when the
  unified schema does not expose the specific provider feature you need.
</Info>

***

## Where JSON-RPC fits

Use [JSON-RPC](/reference/unified-api/overview-jsonrpc) for:

* contract reads with `eth_call`
* pending state inspection
* gas estimation
* raw transaction submission from backend services

This is useful when your DeFi backend must interact with contracts directly rather than just read indexed data.

***

## Common pitfalls

<Warning>
  DeFi apps often mix indexed data and node data. Be explicit about which layer
  is used for pricing, balances, and execution-critical reads.
</Warning>

<Warning>
  If a view is latency-sensitive, avoid over-fetching multiple chart and balance
  endpoints in the same render path. Split summary views from detailed panels.
</Warning>

***

## Related docs

* [Market Data API overview](/reference/unified-api/api-overview-market-data)
* [Direct API categories](/reference/direct-api/direct-api-categories)
* [JSON-RPC overview](/reference/unified-api/overview-jsonrpc)
* [API logs](/guides/uniblock/uniblock-api-logs)
