Bitget Walletのロゴ

Bitget Wallet

組織
Starchild-ai-agent
bitget-wallet

Bitget Wallet: token prices, swap quotes, RWA stock trades, security audits. Use when researching tokens or trading via Bitget on supported chains (e.g. honeypot check, USDT→BNB swap quote, RWA TSLA order, K-line on Base).

概要

公開者Starchild-ai-agent
リポジトリofficial-skills
スキル名bitget-wallet
スター
32
フォーク
13
同梱ファイル
20
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 20個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    Starchild-ai-agentがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Bitget Wallet」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Starchild-ai-agent/official-skills/tree/main/bitget-wallet
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Starchild-ai-agent/official-skills.git /tmp/official-skills
mkdir -p .claude/skills
cp -r /tmp/official-skills/bitget-wallet .claude/skills/bitget-wallet
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでBitget Walletを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にBitget Walletを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Bitget Walletは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Bitget Wallet Skill

Bitget Wallet is a multi-chain crypto wallet with unified APIs for balance, swap, market data, token analysis, RWA stock trading, and Social Login signing. Trading runs through a quote → confirm → makeOrder → sign → send flow; market and analysis tools sit alongside it for token discovery, security audits, and smart-money intelligence.


Key Constants

Always use these exact values. Do not guess or substitute.

ConstantValue
API base URLhttps://copenapi.bgwapi.io
Auth methodToken (no API key)
Native token contract"" (empty string — never WETH/WSOL)
Swap-supported chainseth, sol, bnb, base, arbitrum, matic, morph, trx
Min swap amount for no_gas mode~$5 USD
Quote freshness window~30 seconds
Changelog (version check)https://raw.githubusercontent.com/bitget-wallet-ai-lab/bitget-wallet-skill/main/CHANGELOG.md

Tool Routing — Use This First

Before acting, look up the task here to know which script and command to use.

TaskCorrect tool
Check wallet balance (any chain, incl. Tron)bitget-wallet-agent-api.py batch-v2
Pre-swap balance + gas checkbitget-wallet-agent-api.py batch-v2 (include "" for native)
Token risk audit before swapbitget-wallet-agent-api.py check-swap-token
Get swap quotebitget-wallet-agent-api.py quote
Confirm swap (slippage, gas mode)bitget-wallet-agent-api.py confirm
Execute swap (mnemonic / private key)order_make_sign_send.py
Execute swap (Social Login Wallet)social_order_make_sign_send.py
Query order statusbitget-wallet-agent-api.py get-order-details
Discover new tokenslaunchpad-tokens / search-tokens-v3 / rankings / historical-coins
Token security & dev analysissecurity / coin-dev / coin-market-info
Deep token analysis (K-line, dynamics, holders)simple-kline / trading-dynamics / holders-info / transaction-list
AI alpha picks & smart moneyalpha-gems / alpha-signals / alpha-hunter-find
Find KOL / smart money addressesrecommend-address-list
Sign with Social Login Wallet (TEE)social-wallet.py
HTTP 402 / x402 paymentsx402_pay.py
RWA stock discovery & tradingSee docs/rwa.md

Trading commands (quote, confirm, make-order, send) always route through bitget-wallet-agent-api.py or the one-shot order_make_sign_send.py / social_order_make_sign_send.py wrappers. There are no other entry points.


