AI agent skill for Bitget Wallet — token swap, cross-chain bridge, and gasless transactions via Order Mode API. Supports 7 EVM chains + Solana.
$ npx -y skills add bitget-wallet-ai-lab/bitget-wallet-skill --agent claude-code
What's inside
An AI Agent skill that wraps the Bitget Wallet API, enabling natural-language-driven on-chain data queries and swap operations.
| Principle | Description |
|---|---|
| Domain Knowledge + Tools | Not just API wrappers — includes swap flow (see docs/swap.md), signing guides, security models, and known pitfalls so agents make informed decisions |
| Zero External Dependencies | All code is self-contained. Solana signing is pure Python (Ed25519 + base58 built-in). EVM signing uses eth_account (standard). Only requests for API calls. No pip install needed for Solana |
| API Infrastructure, Not Reimplementation | Capabilities come from Bitget Wallet's production API. The skill provides the knowledge and tooling layer, not a parallel implementation |
| Human-in-the-Loop by Default | Swap operations generate transaction data but never sign autonomously. User confirmation required for all fund-moving actions |
Market side handles token discovery and analysis only — no trading, wallet, or signing. Skills layer computes scores and rules; backend provides raw data.
Atomic Tools (Agent orchestrates)
├── bgw_token_find Find tokens (chain scan / search / rankings / sectors)
├── bgw_token_check Check tokens (security / dev / anti-manipulation / signals / market)
├── bgw_token_analyze Analyze tokens (deep: timeline / trades / holdings / smart money)
├── bgw_alpha Alpha intelligence (gems / signals)
├── bgw_address_find Find addresses (by pool / role / criteria)
└── bgw_address_analyze Analyze addresses (scoring / PnL / style / operations / comparison)
Smart Tools (We orchestrate)
├── bgw_combo Smart combos (token + address permutation recipes)
└── bgw_monitor Continuous monitoring (token signals / address activity / price alerts)
| Capability | Description | Example |
|---|---|---|
| Launchpad Scanner | Scan new pools (pump.fun, four.meme, etc.) with 15+ filters | "Scan pump.fun for launching tokens with >$10K MC" |
| Token Search (v3) | Search by keyword/contract with market_cap ordering + risk_level | "Find PEPE on ETH sorted by market cap" |
| Token Market Info | Price, MC, FDV, liquidity, 57 pool pairs, narratives, price changes | "Show me full market info for Lobstar" |
| Dev Analysis | Dev address, rug history, LP lock, holdings, migration history | "Check this token's dev history" |
| Security Audit | Honeypot/mint/proxy + buy/sell tax + risk checks (EVM & Solana) | "Is this contract safe?" |
| K-line + Smart Signals | K-line with KOL/smart money trade markers + hot level | "Show me smart money activity on this token" |
| Trading Dynamics | Multi-window buy/sell pressure + address quality + wash detection | "What's the trading activity like?" |
| Transaction Analysis | Tagged transactions (smart money/KOL/dev) with filtering | "Show me KOL trades on this token" |
| Holder Analysis | Top100 distribution + PnL + tag classification (CEX/smart/KOL) | "Who's holding this token?" |
| Smart Money Analysis | Profitable address stats + top earners list | "Are smart money addresses in profit?" |
| Token Comparison | Side-by-side K-line comparison of two tokens | "Compare BONK vs WIF price action" |
| Address Discovery | Find KOL / smart money addresses by role with performance filters | "Find top smart money on Solana with >80% win rate" |
| Social Login Wallet | Sign transactions/messages via Bitget Wallet TEE — no local private key needed | "Sign this transaction with my Bitget Wallet" |
| Balance Query | On-chain balance per chain/address/token (native + ERC-20/SPL) | "What's my BNB balance?" |
| Balance + Price | Batch balance with USD price in one call | "What's my portfolio worth?" |
| Token Info | Price, market cap, holders, social links | "What's the price of SOL?" |
| K-line Data | 1m/5m/1h/4h/1d candlestick data with buy/sell breakdown | Trend analysis, buying pressure |
| Transaction Stats | 5m/1h/4h/24h buy/sell volume & trader count | Activity detection, whale monitoring |
| Rankings | Top gainers / top losers / Hotpicks (curated trending) | Market scanning, alpha discovery |
| Liquidity Pools | LP pool information | Slippage estimation, depth analysis |
| Historical Coins | Discover new tokens by timestamp (paginated) | "What tokens launched today?" |
| Token Risk Check | Pre-swap safety check for from/to tokens (forbidden-buy detection) | "Is this token safe to buy?" |
| Swap Quote | Multi-market quotes for same-chain/cross-chain swaps | "How much USDC for 1 SOL?" |
| Swap Confirm | Final quote from selected market with orderId | Lock in price and route |
| Swap MakeOrder | Generate unsigned transaction data for signing | Execute trades via wallet signing |
| Swap Send | Submit signed transactions | Broadcast with MEV protection |
| Order Details | Track order lifecycle (processing→success/failed) | "Check my swap status" |
| Token Transfer | Direct on-chain token transfer (EVM + Solana), server broadcasts | "Send 100 USDT to 0xDeF..." |
| Gasless Transfer | Transfer tokens without native gas — gas paid from USDT/USDC balance | "Send USDC on Base with no ETH for gas" |
| x402 Payment | Pay for x402-enabled APIs with USDC on Base | "Access this paid API endpoint" |
⚠️ Swap amounts are human-readable — pass
0.1for 0.1 USDT, NOT100000000000000000. ThetoAmountin responses is also human-readable. This differs from most on-chain APIs.
The swap flow enables two capabilities no other AI agent swap skill offers:
⛽ Gasless Transactions (EIP-7702)
🌉 One-Step Cross-Chain Swaps
How it works:
1. quote → Get multi-market quotes
2. confirm → Final quote from chosen market, get orderId
3. makeOrder → Create unsigned transaction data
4. Sign → Agent signs with wallet key
5. send → Submit signed data
6. getOrderDetails → Track until success
Example — Same-chain swap:
# Quote: BNB USDT → USDC
python3 scripts/bitget-wallet-agent-api.py quote \
--from-chain bnb --from-contract 0x55d398326f99059fF775485246999027B3197955 \
--from-symbol USDT --from-amount 5 \
--to-chain bnb --to-contract 0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d \
--to-symbol USDC \
--from-address 0xYourAddress --to-address 0xYourAddress
# Confirm with chosen market
python3 scripts/bitget-wallet-agent-api.py confirm \
--from-chain bnb --from-contract 0x55d398326f99059fF775485246999027B3197955 \
--from-symbol USDT --from-amount 5 \
--to-chain bnb --to-contract 0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d \
--to-symbol USDC \
--from-address 0xYourAddress --to-address 0xYourAddress \
--market bgwevmaggregator --protocol bgwevmaggregator_v000 \
--slippage 0.01 --feature user_gas
x402 is an open standard for HTTP-native payments. When an agent encounters a paid API (HTTP 402), it signs a USDC authorization and retries — no accounts, no API keys needed.
How it works:
1. Agent requests a resource → gets HTTP 402 + payment requirements
2. Agent signs EIP-3009 TransferWithAuthorization (gasless, off-chain)
3. Agent retries with PAYMENT-SIGNATURE header
4. Service's facilitator settles on-chain → agent gets the resource
Key features:
# Example: pay $0.001 for Pinata IPFS upload
python3 scripts/x402_pay.py pay \
--url "https://402.pinata.cloud/v1/pin/private?fileSize=100" \
--private-key <key> --method POST --data '{"fileSize": 100}' --auto
See docs/x402-payments.md for domain knowledge, signing details, and testing guide.
Direct on-chain token transfer where the server handles transaction construction, broadcasting, and tracking. Supports gasless mode — gas fees paid from stablecoin balance (USDT/USDC) instead of native tokens.
How it works:
transfer_make_sign_send.py / social_transfer_make_sign_send.py
→ makeTransferOrder + sign + submitTransferOrder (one shot)
→ poll getTransferOrder until SUCCESS or FAILED
Key features:
# Standard EVM token transfer
python3 scripts/transfer_make_sign_send.py --private-key-file /tmp/.pk_evm \
--chain eth --contract 0xdAC17F958D2ee523a2206206994597C13D831ec7 \
--from-address 0xAbC... --to-address 0xDeF... --amount 100
# Gasless transfer (no ETH needed for gas)
python3 scripts/transfer_make_sign_send.py --private-key-file /tmp/.pk_evm \
--chain base --contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 \
--from-address 0xAbC... --to-address 0xDeF... --amount 50 --gasless
# Poll status
python3 scripts/bitget-wallet-agent-api.py get-transfer-order --order-id <orderId>
See docs/transfer.md for domain knowledge, signing modes, and gasless details.
Ethereum · Solana · BNB Chain · Base · Arbitrum · Tron · TON · Sui · Optimism and more.
Natural Language Input
↓
AI Agent (OpenClaw / Dify / Custom)
↓
bitget-wallet-agent-api.py (Python 3.9+)
↓ ← Token auth (no API key needed)
Bitget Agent API (copenapi.bgwapi.io)
↓
Structured JSON → Agent interprets → Natural language response
Security by Design:
"Check if this Solana meme coin is safe, and give me a price quote."
"What's my total portfolio value right now?"
Automatically scan top gainers, detect anomalies, push alerts
"Buy this token with 1 SOL"
FAQ
bitget-wallet-skill is a Claude Code plugin with 1 hand-picked skill for finance work, indexed on Flowy. Install it with the command on its page. It includes bitget-wallet-skill. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it