octav-api
하는 일
이 스킬은 Octav API로 암호화폐 지갑과 DeFi 보유 자산을 추적하는 방법을 설명합니다. 여러 체인의 잔액과 내역 데이터가 필요한 포트폴리오나 금융 앱을 만드는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓여러 블록체인에 걸친 지갑의 잔액과 순자산을 보여 주고 싶을 때.
- ✓지갑의 거래 내역을 필터링해서 보고 싶을 때.
- ✓대출이나 유동성 풀 같은 DeFi 프로토콜의 포지션을 추적하고 싶을 때.
스킬 링크
https://github.com/internet-court/internet-court-skill/blob/main/vendored/octav/octav-api/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“Octav API를 사용해 모든 체인에 걸친 제 지갑의 총 가치를 보여 주는 페이지를 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 환경 변수에 저장된 Bearer 토큰으로 Octav 엔드포인트를 호출합니다. 포트폴리오, 지갑, 거래 내역, DeFi 포지션 중 맞는 엔드포인트를 고르고, 각 호출의 크레딧 비용을 고려합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Octav API Integration
API for cryptocurrency portfolio tracking, transaction history, and DeFi analytics.
Quick Reference
Base URL: https://api.octav.fi
Auth: Bearer token in Authorization header
Rate Limit: 360 requests/minute/key
Pricing: Credit-based ($0.02-0.025/credit)
Dev Portal: https://data.octav.fi
Authentication
curl -X GET "https://api.octav.fi/v1/credits" \
-H "Authorization: Bearer YOUR_API_KEY"
Store API key in environment variable OCTAV_API_KEY. Never hardcode.
Access methods
Default to the API-key REST API documented below. It covers all 25 endpoints.
Octav also exposes 5 endpoints over the x402 payment protocol at /v1/agent/{portfolio,wallet,nav,status,chains} — 0.025 USDC per call on Base, no API key. Use x402 only when:
- the user explicitly asked for x402 or pay-per-call access, or
- the agent has its own funded wallet and no API key is available.
Otherwise use /v1/* with a Bearer token, and mention x402 exists if one of those cases applies. Do not start from x402 by default.
There is no /v1/agent/transactions — transaction history requires an API key.
Endpoints Overview
| Endpoint | Method | Cost | Description |
|---|---|---|---|
/v1/portfolio |
GET | 1 credit | Portfolio holdings across chains/protocols |
/v1/portfolio/at-block |
GET | Add-on + 1 credit | Portfolio valued at a historical block (Ethereum) |
/v1/virtual-users |
GET | 1 credit | List virtual users (Pro) |
/v1/virtual-users/portfolio |
GET | 1 credit/address | Virtual user holdings (Pro) |
/v1/nav |
GET | 1 credit | Net Asset Value — {nav, currency, conversionPrice} |
/v1/wallet |
GET | 1 credit | Wallet token balances, excludes DeFi positions |
/v1/transactions |
GET | 1 credit | Transaction history with filtering |
/v1/approvals/{chain} |
GET | 1 credit | ERC-20 token approval records |
/v1/token-overview |
GET | 1 credit | Token breakdown by protocol (PRO only) |
/v1/airdrop |
GET | 1 credit | Claimable airdrops (Solana only) |
/v1/historical |
GET | 1 credit | Historical portfolio snapshots |
/v1/sync-transactions |
POST | 1+ credits | Trigger transaction sync |
/v1/contract-protocol |
GET | 5 credits | Resolve contract address to DeFi protocol (refunded on 404) |
/v1/beacon/validators/* |
GET | Add-on | ETH validator details, rewards, withdrawals, deposits |
/v1/chains |
GET | Free | List supported blockchain networks |
/v1/chains/{chainKey}/protocols |
GET | Free | List protocols on a chain |
/v1/status |
GET | Free | Check sync status |
/v1/credits |
GET | Free | Check credit balance |
Subscribe Snapshot (POST, 1200 credits) enables daily portfolio snapshots for an address, which /v1/historical then reads.
x402 endpoints (no API key — see Access methods above)
| Endpoint | Method | Cost | Description |
|---|---|---|---|
/v1/agent/portfolio |
GET | 0.025 USDC | Wallet and protocol holdings |
/v1/agent/wallet |
GET | 0.025 USDC | Wallet holdings only |
/v1/agent/nav |
GET | 0.025 USDC | Net Asset Value — {nav, currency, conversionPrice} |
/v1/agent/status |
GET | 0.025 USDC | Sync status |
/v1/agent/chains |
GET | 0.025 USDC | Supported chains |
An unpaid request returns HTTP 402 with a base64 payment-required header containing the payment challenge (USDC on Base, eip155:8453). An x402-capable HTTP client settles it and retries automatically.
Core Endpoints
Portfolio
Get holdings across wallets and DeFi protocols.
const response = await fetch(
`https://api.octav.fi/v1/portfolio?addresses=${address}`,
{ headers: { 'Authorization': `Bearer ${apiKey}` } }
);
const portfolio = await response.json();
// portfolio.networth, portfolio.assetByProtocols, portfolio.chains
Parameters:
addresses(required): EVM or Solana address. Comma-separate multiple addresses in one request to save credits.includeImages: Include asset/protocol image URLs (default: false)includeExplorerUrls: Include block explorer URLs (default: false)waitForSync: Wait for fresh data if stale (default: false)
Response structure:
{
"address": "0x...",
"networth": "45231.89",
"assetByProtocols": {
"wallet": { "key": "wallet", "name": "Wallet", "value": "12453.20", "assets": [...] },
"aave_v3": { "key"
자주 묻는 질문
API 키는 어디에 보관해야 하나요?
OCTAV_API_KEY 환경 변수에 보관하며, 코드에 직접 넣지 말라고 스킬은 말합니다.
요청 제한이 있나요?
네. 스킬은 키마다 분당 360건의 제한을 나열합니다.
키 대신 요청마다 결제할 수 있나요?
스킬은 요청별 결제 옵션을 언급하지만, 사용자가 요청하거나 에이전트가 자금이 있는 자체 지갑을 가진 경우에만 쓰라고 합니다.
상세 정보
작성자의 원본 설명
Integrate with Octav API for cryptocurrency portfolio tracking, transaction history, and DeFi analytics across 50+ blockchain networks. Use when building applications that need to: (1) Track wallet balances and net worth across multiple chains, (2) Query transaction history with filtering and search, (3) Monitor DeFi protocol positions (Aave, Uniswap, etc.), (4) Access historical portfolio snapshots, (5) Analyze token distribution and holdings, (6) Pay per request as an autonomous agent via x402. Triggers on: "Octav API", "crypto portfolio API", "blockchain portfolio tracking", "DeFi analytics
인기도
- GitHub 스타
- 7.0k
- 순위
- #13657
- 라이선스
- —
- 업데이트
- 2026. 10. 26.
댓글
- …
이 저장소의 다른 스킬
internet-court
7.0k에이전트가 다른 AI 에이전트나 유료 서비스와 안전하게 결제하거나 거래하도록 돕고, 적합한 전문 가이드를 알려 줍니다.
genlayer-erc7710-connector
7.0k에이전트가 GenLayer 검토 결과를 권한 시스템에 연결하도록 돕습니다. 나쁜 검토는 에이전트의 권한을 제한하거나 취소할 수 있습니다.
genlayer-intelligent-contracts
7.0k에이전트가 다른 에이전트가 위임받은 범위를 지켰는지 확인하는 AI 심판의 규칙, 증거, 결과를 정하도록 돕습니다.
x402-erc7710
7.0k에이전트가 웹 서비스 요금을 요청 한 건마다 결제하고, 권한 예산 안에서 지속적인 지출을 설정하도록 돕습니다.
비슷한 스킬
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
slacrawl
394k에이전트가 로컬 Slack 보관본에서 메시지를 검색하고 개수를 세며, 보관본이 얼마나 최신인지 확인하고 필요할 때 새로 고치도록 돕습니다.
goplaces
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.