jpskill.com
🛠️ 開発・MCP コミュニティ 🔴 エンジニア向け 👤 エンジニア・AI開発者

🛠️ Chainbase Openapi Skill

chainbase-openapi-skill

Chainbaseが整理したウォレットやトークンの情報を

⏱ MCPサーバー実装 1日 → 2時間

📺 まず動画で見る(YouTube)

▶ 【衝撃】最強のAIエージェント「Claude Code」の最新機能・使い方・プログラミングをAIで効率化する超実践術を解説! ↗

※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。

📜 元の英語説明(参考)

Operate Chainbase indexed wallet and token reads through UXC with a curated OpenAPI schema, API-key auth, and read-first guardrails.

🇯🇵 日本人クリエイター向け解説

一言でいうと

Chainbaseが整理したウォレットやトークンの情報を

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o chainbase-openapi-skill.zip https://jpskill.com/download/4534.zip && unzip -o chainbase-openapi-skill.zip && rm chainbase-openapi-skill.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/4534.zip -OutFile "$d\chainbase-openapi-skill.zip"; Expand-Archive "$d\chainbase-openapi-skill.zip" -DestinationPath $d -Force; ri "$d\chainbase-openapi-skill.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して chainbase-openapi-skill.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → chainbase-openapi-skill フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-17
取得日時
2026-05-18
同梱ファイル
4

💬 こう話しかけるだけ — サンプルプロンプト

  • Chainbase Openapi Skill を使って、最小構成のサンプルコードを示して
  • Chainbase Openapi Skill の主な使い方と注意点を教えて
  • Chainbase Openapi Skill を既存プロジェクトに組み込む方法を教えて

これをClaude Code に貼るだけで、このSkillが自動発動します。

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Chainbase Web3 API Skill

このスキルは、uxc + OpenAPI を介して Chainbase のインデックス付きデータ操作を実行するために使用します。

共有の実行、認証、エラー処理のガイダンスには、uxc スキルを再利用してください。

前提条件

  • uxc がインストールされており、PATH で利用可能です。
  • https://api.chainbase.online へのネットワークアクセス。
  • キュレーションされた OpenAPI スキーマ URL へのアクセス:
    • https://raw.githubusercontent.com/holon-run/uxc/main/skills/chainbase-openapi-skill/references/chainbase-web3.openapi.json
  • Chainbase API キー。

スコープ

このスキルは、読み取り優先のインデックス付きデータ表面をカバーします。

  • アカウントのネイティブ残高検索
  • アカウントのトークン残高
  • アカウントのトランザクション履歴
  • トークンメタデータ
  • トークンホルダーの読み取り
  • トークン価格検索
  • トランザクション詳細検索

このスキルは以下をカバーしません

  • 生のチェーン RPC メソッド
  • 書き込みまたはトランザクション送信フロー
  • 選択された Web3 API の読み取り以外の、より広範な Chainbase データ製品表面

認証

Chainbase は X-API-KEY ヘッダー認証を使用します。

1つの API キー認証情報を設定し、api.chainbase.online にバインドします。

uxc auth credential set chainbase \
  --auth-type api_key \
  --api-key-header X-API-KEY \
  --secret-env CHAINBASE_API_KEY

uxc auth binding add \
  --id chainbase \
  --host api.chainbase.online \
  --scheme https \
  --credential chainbase \
  --priority 100

認証が正しくないように見える場合は、アクティブなマッピングを検証してください。

uxc auth binding match https://api.chainbase.online

コアワークフロー

  1. デフォルトで固定リンクコマンドを使用します。

    • command -v chainbase-openapi-cli
    • 不足している場合は、作成します。 uxc link chainbase-openapi-cli https://api.chainbase.online --schema-url https://raw.githubusercontent.com/holon-run/uxc/main/skills/chainbase-openapi-skill/references/chainbase-web3.openapi.json
    • chainbase-openapi-cli -h
  2. まず操作スキーマを検査します。

    • chainbase-openapi-cli get:/v1/account/balance -h
    • chainbase-openapi-cli get:/v1/account/tokens -h
    • chainbase-openapi-cli get:/v1/token/metadata -h
  3. 広範な読み取りの前に、狭いアカウント検証を優先します。

    • chainbase-openapi-cli get:/v1/account/balance chain_id=1 address=0xd8da6bf26964af9d7eed9e03e53415d37aa96045
    • chainbase-openapi-cli get:/v1/token/price chain_id=1 contract_address=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
    • chainbase-openapi-cli get:/v1/tx/detail chain_id=1 tx_hash=0x4e3f3bc239f496f59c3e4d4a4d5f10f7f0d6d9f4cd790beeb520d05f6f7d98ae
  4. キー/値パラメータで実行します。

    • chainbase-openapi-cli get:/v1/account/tokens chain_id=1 address=0xd8da6bf26964af9d7eed9e03e53415d37aa96045 page=1 limit=20
    • chainbase-openapi-cli get:/v1/token/holders chain_id=1 contract_address=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 page=1 limit=20

