[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6GPTQT7FHV6F7PY5CN5ASZX":3,"skill-same:01M6GPTQT7FHV6F7PY5CN5ASZX":92},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":55,"commitSha":56,"skillDirectory":57,"forksCount":58,"repositoryHtmlUrl":59,"repositoryHomepageUrl":6,"ownerHtmlUrl":60,"ownerBlogUrl":61,"ownerDescription":62,"updatedAt":63,"install":64,"resources":77},"01M6GPTQT7FHV6F7PY5CN5ASZX","ic-dashboard",null,"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.","jiayaoqijia\u002Fcryptoskill","jiayaoqijia","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1453879?v=4","01M6GMYTX7Q7S504VC6E756ENR","YQ","01M6GMYV1QKJ1CC75MTTGT9PR0",81,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fchains\u002Fdfinity-official-ic-dashboard\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fchains\u002Fdfinity-official-ic-dashboard\u002FSKILL.md",[],[20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"ic dashboard","dashboard","power","when","icrc ledger","sns","with","org","via","chain","icp","token","info","query","pagination","use","proposals","cursor","REST","data","network","integration","stats","metrics","code","deployment","http","2026-11-10 10:12:30",false,"---\nname: ic-dashboard\ndescription: \"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.\"\nlicense: Apache-2.0\nmetadata:\n  title: IC Dashboard APIs\n  category: Integration\n---\n\n# IC Dashboard APIs\n\n## What This Is\n\nThese 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.\n\n## Prerequisites\n\n- Any HTTP client: `curl`, `fetch`, `axios`, or the language’s native HTTP library.\n- No `icp-cli` or canister deployment needed for read-only API access.\n- For OpenAPI-based codegen: optional use of the `openapi.json` URLs with your preferred OpenAPI tooling.\n\n## API Base URLs and Docs\n\n| API | Base URL | OpenAPI spec | Swagger \u002F Docs | Prefer |\n|-----|----------|--------------|----------------|--------|\n| IC API | `https:\u002F\u002Fic-api.internetcomputer.org` | `\u002Fapi\u002Fv3\u002Fopenapi.json` | `\u002Fapi\u002Fv3\u002Fswagger` | v4 for canisters, subnets (cursor pagination) |\n| ICRC API | `https:\u002F\u002Ficrc-api.internetcomputer.org` | `\u002Fopenapi.json` | `\u002Fdocs` | v2 for ledgers (TestICP and other ICRC tokens; **not** mainnet ICP) |\n| SNS API | `https:\u002F\u002Fsns-api.internetcomputer.org` | `\u002Fopenapi.json` | `\u002Fdocs` | v2 for snses, proposals, neurons |\n| Ledger API (mainnet ICP) | `https:\u002F\u002Fledger-api.internetcomputer.org` | `\u002Fopenapi.json` | `\u002Fswagger-ui\u002F` | Use for **ICP token**; v2 for cursor pagination |\n| Metrics API | `https:\u002F\u002Fmetrics-api.internetcomputer.org` | `\u002Fapi\u002Fv1\u002Fopenapi.json` | `\u002Fapi\u002Fv1\u002Fdocs` | v1 (no newer version) |\n\nFull URLs for specs and UI:\n\n- IC API: https:\u002F\u002Fic-api.internetcomputer.org\u002Fapi\u002Fv3\u002Fopenapi.json — https:\u002F\u002Fic-api.internetcomputer.org\u002Fapi\u002Fv3\u002Fswagger\n- ICRC API: https:\u002F\u002Ficrc-api.internetcomputer.org\u002Fopenapi.json — https:\u002F\u002Ficrc-api.internetcomputer.org\u002Fdocs\n- SNS API: https:\u002F\u002Fsns-api.internetcomputer.org\u002Fopenapi.json — https:\u002F\u002Fsns-api.internetcomputer.org\u002Fdocs\n- Ledger API: https:\u002F\u002Fledger-api.internetcomputer.org\u002Fopenapi.json — https:\u002F\u002Fledger-api.internetcomputer.org\u002Fswagger-ui\u002F\n- Metrics API: https:\u002F\u002Fmetrics-api.internetcomputer.org\u002Fapi\u002Fv1\u002Fopenapi.json — https:\u002F\u002Fmetrics-api.internetcomputer.org\u002Fapi\u002Fv1\u002Fdocs\n\n## How It Works\n\n1. **Prefer v2+ APIs with cursor pagination.** IC API v4 (`\u002Fapi\u002Fv4\u002Fcanisters`, `\u002Fapi\u002Fv4\u002Fsubnets`), ICRC API v2 (`\u002Fapi\u002Fv2\u002Fledgers`, `\u002Fapi\u002Fv2\u002Fledgers\u002F{id}\u002Ftransactions`, etc.), and SNS API v2 (`\u002Fapi\u002Fv2\u002Fsnses`, `\u002Fapi\u002Fv2\u002Fsnses\u002F{id}\u002Fproposals`, `\u002Fapi\u002Fv2\u002Fsnses\u002F{id}\u002Fneurons`) use `after`, `before`, and `limit` for stable, efficient paging. Avoid v1\u002Foffset-based endpoints when a v2+ alternative exists.\n2. **Choose the right API** for the data you need: IC API (canisters, subnets, NNS neurons\u002Fproposals), **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.).\n3. **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.\n4. **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` \u002F `previous_cursor`, but **Ledger API returns `next_cursor` \u002F `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.\n\n## Mistakes That Break Your Build\n\n1. **Wrong base URL or API version.** IC API uses `\u002Fapi\u002Fv3\u002F` (and v4 for canisters\u002Fsubnets); ICRC has `\u002Fapi\u002Fv1\u002F` and `\u002Fapi\u002Fv2\u002F` (ICRC API does not serve mainnet ICP — use Ledger API). Ledger API uses unversioned paths for some endpoints (e.g. `\u002Faccounts`, `\u002Fsupply\u002Ftotal\u002Flatest`) and `\u002Fv2\u002F` for cursor-paginated lists. Metrics API uses `\u002Fapi\u002Fv1\u002F`. Using the wrong prefix returns 404 or wrong schema.\n\n2. **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.\n\n3. **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 TestICP.\n\n4. **ICRC API: ledger_canister_id in path.** ICRC endpoints require `ledger_canister_id` in the path (e.g. `\u002Fapi\u002Fv2\u002Fledgers\u002F{ledger_canister_id}\u002Ftransactions`). Use the canister ID of the ledger you want (e.g. ckBTC `mxzaz-hqaaa-aaaar-qaada-cai`). Do not use ICRC API for mainnet ICP — use Ledger API instead.\n\n5. **Using v1 or offset-based pagination when v2+ exists.** Always prefer v2 or higher endpoints that support cursor pagination (`after`, `before`, `limit`). IC API v4 (canisters, subnets), ICRC API v2 (ledgers, accounts, transactions), and SNS API v2 (snses, proposals, neurons) return `next_cursor`\u002F`previous_cursor` and accept cursor query params — Ledger API v2 also paginates by cursor but names the field `prev_cursor`. Older v1\u002Foffset\u002F`max_*_index` endpoints are legacy; using the wrong pagination model returns empty or incorrect pages.\n\n6. **Timestamps.** Most time-range query params (`start`, `end`) expect Unix seconds (integer). Sending milliseconds or ISO strings causes validation errors (422).\n\n7. **Account identifier format.** Ledger API and ICRC\u002FICP endpoints use **account identifiers** (hex hashes), not raw principals, for account-specific paths. Use the same encoding the API documents (e.g. 64-char hex for account_identifier where required).\n\n8. **Assuming authentication.** These public dashboard APIs do not require API keys or auth for the documented read endpoints. If you get 401\u002F403, confirm you are not hitting a different environment or a write endpoint that requires auth.\n\n## Implementation\n\n### IC API — Canisters and subnets (prefer v4 with cursor pagination)\n\n```bash\n# List canisters (v4: cursor pagination, next_cursor\u002Fprevious_cursor in response)\ncurl -s \"https:\u002F\u002Fic-api.internetcomputer.org\u002Fapi\u002Fv4\u002Fcanisters?limit=5\"\n\n# Next page: use after= from previous response's next_cursor (see OpenAPI for cursor format)\n# curl -s \"https:\u002F\u002Fic-api.internetcomputer.org\u002Fapi\u002Fv4\u002Fcanisters?limit=5&after=...\"\n\n# Get one canister by ID (v3; no v4 single-canister endpoint)\ncurl -s \"https:\u002F\u002Fic-api.internetcomputer.org\u002Fapi\u002Fv3\u002Fcanisters\u002Fryjl3-tyaaa-aaaaa-aaaba-cai\"\n\n# List subnets (v4: cursor pagination)\ncurl -s \"https:\u002F\u002Fic-api.internetcomputer.org\u002Fapi\u002Fv4\u002Fsubnets?limit=10\"\n\n# List NNS proposals (v3; use limit)\ncurl -s \"https:\u002F\u002Fic-api.internetcomputer.org\u002Fapi\u002Fv3\u002Fproposals?limit=5\"\n```\n\n### ICRC API — Other ICRC ledgers only (v2 with cursor pagination)\n\nICRC API exposes **TestICP and other ICRC ledgers (e.g. ckBTC, SNS tokens), not mainnet ICP.** For mainnet ICP use Ledger API.\n\n```bash\n# List ledgers (v2: after\u002Fbefore\u002Flimit, next_cursor\u002Fprevious_cursor in response)\ncurl -s \"https:\u002F\u002Ficrc-api.internetcomputer.org\u002Fapi\u002Fv2\u002Fledgers?limit=10\"\n\n# Get one ledger (e.g. ckBTC — mainnet ICP is not on ICRC API)\ncurl -s \"https:\u002F\u002Ficrc-api.internetcomputer.org\u002Fapi\u002Fv2\u002Fledgers\u002Fmxzaz-hqaaa-aaaar-qaada-cai\"\n\n# List transactions for a ledger (v2: cursor pagination)\ncurl -s \"https:\u002F\u002Ficrc-api.internetcomputer.org\u002Fapi\u002Fv2\u002Fledgers\u002Fmxzaz-hqaaa-aaaar-qaada-cai\u002Ftransactions?limit=5\"\n\n# List accounts for a ledger (v2: after\u002Fbefore\u002Flimit)\ncurl -s \"https:\u002F\u002Ficrc-api.internetcomputer.org\u002Fapi\u002Fv2\u002Fledgers\u002Fmxzaz-hqaaa-aaaar-qaada-cai\u002Faccounts?limit=10\"\n```\n\n### SNS API — SNS list and proposals (prefer v2 with cursor pagination)\n\n```bash\n# List SNSes (v2: after\u002Fbefore\u002Flimit, next_cursor\u002Fprevious_cursor)\ncurl -s \"https:\u002F\u002Fsns-api.internetcomputer.org\u002Fapi\u002Fv2\u002Fsnses?limit=10\"\n\n# List proposals for an SNS root canister (v2: cursor pagination)\n# Replace ROOT_CANISTER_ID with a real SNS root canister ID\ncurl -s \"https:\u002F\u002Fsns-api.internetcomputer.org\u002Fapi\u002Fv2\u002Fsnses\u002FROOT_CANISTER_ID\u002Fproposals?limit=5\"\n\n# List neurons for an SNS (v2: after\u002Fbefore\u002Flimit)\ncurl -s \"https:\u002F\u002Fsns-api.internetcomputer.org\u002Fapi\u002Fv2\u002Fsnses\u002FROOT_CANISTER_ID\u002Fneurons?limit=10\"\n```\n\n### Ledger API — Mainnet ICP token (prefer v2 for cursor pagination)\n\n```bash\n# List accounts (v2: after\u002Fbefore\u002Flimit). Note this API's own naming:\n# rows come back under `accounts` (not `data`), and the back-cursor is\n# `prev_cursor` (not `previous_cursor` as on the IC\u002FICRC\u002FSNS APIs).\ncurl -s \"https:\u002F\u002Fledger-api.internetcomputer.org\u002Fv2\u002Faccounts?limit=10\"\n\n# Get account by account_identifier (64-char hex)\ncurl -s \"https:\u002F\u002Fledger-api.internetcomputer.org\u002Faccounts\u002FACCOUNT_IDENTIFIER\"\n\n# List transactions (v2: cursor pagination)\ncurl -s \"https:\u002F\u002Fledger-api.internetcomputer.org\u002Fv2\u002Ftransactions?limit=10\"\n\n# Total supply (latest)\ncurl -s \"https:\u002F\u002Fledger-api.internetcomputer.org\u002Fsupply\u002Ftotal\u002Flatest\"\n```\n\n### Metrics API\n\n```bash\n# Average cycle burn rate\ncurl -s \"https:\u002F\u002Fmetrics-api.internetcomputer.org\u002Fapi\u002Fv1\u002Faverage-cycle-burn-rate\"\n\n# Governance metrics\ncurl -s \"https:\u002F\u002Fmetrics-api.internetcomputer.org\u002Fapi\u002Fv1\u002Fgovernance-metrics\"\n\n# ICP\u002FXDR conversion rates (with optional start\u002Fend\u002Fstep)\ncurl -s \"https:\u002F\u002Fmetrics-api.internetcomputer.org\u002Fapi\u002Fv1\u002Ficp-xdr-conversion-rates?start=1700000000&end=1700086400&step=86400\"\n```\n\n### Fetching OpenAPI spec (for codegen or validation)\n\n```bash\n# IC API v3\ncurl -s \"https:\u002F\u002Fic-api.internetcomputer.org\u002Fapi\u002Fv3\u002Fopenapi.json\" -o ic-api-v3.json\n\n# ICRC API\ncurl -s \"https:\u002F\u002Ficrc-api.internetcomputer.org\u002Fopenapi.json\" -o icrc-api.json\n\n# SNS API\ncurl -s \"https:\u002F\u002Fsns-api.internetcomputer.org\u002Fopenapi.json\" -o sns-api.json\n\n# Ledger API\ncurl -s \"https:\u002F\u002Fledger-api.internetcomputer.org\u002Fopenapi.json\" -o ledger-api.json\n\n# Metrics API v1\ncurl -s \"https:\u002F\u002Fmetrics-api.internetcomputer.org\u002Fapi\u002Fv1\u002Fopenapi.json\" -o metrics-api-v1.json\n```\n\n## Deploy & Test\n\nNo canister deployment is required. These are external HTTP APIs. Test from the shell or your app:\n\n```bash\n# Smoke test: IC API root\ncurl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\" \"https:\u002F\u002Fic-api.internetcomputer.org\u002Fapi\u002Fv3\u002F\"\n# Expected: 200\n\n# Smoke test: ICRC ledgers list\ncurl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\" \"https:\u002F\u002Ficrc-api.internetcomputer.org\u002Fapi\u002Fv2\u002Fledgers?limit=1\"\n# Expected: 200\n```\n\n## Verify It Works\n\n```bash\n# 1. IC API returns canister list with data array (v4 — the preferred list endpoint)\ncurl -s \"https:\u002F\u002Fic-api.internetcomputer.org\u002Fapi\u002Fv4\u002Fcanisters?limit=1\" | head -c 200\n# Expected: JSON with \"data\", \"next_cursor\" and \"previous_cursor\" keys, and one canister\n\n# 2. ICRC API returns ledger list\ncurl -s \"https:\u002F\u002Ficrc-api.internetcomputer.org\u002Fapi\u002Fv2\u002Fledgers?limit=1\" | head -c 200\n# Expected: JSON with \"data\" and ledger entries\n\n# 3. Ledger API returns supply (array of [timestamp, value])\ncurl -s \"https:\u002F\u002Fledger-api.internetcomputer.org\u002Fsupply\u002Ftotal\u002Flatest\"\n# Expected: JSON array with two elements (timestamp and supply string)\n\n# 4. OpenAPI specs are valid JSON\ncurl -s \"https:\u002F\u002Fic-api.internetcomputer.org\u002Fapi\u002Fv3\u002Fopenapi.json\" | python3 -c \"import sys,json; json.load(sys.stdin); print('OK')\"\n# Expected: OK\n```\n","# IC Dashboard APIs\n\n## What This Is\n\nThese 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.\n\n## Prerequisites\n\n- Any HTTP client: `curl`, `fetch`, `axios`, or the language’s native HTTP library.\n- No `icp-cli` or canister deployment needed for read-only API access.\n- For OpenAPI-based codegen: optional use of the `openapi.json` URLs with your preferred OpenAPI tooling.\n\n## API Base URLs and Docs\n\n| API | Base URL | OpenAPI spec | Swagger \u002F Docs | Prefer |\n|-----|----------|--------------|----------------|--------|\n| IC API | `https:\u002F\u002Fic-api.internetcomputer.org` | `\u002Fapi\u002Fv3\u002Fopenapi.json` | `\u002Fapi\u002Fv3\u002Fswagger` | v4 for canisters, subnets (cursor pagination) |\n| ICRC API | `https:\u002F\u002Ficrc-api.internetcomputer.org` | `\u002Fopenapi.json` | `\u002Fdocs` | v2 for ledgers (TestICP and other ICRC tokens; **not** mainnet ICP) |\n| SNS API | `https:\u002F\u002Fsns-api.internetcomputer.org` | `\u002Fopenapi.json` | `\u002Fdocs` | v2 for snses, proposals, neurons |\n| Ledger API (mainnet ICP) | `https:\u002F\u002Fledger-api.internetcomputer.org` | `\u002Fopenapi.json` | `\u002Fswagger-ui\u002F` | Use for **ICP token**; v2 for cursor pagination |\n| Metrics API | `https:\u002F\u002Fmetrics-api.internetcomputer.org` | `\u002Fapi\u002Fv1\u002Fopenapi.json` | `\u002Fapi\u002Fv1\u002Fdocs` | v1 (no newer version) |\n\nFull URLs for specs and UI:\n\n- IC API: https:\u002F\u002Fic-api.internetcomputer.org\u002Fapi\u002Fv3\u002Fopenapi.json — https:\u002F\u002Fic-api.internetcomputer.org\u002Fapi\u002Fv3\u002Fswagger\n- ICRC API: https:\u002F\u002Ficrc-api.internetcomputer.org\u002Fopenapi.json — https:\u002F\u002Ficrc-api.internetcomputer.org\u002Fdocs\n- SNS API: https:\u002F\u002Fsns-api.internetcomputer.org\u002Fopenapi.json — https:\u002F\u002Fsns-api.internetcomputer.org\u002Fdocs\n- Ledger API: https:\u002F\u002Fledger-api.internetcomputer.org\u002Fopenapi.json — https:\u002F\u002Fledger-api.internetcomputer.org\u002Fswagger-ui\u002F\n- Metrics API: https:\u002F\u002Fmetrics-api.internetcomputer.org\u002Fapi\u002Fv1\u002Fopenapi.json — https:\u002F\u002Fmetrics-api.internetcomputer.org\u002Fapi\u002Fv1\u002Fdocs\n\n## How It Works\n\n1. **Prefer v2+ APIs with cursor pagination.** IC API v4 (`\u002Fapi\u002Fv4\u002Fcanisters`, `\u002Fapi\u002Fv4\u002Fsubnets`), ICRC API v2 (`\u002Fapi\u002Fv2\u002Fledgers`, `\u002Fapi\u002Fv2\u002Fledgers\u002F{id}\u002Ftransactions`, etc.), and SNS API v2 (`\u002Fapi\u002Fv2\u002Fsnses`, `\u002Fapi\u002Fv2\u002Fsnses\u002F{id}\u002Fproposals`, `\u002Fapi\u002Fv2\u002Fsnses\u002F{id}\u002Fneurons`) use `after`, `before`, and `limit` for stable, efficient paging. Avoid v1\u002Foffset-based endpoints when a v2+ alternative exists.\n2. **Choose the right API** for the data you need: IC API (canisters, subnets, NNS neurons\u002Fproposals), **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.).\n3. **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.\n4. **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` \u002F `previous_cursor`, but **Ledger API returns `next_cursor` \u002F `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.\n\n## Mistakes That Break Your Build\n\n1. **Wrong base URL or API version.** IC API uses `\u002Fapi\u002Fv3\u002F` (and v4 for canisters\u002Fsubnets); ICRC has `\u002Fapi\u002Fv1\u002F` and `\u002Fapi\u002Fv2\u002F` (ICRC API does not serve mainnet ICP — use Ledger API). Ledger API uses unversioned paths for some endpoints (e.g. `\u002Faccounts`, `\u002Fsupply\u002Ftotal\u002Flatest`) and `\u002Fv2\u002F` for cursor-paginated lists. Metrics API uses `\u002Fapi\u002Fv1\u002F`. Using the wrong prefix returns 404 or wrong schema.\n\n2. **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.\n\n3. **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 TestICP.\n\n4. **ICRC API: ledger_canister_id in path.** ICRC endpoints require `ledger_canister_id` in the path (e.g. `\u002Fapi\u002Fv2\u002Fledgers\u002F{ledger_canister_id}\u002Ftransactions`). Use the canister ID of the ledger you want (e.g. ckBTC `mxzaz-hqaaa-aaaar-qaada-cai`). Do not use ICRC API for mainnet ICP — use Ledger API instead.\n\n5. **Using v1 or offset-based pagination when v2+ exists.** Always prefer v2 or higher endpoints that support cursor pagination (`after`, `before`, `limit`). IC API v4 (canisters, subnets), ICRC API v2 (ledgers, accounts, transactions), and SNS API v2 (snses, proposals, neurons) return `next_cursor`\u002F`previous_cursor` and accept cursor query params — Ledger API v2 also paginates by cursor but names the field `prev_cursor`. Older v1\u002Foffset\u002F`max_*_index` endpoints are legacy; using the wrong pagination model returns empty or incorrect pages.\n\n6. **Timestamps.** Most time-range query params (`start`, `end`) expect Unix seconds (integer). Sending milliseconds or ISO strings causes validation errors (422).\n\n7. **Account identifier format.** Ledger API and ICRC\u002FICP endpoints use **account identifiers** (hex hashes), not raw principals, for account-specific paths. Use the same encoding the API documents (e.g. 64-char hex for account_identifier where required).\n\n8. **Assuming authentication.** These public dashboard APIs do not require API keys or auth for the documented read endpoints. If you get 401\u002F403, confirm you are not hitting a different environment or a write endpoint that requires auth.\n\n## Implementation\n\n### IC API — Canisters and subnets (prefer v4 with cursor pagination)\n\n```bash\n# List canisters (v4: cursor pagination, next_cursor\u002Fprevious_cursor in response)\ncurl -s \"https:\u002F\u002Fic-api.internetcomputer.org\u002Fapi\u002Fv4\u002Fcanisters?limit=5\"\n\n# Next page: use after= from previous response's next_cursor (see OpenAPI for cursor format)\n# curl -s \"https:\u002F\u002Fic-api.internetcomputer.org\u002Fapi\u002Fv4\u002Fcanisters?limit=5&after=...\"\n\n# Get one canister by ID (v3; no v4 single-canister endpoint)\ncurl -s \"https:\u002F\u002Fic-api.internetcomputer.org\u002Fapi\u002Fv3\u002Fcanisters\u002Fryjl3-tyaaa-aaaaa-aaaba-cai\"\n\n# List subnets (v4: cursor pagination)\ncurl -s \"https:\u002F\u002Fic-api.internetcomputer.org\u002Fapi\u002Fv4\u002Fsubnets?limit=10\"\n\n# List NNS proposals (v3; use limit)\ncurl -s \"https:\u002F\u002Fic-api.internetcomputer.org\u002Fapi\u002Fv3\u002Fproposals?limit=5\"\n```\n\n### ICRC API — Other ICRC ledgers only (v2 with cursor pagination)\n\nICRC API exposes **TestICP and other ICRC ledgers (e.g. ckBTC, SNS tokens), not mainnet ICP.** For mainnet ICP use Ledger API.\n\n```bash\n# List ledgers (v2: after\u002Fbefore\u002Flimit, next_cursor\u002Fprevious_cursor in response)\ncurl -s \"https:\u002F\u002Ficrc-api.internetcomputer.org\u002Fapi\u002Fv2\u002Fledgers?limit=10\"\n\n# Get one ledger (e.g. ckBTC — mainnet ICP is not on ICRC API)\ncurl -s \"https:\u002F\u002Ficrc-api.internetcomputer.org\u002Fapi\u002Fv2\u002Fledgers\u002Fmxzaz-hqaaa-aaaar-qaada-cai\"\n\n# List transactions for a ledger (v2: cursor pagination)\ncurl -s \"https:\u002F\u002Ficrc-api.internetcomputer.org\u002Fapi\u002Fv2\u002Fledgers\u002Fmxzaz-hqaaa-aaaar-qaada-cai\u002Ftransactions?limit=5\"\n\n# List accounts for a ledger (v2: after\u002Fbefore\u002Flimit)\ncurl -s \"https:\u002F\u002Ficrc-api.internetcomputer.org\u002Fapi\u002Fv2\u002Fledgers\u002Fmxzaz-hqaaa-aaaar-qaada-cai\u002Faccounts?limit=10\"\n```\n\n### SNS API — SNS list and proposals (prefer v2 with cursor pagination)\n\n```bash\n# List SNSes (v2: after\u002Fbefore\u002Flimit, next_cursor\u002Fprevious_cursor)\ncurl -s \"https:\u002F\u002Fsns-api.internetcomputer.org\u002Fapi\u002Fv2\u002Fsnses?limit=10\"\n\n# List proposals for an SNS root canister (v2: cursor pagination)\n# Replace ROOT_CANISTER_ID with a real SNS root canister ID\ncurl -s \"https:\u002F\u002Fsns-api.internetcomputer.org\u002Fapi\u002Fv2\u002Fsnses\u002FROOT_CANISTER_ID\u002Fproposals?limit=5\"\n\n# List neurons for an SNS (v2: after\u002Fbefore\u002Flimit)\ncurl -s \"https:\u002F\u002Fsns-api.internetcomputer.org\u002Fapi\u002Fv2\u002Fsnses\u002FROOT_CANISTER_ID\u002Fneurons?limit=10\"\n```\n\n### Ledger API — Mainnet ICP token (prefer v2 for cursor pagination)\n\n```bash\n# List accounts (v2: after\u002Fbefore\u002Flimit). Note this API's own naming:\n# rows come back under `accounts` (not `data`), and the back-cursor is\n# `prev_cursor` (not `previous_cursor` as on the IC\u002FICRC\u002FSNS APIs).\ncurl -s \"https:\u002F\u002Fledger-api.internetcomputer.org\u002Fv2\u002Faccounts?limit=10\"\n\n# Get account by account_identifier (64-char hex)\ncurl -s \"https:\u002F\u002Fledger-api.internetcomputer.org\u002Faccounts\u002FACCOUNT_IDENTIFIER\"\n\n# List transactions (v2: cursor pagination)\ncurl -s \"https:\u002F\u002Fledger-api.internetcomputer.org\u002Fv2\u002Ftransactions?limit=10\"\n\n# Total supply (latest)\ncurl -s \"https:\u002F\u002Fledger-api.internetcomputer.org\u002Fsupply\u002Ftotal\u002Flatest\"\n```\n\n### Metrics API\n\n```bash\n# Average cycle burn rate\ncurl -s \"https:\u002F\u002Fmetrics-api.internetcomputer.org\u002Fapi\u002Fv1\u002Faverage-cycle-burn-rate\"\n\n# Governance metrics\ncurl -s \"https:\u002F\u002Fmetrics-api.internetcomputer.org\u002Fapi\u002Fv1\u002Fgovernance-metrics\"\n\n# ICP\u002FXDR conversion rates (with optional start\u002Fend\u002Fstep)\ncurl -s \"https:\u002F\u002Fmetrics-api.internetcomputer.org\u002Fapi\u002Fv1\u002Ficp-xdr-conversion-rates?start=1700000000&end=1700086400&step=86400\"\n```\n\n### Fetching OpenAPI spec (for codegen or validation)\n\n```bash\n# IC API v3\ncurl -s \"https:\u002F\u002Fic-api.internetcomputer.org\u002Fapi\u002Fv3\u002Fopenapi.json\" -o ic-api-v3.json\n\n# ICRC API\ncurl -s \"https:\u002F\u002Ficrc-api.internetcomputer.org\u002Fopenapi.json\" -o icrc-api.json\n\n# SNS API\ncurl -s \"https:\u002F\u002Fsns-api.internetcomputer.org\u002Fopenapi.json\" -o sns-api.json\n\n# Ledger API\ncurl -s \"https:\u002F\u002Fledger-api.internetcomputer.org\u002Fopenapi.json\" -o ledger-api.json\n\n# Metrics API v1\ncurl -s \"https:\u002F\u002Fmetrics-api.internetcomputer.org\u002Fapi\u002Fv1\u002Fopenapi.json\" -o metrics-api-v1.json\n```\n\n## Deploy & Test\n\nNo canister deployment is required. These are external HTTP APIs. Test from the shell or your app:\n\n```bash\n# Smoke test: IC API root\ncurl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\" \"https:\u002F\u002Fic-api.internetcomputer.org\u002Fapi\u002Fv3\u002F\"\n# Expected: 200\n\n# Smoke test: ICRC ledgers list\ncurl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\" \"https:\u002F\u002Ficrc-api.internetcomputer.org\u002Fapi\u002Fv2\u002Fledgers?limit=1\"\n# Expected: 200\n```\n\n## Verify It Works\n\n```bash\n# 1. IC API returns canister list with data array (v4 — the preferred list endpoint)\ncurl -s \"https:\u002F\u002Fic-api.internetcomputer.org\u002Fapi\u002Fv4\u002Fcanisters?limit=1\" | head -c 200\n# Expected: JSON with \"data\", \"next_cursor\" and \"previous_cursor\" keys, and one canister\n\n# 2. ICRC API returns ledger list\ncurl -s \"https:\u002F\u002Ficrc-api.internetcomputer.org\u002Fapi\u002Fv2\u002Fledgers?limit=1\" | head -c 200\n# Expected: JSON with \"data\" and ledger entries\n\n# 3. Ledger API returns supply (array of [timestamp, value])\ncurl -s \"https:\u002F\u002Fledger-api.internetcomputer.org\u002Fsupply\u002Ftotal\u002Flatest\"\n# Expected: JSON array with two elements (timestamp and supply string)\n\n# 4. OpenAPI specs are valid JSON\ncurl -s \"https:\u002F\u002Fic-api.internetcomputer.org\u002Fapi\u002Fv3\u002Fopenapi.json\" | python3 -c \"import sys,json; json.load(sys.stdin); print('OK')\"\n# Expected: OK\n```\n",{"name":5,"license":15,"metadata":52,"description":7},{"title":53,"category":54},"IC Dashboard APIs","Integration","main","3df1d0d67b30ff15236561f8c0f9f06d33f42dfd","skills\u002Fchains\u002Fdfinity-official-ic-dashboard",17,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia","https:\u002F\u002Feth2030.com","Hardcore infra. Building @alt-research and applied cryptography.","2026-11-15 02:28:10",{"source":8,"skillName":5,"commands":65,"prompt":75,"zipAvailable":76},[66,69,72],{"tool":67,"command":68},"npx","npx skills add jiayaoqijia\u002Fcryptoskill --skill ic-dashboard",{"tool":70,"command":71},"bunx","bunx skills add jiayaoqijia\u002Fcryptoskill --skill ic-dashboard",{"tool":73,"command":74},"pnpm","pnpm dlx skills add jiayaoqijia\u002Fcryptoskill --skill ic-dashboard","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fchains\u002Fdfinity-official-ic-dashboard\u002FSKILL.md",true,[78,82,88],{"path":79,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":16},"LICENSE","许可证",10770,{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":86,"sourceHtmlUrl":87},"SOURCE.md","REFERENCE","参考文档",330,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fchains\u002Fdfinity-official-ic-dashboard\u002FSOURCE.md",{"path":89,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":90,"sourceHtmlUrl":91},"TRUST.auto.yaml",2197,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fchains\u002Fdfinity-official-ic-dashboard\u002FTRUST.auto.yaml",[93,103,111,119,127,135],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":97,"licenseFileUrl":98,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":102},"01M7DTKCERMV0RNX3HZJP4CZ26","troves","Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say \"Troves\" explicitly.","MIT","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-troves\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-troves\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":97,"licenseFileUrl":107,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":102},"01M7DTK6CJSMGC8KCQHGNYFZBD","trade","Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say \"swap\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-trade\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-trade\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":97,"licenseFileUrl":115,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":102},"01M7DTJZ6A0X4PAW3Y8W4J9K64","staking","Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say \"stake\" explicitly.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-staking\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-staking\u002FSKILL.md",[],[],{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":97,"licenseFileUrl":123,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":102},"01M7DTJSDZJKCDMW7GHRF4BRH5","send","Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say \"pay 10 STRK to 0x...\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-send\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-send\u002FSKILL.md",[],[],{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":97,"licenseFileUrl":131,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":102},"01M7DTJG1E480D51ZQ7WKDQ26K","portfolio","View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks \"what do I have\", \"show me everything\", \"how much am I worth\", \"my positions\", \"my investments\", \"rebalance my portfolio\", \"I want 50% ETH\", \"optimize my holdings\", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say \"portfolio\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-portfolio\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-portfolio\u002FSKILL.md",[],[],{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":97,"licenseFileUrl":139,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":102},"01M7DTJ7M8TE9R2N36HFBZDGVD","multi-swap","Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions \"two swaps\", \"three swaps\", \"swap X and Y at the same time\", or wants to convert multiple tokens in a single call.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-multi-swap\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-multi-swap\u002FSKILL.md",[],[]]