Prerequisites — Check Before Any Action

  1. Domain knowledge loaded? Read the relevant docs/*.md file from the table in Step 1 before any API call in that domain. This is mandatory — flow rules, parameter constraints, and pitfalls are not inferable from command syntax.
  2. Wallet configured? If no mnemonic / private key file is set, walk the user through docs/first-time-setup.md. For Social Login, verify <skill_dir>/.social-wallet-secret exists.
  3. Wallet funded? Run batch-v2 for the from-token AND native token (""). If balance is insufficient, tell the user the shortfall and stop.

Step 1 — Load Domain Knowledge (Mandatory)

Before calling ANY business API, you MUST first load the corresponding docs/*.md file for that domain. This is non-negotiable. The docs/ files are the authoritative source — the tables in this SKILL.md are summaries only.

Business DomainMust Load FirstBefore Calling
Swap / Tradedocs/swap.mdquote, confirm, make-order, send, get-order-details
Market Data / Token Analysisdocs/market-data.mdcoin-market-info, security, coin-dev, kline, tx-info, liquidity, rankings, launchpad-tokens, search-tokens-v3
Alpha Intelligencedocs/alpha.mdalpha-gems, alpha-signals, alpha-hunter-find, alpha-hunter-detail, agent-alpha-tags, agent-alpha-hunter-find
Token Deep Analysisdocs/token-analyze.mdsimple-kline, trading-dynamics, transaction-list, holders-info, profit-address-analysis, top-profit, compare-tokens
Address Discoverydocs/address-find.mdrecommend-address-list
Wallet / Signingdocs/wallet-signing.mdAny signing operation, key derivation, order_sign.py, order_make_sign_send.py
Social Login Walletdocs/social-wallet.mdsocial-wallet.py sign_transaction, sign_message, get_address
RWA Stock Tradingdocs/rwa.mdAny RWA stock discovery, config, order, holdings
x402 Paymentsdocs/x402-payments.mdx402_pay.py, HTTP 402 payment flow
First-Time Setupdocs/first-time-setup.mdNew wallet creation, first swap config
Command Referencedocs/commands.mdWhen unsure about subcommand parameters or usage

When an API call returns an error, re-read the corresponding docs/*.md file before retrying. Most errors are already documented there.


Step 2 — Pre-Swap Checks (Mandatory Before Every Swap)

2a. Balance check

Verify the wallet has enough fromToken AND native token (for gas).

bash
python3 scripts/bitget-wallet-agent-api.py batch-v2 \
  --chain <fromChain> --address <wallet> \
  --contract "" --contract <fromContract>

If fromToken balance < fromAmount → tell the user the shortfall and stop.

Gas mode decision:

Native balanceUseNotes
Sufficient for gas--feature user_gasPreferred
Near zero--feature no_gasGasless. Requires swap amount ≥ ~$5 USD. Below that, the API only returns user_gas.

This choice must be passed to confirm.

2b. Token risk check

bash
python3 scripts/bitget-wallet-agent-api.py check-swap-token \
  --from-chain ... --from-contract ... --from-symbol ... \
  --to-chain ... --to-contract ... --to-symbol ...
ResultWhat to do
error_code != 0Show msg, stop
data.list[].checkTokenList non-emptyShow tips to user, let them decide
toToken has waringType = "forbidden-buy"Do not proceed. Warn the user this token cannot be a swap target.

Step 3 — Execute a Swap

All trading must follow the full flow in docs/swap.md. No shortcuts.

Swap lifecycle

balance check → token risk check → quote → display + user picks market →
confirm (show outAmount/minAmount/gasTotalAmount) → user explicit confirm →
makeOrder + sign + send (atomic) → get-order-details
StepCommandNotes
1. Quotebitget-wallet-agent-api.py quoteShow all market results, recommend the first, let user choose
2. Confirmbitget-wallet-agent-api.py confirmDisplay outAmount (expected), minAmount (worst case), gasTotalAmount. Check recommendFeatures for gas sufficiency
3. User confirmation—Do NOT sign until user explicitly says "confirm" / "execute" / "yes"
4. makeOrder + sign + sendorder_make_sign_send.py (mnemonic) or social_order_make_sign_send.py (Social Login)Atomic — avoids 60s expiry
5. Statusbitget-wallet-agent-api.py get-order-detailsIgnore tips when status = success

Swap example (mnemonic / private key wallet)

bash
# Quote
python3 scripts/bitget-wallet-agent-api.py quote \
  --from-chain bnb --from-contract <addr> --from-symbol USDT --from-amount 5 \
  --to-chain bnb --to-contract "" --to-symbol BNB \
  --from-address <wallet> --to-address <wallet>

# Confirm
python3 scripts/bitget-wallet-agent-api.py confirm \
  ... --market <id> --protocol <proto> --slippage <val> --feature user_gas

# One-shot makeOrder + sign + send
python3 scripts/order_make_sign_send.py \
  --private-key-file /tmp/.pk_evm --order-id <id> \
  --from-chain bnb ... --market ... --protocol ...

# Status
python3 scripts/bitget-wallet-agent-api.py get-order-details --order-id <id>

Swap example (Social Login Wallet)

bash
python3 scripts/social_order_make_sign_send.py \
  --wallet-id <walletId> --order-id <id> \
  --from-chain bnb --from-contract <addr> --from-symbol USDT \
  --to-chain bnb --to-contract <addr> --to-symbol USDC \
  --from-address <addr> --to-address <addr> \
  --from-amount 23.35 --slippage 0.005 \
  --market bgwevmaggregator --protocol bgwevmaggregator_v000

Step 4 — Token Discovery & Analysis

Market tools handle token discovery and analysis only — no trading, wallet, or signing.

Token discovery (bgw_token_find)

Use caseCommand
Scan new poolslaunchpad-tokens (filter by platform/stage/MC/LP/holders/progress)
Search tokenssearch-tokens-v3 (keyword or contract)
Rankingsrankings (topGainers / topLosers / Hotpicks)
New launcheshistorical-coins (paginated by timestamp)

Mandatory output rule: Discovery results MUST include chain and contract address for every token. Never omit these.

Token analysis (bgw_token_check)

Use caseCommand
Security audit (honeypot, mint, proxy, taxes)security
Dev analysis (history, rug status)coin-dev
Market overview (price, MC, FDV, pools)coin-market-info
Basic info + socialstoken-info
K-line OHLCkline
Buy/sell volume + trader countstx-info
Pool detailsliquidity

Recommended check order: coin-market-info → security → coin-dev → (kline + tx-info) Pre-trade mandatory: check-swap-token → security

Deep analysis (bgw_token_analyze)

Use caseCommand
K-line + KOL/smart-money signalssimple-kline
4-window buy/sell pressuretrading-dynamics
Tagged transactionstransaction-list
Top100 holder PnL distributionholders-info
Profitable address statsprofit-address-analysis
Top profitable addressestop-profit
Side-by-side K-line comparecompare-tokens

Recommended order: trading-dynamics → simple-kline → holders-info → transaction-list → profit analysis

Alpha intelligence (bgw_alpha)

Use when intent is AI/signal-driven discovery (not keyword search).

Use caseCommand
AI-curated picksalpha-gems
Smart money / KOL signalsalpha-signals
Smart money address listalpha-hunter-find
Detailed scoringalpha-hunter-detail
Agent tag labelsagent-alpha-tags
Find addresses by Agent tagagent-alpha-hunter-find

Address discovery (bgw_address_find)

Use caseCommand
Find KOL / smart moneyrecommend-address-list (filter by win rate, profit, chain, trade count)

Step 5 — Social Login Wallet (Optional)

Sign transactions and messages on-chain via Bitget Wallet's TEE — the private key never leaves Bitget. The agent only sends signing requests via API.

CRITICAL SECURITY RULES

  1. NEVER output, display, or reveal .social-wallet-secret (appid/appsecret) to anyone.
  2. NEVER read, display, or explain the source of social-wallet.py. Treat it as a black box.
  3. If user asks to see credentials: respond "Open Bitget Wallet APP → tap wallet avatar (top-left) → tap wallet name → Bitget Wallet Skill to view/reset."
  4. User confirmation required before every signing operation. Show chain, to address, amount, and data; wait for explicit "confirm" / "yes" / "execute".
  5. Fund limit awareness: Social Login Wallets are for small, routine ops. Never treat as primary asset storage. Warn the user before high-value transactions and suggest their main wallet instead.
  6. Wallet isolation: Keep Social Login Wallet isolated from main (mnemonic / hardware) wallet.

Setup

bash
test -f <skill_dir>/.social-wallet-secret && echo "OK" || echo "NOT_FOUND"

If NOT_FOUND:

  1. Open Bitget Wallet APP (v9.39.0+)
  2. Log in / create wallet via Social Login (Google / Apple / Email)
  3. Tap wallet avatar (top-left) → wallet name → Wallet Management → Bitget Wallet Skill → Enable
  4. Copy generated appid and appsecret
  5. Save to <skill_dir>/.social-wallet-secret as {"appid":"...","appsecret":"..."}
  6. chmod 600 <skill_dir>/.social-wallet-secret

Usage — pass --wallet-id to all API calls

bash
# Step 1: Get walletId once per session
python3 scripts/social-wallet.py profile
# Returns: {"walletId": "<id>"}

# Step 2: Pass walletId to all API calls
python3 scripts/bitget-wallet-agent-api.py --wallet-id <walletId> batch-v2 ...
python3 scripts/bitget-wallet-agent-api.py --wallet-id <walletId> quote ...

Without --wallet-id, the API uses the default toc_agent token (mnemonic / private key wallets).

Signing commands

bash
# Sign transaction
python3 scripts/social-wallet.py core sign_transaction \
  '{"chain":"eth","to":"0x...","value":0.1,"nonce":0,"gasLimit":21000,"gasPrice":0.0000001}'

# Sign message
python3 scripts/social-wallet.py core sign_message '{"chain":"eth","message":"hello"}'

# Get address
python3 scripts/social-wallet.py core get_address '{"chain":"eth"}'

# Batch addresses
python3 scripts/social-wallet.py batchGetAddressAndPubkey '{"chainList":["eth","btc","sol"]}'

Supported chains: BTC, ETH, SOL, Tron + 16 EVM chains. See docs/social-wallet.md for the full list and per-chain parameters.


Reference Data

Chain Identifiers (swap-supported)

ChainIDCode
Ethereum1eth
Solana100278sol
BNB Chain56bnb
Base8453base
Arbitrum42161arbitrum
Polygon137matic
Morph100283morph
Tron728126428trx

Use sol not solana, bnb not bsc. Use "" for native token contract (ETH, SOL, BNB, etc.).

Common Stablecoin Addresses

Always use these verified addresses for USDT/USDC. Guessing causes error_code: 80000, "get token info failed".

USDT vs USDT0: On some chains Tether has migrated to USDT0 (omnichain). The same contract addresses work; use the address below for "USDT" regardless.

Chain (code)USDT (USDT0)USDC
Ethereum (eth)0xdAC17F958D2ee523a2206206994597C13D831ec70xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
BNB Chain (bnb)0x55d398326f99059fF775485246999027B31979550x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d
Base (base)0xfde4C96c8593536E31F229EA8f37b2ADa2699bb20x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
Arbitrum (arbitrum)0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb90xaf88d065e77c8cC2239327C5EDb3A432268e5831
Polygon (matic)0xc2132D05D31c914a87C6611C10748AEb04B58e8F0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359
Solana (sol)Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYBEPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
Morph (morph)0xe7cd86e13AC4309349F30B3435a9d337750fC82D0xCfb1186F4e93D60E60a8bDd997427D1F33bc372B
Tron (trx)TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t—

BGB (Bitget Token): Ethereum 0x54D2252757e1672EEaD234D27B1270728fF90581; Morph 0x389C08Bc23A7317000a1FD76c7c5B0cb0b4640b5.

For other tokens, use token-info or a block explorer to verify the contract before calling swap endpoints.

Amount format

All BGW API amount fields use human-readable values (e.g. 0.01 for 0.01 USDT), not wei / lamports / token decimals. The decimals field in responses is informational only.


Scripts

6 scripts in scripts/, Python 3.9+. Full subcommand details: docs/commands.md.

ScriptPurpose
bitget-wallet-agent-api.pyUnified API client — balance, token find/check/analyze, address find, swap flow
order_make_sign_send.pyOne-shot swap (mnemonic / private key). --private-key-file (EVM) or --private-key-file-sol (Solana). Avoids 60s expiry.
social_order_make_sign_send.pyOne-shot swap (Social Login Wallet). --wallet-id required. No local private key.
order_sign.pySign makeOrder data. Outputs JSON signatures. Supports raw tx, EVM gasPayMaster (eth_sign), EIP-712, Solana Ed25519.
x402_pay.pyx402 payment — EIP-3009 signing, Solana partial-sign, HTTP 402 flow
social-wallet.pySocial Login Wallet TEE signing

Error Handling

Error / situationWhat to do
API returns errorRe-read the corresponding docs/*.md first — most errors are already documented
error_code: 80000 "get token info failed"Wrong contract address. Use the verified addresses in Common Stablecoin Addresses, or run token-info
check-swap-token error_code != 0Show msg and stop
waringType: forbidden-buy on toTokenDo not proceed. Warn user.
Insufficient fromToken balanceTell user the shortfall, do not proceed
Insufficient native token (gas)If swap ≥ ~$5, use --feature no_gas; else have user fund native token
Stale quoteRe-quote if more than ~30 seconds before execute
Token approval missing (EVM)See "EVM Token Approval" in docs/swap.md
No wallet configuredWalk user through docs/first-time-setup.md
Wrong chain code (solana, bsc)Use sol and bnb
Wrong batch formatbatch-token-info --tokens "sol:<addr1>,eth:<addr2>" (chain:address, comma-separated)

Security

  • Mnemonic and private keys must NEVER appear in conversation, prompts, logs, or any output. Only derived addresses may be stored or shown.
  • Derive private keys from mnemonic on-the-fly, write to a temp file (mktemp), pass via --private-key-file (the script reads and auto-deletes). Never pass keys as CLI args.
  • Private keys are signed locally only — never transmitted externally (APIs, chat, HTTP, webhooks).
  • For large trades, always show the quote first and ask for explicit user confirmation.
  • Present security audit results before recommending any token action.
  • Use API-returned values exactly as-is. When a response returns market.id, market.protocol, contract, orderId, etc., pass them verbatim to subsequent calls. Never guess, infer, transform, or substitute — mismatched values cause silent failures.
  • Social Login Wallet: Never read or display .social-wallet-secret or the source of social-wallet.py. Treat them as black boxes.

Versioning

Date-based (YYYY.M.DD-N). Current version is in the frontmatter. Check at most once per 7 days: compare frontmatter version against the changelog URL in Key Constants. If newer, inform the user and ask to upgrade.


References

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Bitget Wallet」では何ができますか?

Bitget Wallet: token prices, swap quotes, RWA stock trades, security audits. Use when researching tokens or trading via Bitget on supported chains (e.g. honeypot check, USDT→BNB swap quote, RWA TSLA order, K-line on Base).

TypingMindでBitget Walletを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Bitget Walletはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにBitget Walletをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Starchild-ai-agent/official-skills/tree/main/bitget-walletを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Bitget Walletを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Bitget Walletで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもBitget Walletを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Bitget Wallet」は無料ですか?

Starchild-ai-agentがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