操作グループ

アカウントの読み取り

  • get:/v1/account/balance
  • get:/v1/account/tokens
  • get:/v1/account/txs

トークンとトランザクションの読み取り

  • get:/v1/token/metadata
  • get:/v1/token/holders
  • get:/v1/token/price
  • get:/v1/tx/detail

ガードレール

  • 自動化は JSON 出力エンベロープに限定し、--text は使用しないでください。
  • まず安定したフィールドを解析します: ok, kind, protocol, data, error
  • この v1 スキルは読み取り専用として扱ってください。RPC 書き込みメソッド、mempool 送信、署名サポートを暗示しないでください。
  • Chainbase には複数の製品表面があります。このスキルは意図的に https://api.chainbase.online 上のインデックス付き HTTP 読み取りに限定されています。
  • 大規模なクロールを構築する前に、小さな pagelimit の値から始めてください。
  • chainbase-openapi-cli <operation> ...uxc https://api.chainbase.online --schema-url <chainbase_openapi_schema> <operation> ... と同等です。

参考文献

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Chainbase Web3 API Skill

Use this skill to run Chainbase indexed data operations through uxc + OpenAPI.

Reuse the uxc skill for shared execution, auth, and error-handling guidance.

Prerequisites

  • uxc is installed and available in PATH.
  • Network access to https://api.chainbase.online.
  • Access to the curated OpenAPI schema URL:
    • https://raw.githubusercontent.com/holon-run/uxc/main/skills/chainbase-openapi-skill/references/chainbase-web3.openapi.json
  • A Chainbase API key.

Scope

This skill covers a read-first indexed data surface:

  • account native balance lookup
  • account token balances
  • account transaction history
  • token metadata
  • token holder reads
  • token price lookup
  • transaction detail lookup

This skill does not cover:

  • raw chain RPC methods
  • write or transaction submission flows
  • the broader Chainbase data product surface beyond the selected Web3 API reads

Authentication

Chainbase uses X-API-KEY header auth.

Configure one API-key credential and bind it to api.chainbase.online:

uxc auth credential set chainbase \
  --auth-type api_key \
  --api-key-header X-API-KEY \
  --secret-env CHAINBASE_API_KEY

uxc auth binding add \
  --id chainbase \
  --host api.chainbase.online \
  --scheme https \
  --credential chainbase \
  --priority 100

Validate the active mapping when auth looks wrong:

uxc auth binding match https://api.chainbase.online

Core Workflow

  1. Use the fixed link command by default:

    • command -v chainbase-openapi-cli
    • If missing, create it: uxc link chainbase-openapi-cli https://api.chainbase.online --schema-url https://raw.githubusercontent.com/holon-run/uxc/main/skills/chainbase-openapi-skill/references/chainbase-web3.openapi.json
    • chainbase-openapi-cli -h
  2. Inspect operation schema first:

    • chainbase-openapi-cli get:/v1/account/balance -h
    • chainbase-openapi-cli get:/v1/account/tokens -h
    • chainbase-openapi-cli get:/v1/token/metadata -h
  3. Prefer narrow account validation before broader reads:

    • chainbase-openapi-cli get:/v1/account/balance chain_id=1 address=0xd8da6bf26964af9d7eed9e03e53415d37aa96045
    • chainbase-openapi-cli get:/v1/token/price chain_id=1 contract_address=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
    • chainbase-openapi-cli get:/v1/tx/detail chain_id=1 tx_hash=0x4e3f3bc239f496f59c3e4d4a4d5f10f7f0d6d9f4cd790beeb520d05f6f7d98ae
  4. Execute with key/value parameters:

    • chainbase-openapi-cli get:/v1/account/tokens chain_id=1 address=0xd8da6bf26964af9d7eed9e03e53415d37aa96045 page=1 limit=20
    • chainbase-openapi-cli get:/v1/token/holders chain_id=1 contract_address=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 page=1 limit=20

Operation Groups

Account Reads

  • get:/v1/account/balance
  • get:/v1/account/tokens
  • get:/v1/account/txs

Token And Transaction Reads

  • get:/v1/token/metadata
  • get:/v1/token/holders
  • get:/v1/token/price
  • get:/v1/tx/detail

Guardrails

  • Keep automation on the JSON output envelope; do not use --text.
  • Parse stable fields first: ok, kind, protocol, data, error.
  • Treat this v1 skill as read-only. Do not imply RPC write methods, mempool send, or signing support.
  • Chainbase has multiple product surfaces. This skill is intentionally limited to indexed HTTP reads on https://api.chainbase.online.
  • Start with small page and limit values before building large crawls.
  • chainbase-openapi-cli <operation> ... is equivalent to uxc https://api.chainbase.online --schema-url <chainbase_openapi_schema> <operation> ....

References

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。