Chuyển đến nội dung
Skillpedia
Phân tích và bảng tính7.0k · #13657

octav-api

Skill này làm gì

Skill này giải thích cách dùng Octav API để theo dõi ví crypto và tài sản DeFi. Skill dành cho lập trình viên xây ứng dụng danh mục hoặc tài chính cần dữ liệu số dư và lịch sử đa blockchain.

Khi nào nên dùng

  • ✓Khi bạn muốn hiển thị số dư của một ví và tổng giá trị trên nhiều blockchain.
  • ✓Khi bạn cần lịch sử giao dịch đã lọc của một ví.
  • ✓Khi bạn muốn theo dõi vị thế trong các giao thức DeFi như cho vay hoặc pool thanh khoản.

Liên kết skill

https://github.com/internet-court/internet-court-skill/blob/main/vendored/octav/octav-api/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/internet-court/internet-court-skill/blob/main/vendored/octav/octav-api/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tôi muốn xây một trang hiển thị tổng giá trị ví của mình trên tất cả các blockchain bằng Octav API.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent gọi các endpoint của Octav với Bearer token được lưu trong biến môi trường. Agent chọn endpoint phù hợp cho danh mục, ví, giao dịch hoặc vị thế DeFi, và lưu ý chi phí credit của từng lệnh gọi.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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"
Câu hỏi thường gặp

Tôi nên lưu khóa API ở đâu?

Skill khuyên lưu trong biến môi trường OCTAV_API_KEY và không bao giờ ghi cứng vào mã.

Có giới hạn tốc độ không?

Có. Skill ghi nhận giới hạn 360 yêu cầu mỗi phút cho mỗi khóa.

Tôi có thể trả tiền theo lần gọi thay vì dùng khóa không?

Skill có nhắc tới tùy chọn trả theo lần gọi, nhưng chỉ nên dùng khi được yêu cầu hoặc khi agent có ví đã nạp tiền riêng.

Chi tiết

Mô tả gốc của tác giả

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

repo: internet-court/internet-court-skill

Độ phổ biến

Sao GitHub
7.0k
Vị trí xếp hạng
#13657
Giấy phép
—
Cập nhật
26/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự