gate-dex-wallet
Gate DEX comprehensive wallet skill. Unified entry point supporting: authentication login, asset queries, transfer execution, DApp interactions, CLI command-line for five major modules. Use when users mention login, check balance, transfer, DApp interaction, signing, gate-wallet, CLI, command-line, openapi-swap and other wallet-related operations. Route to specific operation reference files through sub-function routing.
Best use case
gate-dex-wallet is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Gate DEX comprehensive wallet skill. Unified entry point supporting: authentication login, asset queries, transfer execution, DApp interactions, CLI command-line for five major modules. Use when users mention login, check balance, transfer, DApp interaction, signing, gate-wallet, CLI, command-line, openapi-swap and other wallet-related operations. Route to specific operation reference files through sub-function routing.
Teams using gate-dex-wallet should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/gate-dex-wallet/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How gate-dex-wallet Compares
| Feature / Agent | gate-dex-wallet | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Gate DEX comprehensive wallet skill. Unified entry point supporting: authentication login, asset queries, transfer execution, DApp interactions, CLI command-line for five major modules. Use when users mention login, check balance, transfer, DApp interaction, signing, gate-wallet, CLI, command-line, openapi-swap and other wallet-related operations. Route to specific operation reference files through sub-function routing.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Gate DEX Wallet
> **Comprehensive Wallet Skill** — Unified entry point for authentication, assets, transfers, DApp interactions, and CLI command-line. 5 major modules through sub-function routing distribution.
**Trigger Scenarios**: Use this Skill when users mention "login", "check balance", "transfer", "DApp", "sign", "wallet", "assets", "gate-wallet", "CLI", "command-line", "openapi-swap" and other wallet-related operations.
---
## Core Modules
| Module | Description | Typical Scenarios |
|------|------|---------|
| 🔐 **Authentication** | Google OAuth login, Token management | "login", "logout", "token expired" |
| 💰 **Assets** | Balance queries, address retrieval, transaction history | "check balance", "total assets", "transaction history" |
| 💸 **Transfer** | Gas estimation, transaction building, signature broadcast | "transfer", "send tokens", "batch transfer" |
| 🎯 **DApp** | Wallet connection, message signing, contract interaction | "connect DApp", "sign message", "Approve" |
| 🖥️ **CLI** | gate-wallet CLI dual-channel (MCP custodial signing + OpenAPI hybrid mode) | "gate-wallet", "CLI", "command-line", "openapi-swap", "hybrid swap" |
---
## Routing Rules
Route to corresponding sub-function reference files based on user intent:
| User Intent | Example Keywords | Reference File |
|---------|-----------|---------|
| **Authentication login** | "login", "login", "auth", "token expired", "session" | [references/auth.md](./references/auth.md) |
| **Asset queries** | "check balance", "total assets", "wallet address", "transaction history", "Swap history" | Keep current SKILL.md main flow |
| **Transfer operations** | "transfer", "send", "transfer", "batch transfer", "Gas fee" | [references/transfer.md](./references/transfer.md) |
| **DApp interactions** | "DApp", "sign message", "Approve", "connect wallet", "contract call" | [references/dapp.md](./references/dapp.md) |
| **CLI operations** | "gate-wallet", "CLI", "command-line", "openapi-swap", "hybrid swap", "hybrid mode swap" | [references/cli.md](./references/cli.md) |
---
## MCP Server Connection Detection
### Initial Session Detection
**Execute connection probe once before first MCP tool call in session to confirm Gate Wallet MCP Server availability. No need to repeat detection for subsequent operations.**
```text
CallMcpTool(server="gate-wallet", toolName="chain.config", arguments={chain: "eth"})
```
| Result | Handling |
|------|------|
| Success | MCP Server available, continue executing user-requested specific operations |
| Failure | Show configuration guidance based on error type (see error handling below) |
### Runtime Error Fallback
For subsequent operations, if business tool calls fail (connection error, timeout, etc.), handle according to the following rules:
| Error Type | Keywords | Handling |
|---------|--------|------|
| MCP Server not configured | `server not found`, `unknown server` | Show MCP Server configuration guidance |
| Remote service unreachable | `connection refused`, `timeout`, `DNS error` | Suggest checking server status and network connection |
| Authentication failure | `401`, `unauthorized`, `x-api-key` | Suggest contacting administrator for API Key |
---
## Authentication State Management
All operations requiring authentication (asset queries, transfers, DApp interactions) need valid `mcp_token`:
- If currently no `mcp_token` → Guide to `references/auth.md` to complete login then return
- If `mcp_token` expired (MCP Server returns token expired error) → First try `auth.refresh_token` silent refresh, guide to re-login if failed
---
## MCP Tool Call Specifications (Asset Query Module)
### 1. `wallet.get_token_list` — Query Token Balances
Query token balance list for specified chain or all chains.
| Field | Description |
|------|------|
| **Tool Name** | `wallet.get_token_list` |
| **Parameters** | `{ chain?: string, network_keys?: string, account_id?: string, mcp_token: string, page?: number, page_size?: number }` |
| **Return Value** | Token array, each item contains `symbol`, `balance`, `price`, `value`, `chain`, `contract_address`, etc. |
Call example:
```text
CallMcpTool(
server="gate-wallet",
toolName="wallet.get_token_list",
arguments={ chain: "ETH", mcp_token: "<mcp_token>" }
)
```
### 2. `wallet.get_total_asset` — Query Total Asset Value
| Field | Description |
|------|------|
| **Tool Name** | `wallet.get_total_asset` |
| **Parameters** | `{ account_id: string, mcp_token: string }` |
| **Return Value** | `{ total_value_usd: number, chains: Array<{chain: string, value_usd: number}> }` |
### 3. `wallet.get_addresses` — Get Wallet Addresses
| Field | Description |
|------|------|
| **Tool Name** | `wallet.get_addresses` |
| **Parameters** | `{ account_id: string, mcp_token: string }` |
| **Return Value** | Wallet address objects for each chain |
### 4. `chain.config` — Chain Configuration Info
| Field | Description |
|------|------|
| **Tool Name** | `chain.config` |
| **Parameters** | `{ chain: string, mcp_token: string }` |
| **Return Value** | Chain configuration info (RPC, block explorer, etc.) |
### 5. `tx.list` — Wallet comprehensive (auth, assets, transfer, DApp) transaction list
| Field | Description |
|------|------|
| **Tool Name** | `tx.list` |
| **Parameters** | `{ account_id: string, chain?: string, page?: number, limit?: number, mcp_token: string }` |
| **Return Value** | Transaction history array |
### 6. `tx.detail` — Transaction Details
| Field | Description |
|------|------|
| **Tool Name** | `tx.detail` |
| **Parameters** | `{ hash_id: string, chain: string, mcp_token: string }` |
| **Return Value** | Detailed transaction information |
### 7. `tx.history_list` — Swap History Records
| Field | Description |
|------|------|
| **Tool Name** | `tx.history_list` |
| **Parameters** | `{ account_id: string, chain?: string, page?: number, limit?: number, mcp_token: string }` |
| **Return Value** | Swap history array |
---
## Operation Flows
### Flow A: Query Token Balances
```text
Step 0: MCP Server connection detection
↓ Success
Step 1: Authentication check
Confirm holding valid mcp_token and account_id
No token → Route to references/auth.md
↓
Step 2: Execute query
Call wallet.get_token_list({ chain?, network_keys?, mcp_token })
↓
Step 3: Format display
Group by chain, sort by value, filter zero balances
```
### Flow B: Query Total Asset Value
```text
Step 0-1: Same as Flow A
↓
Step 2: Execute query
Call wallet.get_total_asset({ account_id, mcp_token })
↓
Step 3: Format display
Total value + distribution by chain
```
### Flow C-G: Other Asset Query Flows
Similar to above flows, detailed specifications see original SKILL.md content.
---
## Skill Routing
Post-asset viewing follow-up operation guidance:
| User Intent | Target |
|---------|------|
| View token prices, K-line charts | `gate-dex-market` |
| View token security audits | `gate-dex-market` |
| Transfer, send tokens | This Skill `references/transfer.md` |
| Swap/Exchange tokens | `gate-dex-trade` |
| Interact with DApps | This Skill `references/dapp.md` |
| Login/Auth expired | This Skill `references/auth.md` |
| Use CLI / command-line operations / hybrid mode Swap | This Skill `references/cli.md` |
---
## Cross-Skill Collaboration
This Skill serves as **wallet data center**, called by other Skills:
| Caller | Scenario | Used Tools |
|--------|------|---------|
| `gate-dex-trade` | Pre-swap balance validation, token address resolution | `wallet.get_token_list` |
| `gate-dex-trade` | Get chain-specific wallet address | `wallet.get_addresses` |
| `gate-dex-market` | Guide to view holdings after market data query | `wallet.get_token_list` |
| CLI sub-module | CLI dual-channel operations (MCP custodial signing / OpenAPI hybrid Swap) | `references/cli.md` |
---
## Supported Chains
| Chain ID | Network Name | Type |
|--------|----------|------|
| `eth` | Ethereum | EVM |
| `bsc` | BNB Smart Chain | EVM |
| `polygon` | Polygon | EVM |
| `arbitrum` | Arbitrum One | EVM |
| `optimism` | Optimism | EVM |
| `avax` | Avalanche C-Chain | EVM |
| `base` | Base | EVM |
| `sol` | Solana | Non-EVM |
---
## Security Rules
1. **Authentication check**: Check `mcp_token` validity before all operations
2. **Sensitive information**: `mcp_token` must not be displayed in plain text in conversations
3. **Auto refresh**: Prioritize silent refresh when token expires
4. **Guidance mechanism**: Guide to `references/auth.md` when authentication fails
5. **Cross-Skill security**: Provide secure balance validation and address retrieval for other SkillsRelated Skills
okx-wallet-portfolio
This skill should be used when the user asks to 'check my wallet balance', 'show my token holdings', 'how much OKB do I have', 'what tokens do I have', 'check my portfolio value', 'view my assets', 'how much is my portfolio worth', 'what\'s in my wallet', or mentions checking wallet balance, total assets, token holdings, portfolio value, remaining funds, DeFi positions, or multi-chain balance lookup. Supports XLayer, Solana, Ethereum, Base, BSC, Arbitrum, Polygon, and 20+ other chains. Do NOT use for general programming questions about balance variables or API documentation. Do NOT use when the user is asking how to build or integrate a balance feature into code.
okx-onchain-gateway
This skill should be used when the user asks to 'broadcast transaction', 'send tx', 'estimate gas', 'simulate transaction', 'check tx status', 'track my transaction', 'get gas price', 'gas limit', 'broadcast signed tx', or mentions broadcasting transactions, sending transactions on-chain, gas estimation, transaction simulation, tracking broadcast orders, or checking transaction status. Covers gas price, gas limit estimation, transaction simulation, transaction broadcasting, and order tracking across XLayer, Solana, Ethereum, Base, BSC, Arbitrum, Polygon, and 20+ other chains. Do NOT use for swap quote or execution - use okx-dex-swap instead. Do NOT use for general programming questions about transaction handling.
okx-agentic-wallet
Use this skill when the user mentions wallet login, sign in, verify OTP, add wallet, switch account, wallet status, logout, wallet balance, assets, holdings, send tokens, transfer ETH, transfer USDC, pay someone, send crypto, send ERC-20, send SPL, transaction history, recent transactions, tx status, tx detail, order list, call smart contract, interact with contract, execute contract function, send calldata, invoke smart contract, show my addresses, wallet addresses, deposit, receive, receive address, top up, fund my wallet. Chinese: 登录钱包, 钱包登录, 验证OTP, 添加钱包, 切换账户, 钱包状态, 退出登录, 余额, 资产, 钱包列表, 账户列表, 发送代币, 转账, 交易历史, 交易记录, 合约调用, 我的地址, 钱包地址, 充值, 充币, 收款, 收款地址, 入金. Manages the wallet lifecycle: auth (login, OTP verify, account addition, switching, status, logout), authenticated balance queries, wallet address display (grouped by XLayer/EVM/Solana), token transfers (native & ERC-20/SPL), transaction history, and smart contract calls. Do NOT use for DEX swaps — use okx-dex-swap. Do NOT use for token search or market data — use okx-dex-token or okx-dex-market. Do NOT use for smart money / whale / KOL signals — use okx-dex-signal. Do NOT use for meme token scanning — use okx-dex-trenches. Do NOT use for transaction broadcasting (non-wallet) — use okx-onchain-gateway. Do NOT use when the user says only a single word like 'wallet' or 'login' without specifying an action or context. Do NOT use for security scanning (token/DApp/tx/sig) — use okx-security. Do NOT use for querying a specific public address's portfolio balance (user provides an explicit address like 0xAbc...) — use okx-wallet-portfolio. Do NOT use for PnL analysis (win rate, realized/unrealized PnL, DEX history) — use okx-dex-market.
gate-info-trendanalysis
Trend and technical analysis. Use this skill whenever the user asks for technical or trend analysis of one coin. Trigger phrases include: technical analysis, K-line, RSI, MACD, trend, support, resistance. MCP tools: info_markettrend_get_kline, info_markettrend_get_indicator_history, info_markettrend_get_technical_analysis, info_marketsnapshot_get_market_snapshot.
gate-exchange-trading-copilot
End-to-end cryptocurrency trading copilot for Gate Exchange. Use this skill whenever the user wants one skill to complete market judgment, risk control, and execution for a cryptocurrency trade on Gate Exchange. Trigger phrases include "analyze before placing an order", "analyze before buying", "check risk before trading", or any request involving cryptocurrency trade judgment, order drafting, spot or futures execution, or post-trade management on Gate Exchange.
gate-exchange-staking
The on-chain staking query function of Gate Exchange. Use this skill to query staking positions, rewards, products, or order history. Trigger phrases include: staking, stake, earn, staking rewards, staking positions, earning records, staking history, available coins.
gate-info-riskcheck
Token and address risk assessment. Use this skill whenever the user asks about token, contract, or address safety. Trigger phrases include: is this token safe, check contract risk, is this address safe, honeypot, rug. MCP tools: info_compliance_check_token_security, info_coin_get_coin_info; Address mode: info_onchain_get_address_info.
gate-news-briefing
News briefing. Use this skill whenever the user asks for recent news or headlines. Trigger phrases include: what happened recently, today's highlights, crypto news, any new updates. MCP tools: news_events_get_latest_events, news_feed_search_news, news_feed_get_social_sentiment.
gate-mcp-skill
Use Gate MCP through UXC for public spot and futures market data workflows with a fixed streamable-http endpoint and read-first guardrails.
gate-mcp-openclaw-installer
One-click installer for all Gate.com MCP servers including spot/futures trading, DEX, market info, and news. Use when users need to install, configure, or manage Gate MCP servers with mcporter.
gate-info-marketoverview
Market overview. Use this skill whenever the user asks about overall market. Trigger phrases include: how is the market, market overview, what is happening in crypto. MCP tools: info_marketsnapshot_get_market_overview, info_coin_get_coin_rankings, info_platformmetrics_get_defi_overview, news_events_get_latest_events, info_macro_get_macro_summary.
gate-exchange-marketanalysis
The market analysis function of Gate Exchange, such as liquidity, momentum, liquidation, funding arbitrage, basis, manipulation risk, order book explainer, slippage simulation. Use when the user asks about liquidity, depth, slippage, buy/sell pressure, liquidation, funding rate arbitrage, basis/premium, manipulation risk, order book explanation, or slippage simulation (e.g. market buy $X slippage). Trigger phrases: liquidity, depth, slippage, momentum, buy/sell pressure, liquidation, squeeze, funding rate, arbitrage, basis, premium, manipulation, order book, spread, slippage simulation.