Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ic-dashboard

БесплатноБез исполняемых скриптовНе проверен

Query the public REST APIs that power dashboard.internetcomputer.org. Covers canister metadata, ICRC ledger data, SNS data, ICP ledger, and network metrics…

jiayaoqijiaот jiayaoqijia★ 81 звезда на GitHub

Об этом скилле

IC Dashboard APIs

What This Is

These public REST APIs power dashboard.internetcomputer.org. They expose read-only access to canister metadata, ICRC ledgers, SNS data, the ICP ledger, and network metrics via OpenAPI specs and Swagger UI. Agents and scripts can call them over HTTPS from off-chain (no canister deployment or cycles required). Prefer v2 or higher API versions where available; they provide cursor-based pagination (after, before, limit) and are the same surface the dashboard uses.

Prerequisites

  • Any HTTP client: curl, fetch, axios, or the language’s native HTTP library.
  • No icp-cli or canister deployment needed for read-only API access.
  • For OpenAPI-based codegen: optional use of the openapi.json URLs with your preferred OpenAPI tooling.

API Base URLs and Docs

API Base URL OpenAPI spec Swagger / Docs Prefer
IC API https://ic-api.internetcomputer.org /api/v3/openapi.json /api/v3/swagger v4 for canisters, subnets (cursor pagination)
ICRC API https://icrc-api.internetcomputer.org /openapi.json /docs v2 for ledgers (TestICP and other ICRC tokens; not mainnet ICP)
SNS API https://sns-api.internetcomputer.org /openapi.json /docs v2 for snses, proposals, neurons
Ledger API (mainnet ICP) https://ledger-api.internetcomputer.org /openapi.json /swagger-ui/ Use for ICP token; v2 for cursor pagination
Metrics API https://metrics-api.internetcomputer.org /api/v1/openapi.json /api/v1/docs v1 (no newer version)

Full URLs for specs and UI:

How It Works

  1. Prefer v2+ APIs with cursor pagination. IC API v4 (/api/v4/canisters, /api/v4/subnets), ICRC API v2 (/api/v2/ledgers, /api/v2/ledgers/{id}/transactions, etc.), and SNS API v2 (/api/v2/snses, /api/v2/snses/{id}/proposals, /api/v2/snses/{id}/neurons) use after, before, and limit for stable, efficient paging. Avoid v1/offset-based endpoints when a v2+ alternative exists.
  2. Choose the right API for the data you need: IC API (canisters, subnets, NNS neurons/proposals), Ledger API for mainnet ICP (accounts, transactions, supply), ICRC API for other ICRC ledgers only (ckBTC, SNS tokens, testicp — ICRC API does not expose mainnet ICP), SNS API (SNS list, neurons, proposals), Metrics API (governance, cycles, Bitcoin, etc.).
  3. Use the OpenAPI spec to get exact path, query, and body schemas and response shapes; prefer the spec over hand-written docs to avoid drift.
  4. Call over HTTPS with GET (or documented method). Use the cursor fields from v2+ responses to request the next or previous page. The names are not uniform: IC, ICRC and SNS APIs return next_cursor / previous_cursor, but Ledger API returns next_cursor / prev_cursor and names the row array after the resource (accounts, blocks, …) rather than a uniform data. Read the field names from the response (or the OpenAPI spec) rather than assuming.

Mistakes That Break Your Build

  1. Wrong base URL or API version. IC API uses /api/v3/ (and v4 for canisters/subnets); ICRC has /api/v1/ and /api/v2/ (ICRC API does not serve mainnet ICP — use Ledger API). Ledger API uses unversioned paths for some endpoints (e.g. /accounts, /supply/total/latest) and /v2/ for cursor-paginated lists. Metrics API uses /api/v1/. Using the wrong prefix returns 404 or wrong schema.

  2. Canister ID format. Canister IDs in paths and queries are principal text: lowercase Base32 of CRC32(blob) · blob, split into 5-character groups where only the last group may be shorter (1–5 characters). A mainnet canister ID is 27 characters — four groups of five plus a final three, e.g. ryjl3-tyaaa-aaaaa-aaaba-cai. Principals are not fixed-length: subnet IDs reach the 63-character maximum (ten groups of five plus a final three), and short ones such as the management canister aaaaa-aa are also valid principals. Sending a raw principal string in the wrong encoding or length causes 422 or 400.

  3. Using ICRC API for mainnet ICP. ICRC API exposes test ICP (TestICP) only, not mainnet ICP. For mainnet ICP token data (accounts, transactions, supply) use Ledger API (ledger-api.internetcomputer.org). Use ICRC API for other ICRC ledgers (e.g. ckBTC, SNS tokens) and for TestI

Полный SKILL.md на GitHub

Установить ic-dashboard в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

LICENSESOURCE.mdTRUST.auto.yaml

FAQ

Что делает скилл ic-dashboard?

Query the public REST APIs that power dashboard.internetcomputer.org. Covers canister metadata, ICRC ledger data, SNS data, ICP ledger, and network metrics with cursor-based pagination. Use when fetching canister info, token data, SNS proposals, or network stats via HTTP from off-chain code. No canister deployment or cycles needed.

Как установить скилл ic-dashboard?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ic-dashboard запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ic-dashboard с