Skip to main content
Build a DeFi dashboard, alert system, or portfolio tracker with the Octav API. This guide walks through four real projects — from a vibecoded React dashboard to an autonomous AI agent — using every tool in the Octav developer ecosystem.
What you’ll build: A real-time portfolio dashboard, a transaction alert system, an AI portfolio agent, and a tax export tool — all powered by the same API.

Why Octav?

Building crypto apps normally means stitching together 10+ APIs, normalizing data across chains, and maintaining a patchwork of indexers. Octav replaces all of that with a single API covering 65+ blockchains.

One API, 65+ Chains

Portfolio, transactions, DeFi positions, and historical data — all from one endpoint

Multiple Access Methods

REST API, MCP Server, CLI, x402 payments, Agent Skill, and llms.txt — pick the tool that fits your workflow

1-Credit Calls

Most calls cost 1 credit ($0.025). Credits never expire. No subscriptions.

AI-Native

Built for vibecoding — structured JSON output, LLM-friendly docs, and MCP integration

Architecture

Octav sits between the blockchain data layer and your application:

Getting Started

Get your API key and make your first request in under 3 minutes.

Get an API Key

Sign up at data.octav.fi and generate an API key. Purchase a credit package — the Starter pack (4,000 credits / $100) is plenty for testing.

Make Your First Request

Fetch the net worth of any wallet address:

Explore the Endpoints

The core endpoints you’ll use across all four projects:

Project 1: Real-Time Portfolio Dashboard

Build a React dashboard that shows net worth, DeFi positions, and token distribution — using a prompt-first approach.

The Vibecoding Prompt

Give this prompt to Claude, Cursor, or your AI coding assistant of choice:
MCP superpower: Install the MCP Server and your AI assistant can query live portfolio data while building the dashboard. It sees real response shapes, not just docs.

The Dashboard Component

Here’s what the AI generates (and what you’d refine):
Security: In production, proxy API calls through your backend. Never expose OCTAV_API_KEY in client-side code. Use a Next.js API route or similar server-side proxy.

Project 2: Transaction Alert System

Build a whale-alert style notification system using the Octav CLI and cron. No Node.js runtime, no dependencies — just bash.

Install the CLI

The Alert Script

Schedule It

Add with:

Customize with AI

Give Claude Code this prompt to extend the script:

Project 3: AI Portfolio Agent

Connect the Octav MCP Server to your AI assistant and build an autonomous monitoring agent.

Set Up MCP

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

Natural Language Queries

Once connected, ask your AI assistant questions like:
The MCP server exposes 14 tools — your AI assistant can call octav_get_portfolio, octav_get_transactions, octav_get_nav, and more directly from conversation.

Python Monitoring Agent

For autonomous monitoring, build a Python agent:

x402 Agent Payments

For autonomous AI agents that don’t have API keys, use the x402 payment protocol. The agent pays per request with USDC — no key management needed.
Via the CLI:

Project 4: Tax & Accounting Export Tool

Export categorized transaction history to CSV for tax reporting.

Historical Snapshots

For year-end portfolio valuations, use the historical endpoint with subscribe-snapshot for automatic daily recording:

Developer Toolkit Overview

Choose the right tool for your use case:
Direct HTTP calls to https://api.octav.fi/v1/. Works with any language or framework. 65+ chains, 1-credit calls, structured JSON responses.

Advanced Patterns

Multi-Wallet Aggregation

Query up to 10 addresses in a single API call (still just 1 credit per address):

Rate Limit Handling

The API allows 360 requests per minute. Implement exponential backoff for reliability:

Dust Filtering

Filter out small token balances that clutter portfolio views:

Webhook-Style Polling

Combine the CLI with cron for webhook-like behavior without running a server:
See CLI Automations for complete, production-ready scripts.

What’s Next

API Reference

Complete endpoint documentation with interactive playground

MCP Server

Connect AI assistants to live portfolio data

CLI Automations

Production-ready cron scripts for monitoring and exports

Pricing

Credit packages starting at $100 for 4,000 calls
Ready to start? Get your API key at data.octav.fi and build your first project in minutes. Join the Discord if you need help.