[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6H3198GEYPVCWRFVYVS768W":3,"skill-same:01M6H3198GEYPVCWRFVYVS768W":131},{"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":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":6,"ownerHtmlUrl":53,"ownerBlogUrl":54,"ownerDescription":55,"updatedAt":56,"install":57,"resources":70},"01M6H3198GEYPVCWRFVYVS768W","bitget-wallet",null,"Interact with Bitget Wallet API for crypto market data, token info, swap quotes, RWA (real-world asset) stock trading, and security audits. Use when the user asks about wallet, token prices, market data, swap\u002Ftrading quotes, RWA stock discovery and trading, token security checks, K-line charts, or token rankings on supported chains (ETH, SOL, BSC, Base, etc.).","jiayaoqijia\u002Fcryptoskill","jiayaoqijia","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1453879?v=4","01M6GMYTX7Q7S504VC6E756ENR","YQ","01M6GMYV1QKJ1CC75MTTGT9PR0",81,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fwallets\u002Fbitget-official-wallet\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],"Wallet","bitget wallet","bitget","asset","2026","when","market data","bsc","prices","sol","Crypto Market Data","quotes","security","line","token","stock","info","world","trading","Charts","api","data","2026-11-10 10:12:30",false,"---\nname: bitget-wallet\nversion: \"2026.3.12-1\"\nupdated: \"2026-03-12\"\ndescription: \"Interact with Bitget Wallet API for crypto market data, token info, swap quotes, RWA (real-world asset) stock trading, and security audits. Use when the user asks about wallet, token prices, market data, swap\u002Ftrading quotes, RWA stock discovery and trading, token security checks, K-line charts, or token rankings on supported chains (ETH, SOL, BSC, Base, etc.).\"\n---\n\n# Bitget Wallet Skill\n\n## API Overview\n\n**How to handle tasks:**\n\n1. **Primary sources:** Use the **Scripts** section in this SKILL and the files under **`docs\u002F`** to decide which commands to run and how. Scripts lists each Python CLI with purpose, subcommands, and when to use them; `docs\u002Fswap.md`, `docs\u002Fwallet-signing.md`, `docs\u002Fmarket-data.md`, etc. describe flows and domain rules.\n2. **Run commands as documented:** Execute the script invocations shown in Scripts (e.g. `python3 scripts\u002Fbitget_agent_api.py ...`, `python3 scripts\u002Forder_sign.py ...`). For swap, balance, wallet, and signing, follow the flows in `docs\u002Fswap.md` and `docs\u002Fwallet-signing.md`.\n\n**Before starting a new swap - two mandatory pre-checks:**\n\n1. **Balance check (required):** Run **`get-processed-balance`** to verify the wallet has enough fromToken balance for the intended swap amount. Include native token (`\"\"`) to check gas availability. If `fromToken balance \u003C fromAmount`, inform the user of the shortfall and **do not proceed**. **Gas mode decision:** If native token balance is sufficient for gas → use `--feature user_gas` (preferred). If native token balance is near zero → use `--feature no_gas` (gasless, gas deducted from fromToken; **requires swap amount ≥ ~$5 USD** — below this threshold the API only returns `user_gas`). This choice must be passed to confirm.\n   ```bash\n   python3 scripts\u002Fbitget_agent_api.py get-processed-balance --chain \u003CfromChain> --address \u003Cwallet> --contract \"\" --contract \u003CfromContract>\n   ```\n\n2. **Token risk check (required):** Run **`check-swap-token`** for the intended fromToken and toToken. If `error_code != 0`, show `msg` and stop. If for any token `data.list[].checkTokenList` is non-empty, show the `tips` content to the user and let them decide whether to continue. If the **toToken** (swap target) has an item with **`waringType` equal to `\"forbidden-buy\"`**, do **not** proceed with the swap and warn the user that this token cannot be used as the swap target.\n   ```bash\n   python3 scripts\u002Fbitget_agent_api.py check-swap-token --from-chain ... --from-contract ... --from-symbol ... --to-chain ... --to-contract ... --to-symbol ...\n   ```\n\n**Swap execution must strictly follow `docs\u002Fswap.md` Flow Overview — no shortcuts:**\n\n1. **Balance check** — verify fromToken + native token balance before anything else\n2. **Token risk check** — check-swap-token for both fromToken and toToken\n3. **Quote** — display **all** market results to user, recommend the first, let user choose\n4. **Confirm** — must display three fields to user: `outAmount` (expected), `minAmount` (minimum), `gasTotalAmount` (gas cost); check `recommendFeatures` for gas sufficiency\n5. **User confirmation** — **do not** sign or send until user explicitly confirms (\"confirm\", \"execute\", \"yes\")\n6. **makeOrder + sign + send** — execute as one atomic operation (use `order_make_sign_send.py`)\n7. **Query status** — check order result; ignore `tips` when status=success\n\nSee Scripts for full command details and `docs\u002Fswap.md` for the complete flow.\n\n**Technical reference:** Base URL `https:\u002F\u002Fcopenapi.bgwapi.io` (token auth, no API key). All commands via `scripts\u002Fbitget_agent_api.py` — run with `--help` for full subcommand list, or see [`docs\u002Fcommands.md`](docs\u002Fcommands.md).\n\n## Domain Knowledge\n\n### Skill Domain Knowledge\n\n#### Version\n\nDate-based versioning (`YYYY.M.DD-N`). Current version in frontmatter. **Check at most once per 7 days:** compare frontmatter version against `https:\u002F\u002Fraw.githubusercontent.com\u002Fbitget-wallet-ai-lab\u002Fbitget-wallet-skill\u002Fmain\u002FCHANGELOG.md`. If newer, inform user and ask to upgrade.\n\n---\n\n### Wallet Domain Knowledge\n\n> **First-time wallet setup & swap configuration:** See [`docs\u002Ffirst-time-setup.md`](docs\u002Ffirst-time-setup.md).\n\n**Key rules (always apply):**\n- Only mnemonic is persisted. Private keys derived on-the-fly, used, discarded immediately.\n- Private keys must never be transmitted externally (APIs, chat, HTTP, webhooks, etc.) — local signing only.\n- Use `--private-key-file` with temp file (`mktemp`). Never pass keys as CLI arguments.\n\n#### Amounts: human-readable only\n\nAll BGW API amount fields use **human-readable values**, not smallest units (wei, lamports, token decimals). In the swap flow, **fromAmount** (and toAmount, etc.) must be the human-readable number (e.g. `0.01` for 0.01 USDT). Do **not** convert to token decimals or wei\u002Flamports. Applies to quote, confirm, makeOrder, and all `toAmount`\u002F`fromAmount` in responses. The `decimals` field in responses is informational only.\n\n#### Native tokens and addresses\n\n- Use empty string `\"\"` as the contract address for native tokens (ETH, SOL, BNB, etc.). Do not use wrapped token addresses (e.g. WETH, WSOL) for native.\n\n#### Common Stablecoin Addresses\n\n**Always use these verified addresses for USDT\u002FUSDC.** Do not guess or generate contract addresses from memory - incorrect addresses cause API errors (`error_code: 80000`, \"get token info failed\").\n\n> **USDT vs USDT0:** On some chains Tether has migrated to USDT0 (omnichain). The same contract addresses work; use the address below for \"USDT\" regardless.\n\n| Chain (code) | USDT (USDT0) | USDC |\n|--------------|--------------|------|\n| Ethereum (`eth`) | `0xdAC17F958D2ee523a2206206994597C13D831ec7` | `0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48` |\n| BNB Chain (`bnb`) | `0x55d398326f99059fF775485246999027B3197955` | `0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d` |\n| Base (`base`) | `0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2` | `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913` |\n| Arbitrum (`arbitrum`) | `0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9` | `0xaf88d065e77c8cC2239327C5EDb3A432268e5831` |\n| Polygon (`matic`) | `0xc2132D05D31c914a87C6611C10748AEb04B58e8F` | `0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359` |\n| Solana (`sol`) | `Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB` | `EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v` |\n| Morph (`morph`) | `0xe7cd86e13AC4309349F30B3435a9d337750fC82D` | `0xCfb1186F4e93D60E60a8bDd997427D1F33bc372B` |\n| Tron (`trx`) | `TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t` | - |\n\n**BGB (Bitget Token):** Ethereum `0x54D2252757e1672EEaD234D27B1270728fF90581`; Morph `0x389C08Bc23A7317000a1FD76c7c5B0cb0b4640b5`.\n\nFor other tokens, use token-info or a block explorer to verify the contract address before calling swap endpoints.\n\n---\n\n### Extended Domain Knowledge\n\nLoad the following when the task requires it:\n\n| Module | File | When to Load |\n|--------|------|--------------|\n| First-Time Setup | [`docs\u002Ffirst-time-setup.md`](docs\u002Ffirst-time-setup.md) | New wallet creation, first swap config, derivation paths |\n| Commands | [`docs\u002Fcommands.md`](docs\u002Fcommands.md) | Full subcommand parameters, usage examples for all scripts |\n| Wallet & Signing | [`docs\u002Fwallet-signing.md`](docs\u002Fwallet-signing.md) | Key management, BIP-39\u002F44, signing, multi-chain |\n| Market Data | [`docs\u002Fmarket-data.md`](docs\u002Fmarket-data.md) | Token info, price, K-line, tx info, rankings, liquidity, security |\n| Swap | [`docs\u002Fswap.md`](docs\u002Fswap.md) | Swap flow, quote\u002Fconfirm\u002FmakeOrder\u002Fsend, slippage, gas, approvals |\n| RWA Stock Trading | [`docs\u002Frwa.md`](docs\u002Frwa.md) | RWA stock discovery, config, market status, order price, holdings |\n| x402 Payments | [`docs\u002Fx402-payments.md`](docs\u002Fx402-payments.md) | HTTP 402, EIP-3009, Permit2, Solana partial-sign |\n\n---\n\n### Common Pitfalls\n\n1. **Chain code:** Use `sol` not `solana`, `bnb` not `bsc`. See **Chain Identifiers** below.\n2. **Batch format:** e.g. `batch-token-info` uses `--tokens \"sol:\u003Caddr1>,eth:\u003Caddr2>\"` (chain:address, comma-separated).\n3. **Stale quotes:** Re-quote if more than ~30 seconds before execute; prices may have moved.\n4. **Insufficient gas:** Swap can fail if the wallet lacks native token for gas. Check balance before proceeding.\n5. **Token approval (EVM):** ERC-20 must be approved for the router; see \"EVM Token Approval\" in `docs\u002Fswap.md`.\n6. **Wallet before balance\u002Fswap:** If no wallet is configured, guide the user through First-Time Wallet Setup (see Wallet Domain Knowledge above).\n7. **Script usage:** Use CLI commands from this SKILL (e.g. `bitget_agent_api.py`, `order_sign.py`).\n8. **Key security:** Derive private keys from mnemonic on-the-fly, pass to `order_sign.py --private-key`, discard immediately after signing. Never store keys or output mnemonic\u002Fkeys to chat.\n9. **Human-readable amounts:** Pass fromAmount etc. as user-facing numbers (e.g. `0.01`), not wei\u002Flamports\u002Fdecimals.\n10. **Security:** Mnemonic and private keys must **never** appear in conversation, prompts, or any output. Only mnemonic **file path** and derived **addresses** may be in context.\n\n---\n\n### Chain Identifiers\n\n**Swap-supported chains (7):**\n\n| Chain | ID | Code |\n|-------|------|------|\n| Ethereum | 1 | eth |\n| Solana | 100278 | sol |\n| BNB Chain | 56 | bnb |\n| Base | 8453 | base |\n| Arbitrum | 42161 | arbitrum |\n| Polygon | 137 | matic |\n| Morph | 100283 | morph |\n| Tron | 728126428 | trx |\n\n\nUse empty string `\"\"` for native token contract (ETH, SOL, BNB, etc.).\n\n---\n\n## Scripts\n\n4 scripts in `scripts\u002F`, Python 3.9+. Full subcommand details and examples: [`docs\u002Fcommands.md`](docs\u002Fcommands.md).\n\n| Script | Purpose | Key commands |\n|--------|---------|-------------|\n| `bitget_agent_api.py` | Unified API client | Balance, token search, market data (info\u002Fprice\u002Fkline\u002Ftx\u002Frankings\u002Fliquidity\u002Fsecurity), swap flow (quote→confirm→make-order→send→get-order-details) |\n| `order_make_sign_send.py` | One-shot swap execution | makeOrder + sign + send in one run. `--private-key` (EVM) or `--private-key-sol` (Solana). Avoids 60s expiry. |\n| `order_sign.py` | Sign makeOrder data | Outputs JSON array of signatures. Supports raw tx, EVM gasPayMaster (eth_sign), EIP-712, Solana Ed25519, Solana gasPayMaster. |\n| `x402_pay.py` | x402 payment | EIP-3009 signing, Solana partial-sign, HTTP 402 pay flow |\n\n### Quick Reference\n\n```bash\n# Balance (include native token \"\" to check gas)\npython3 scripts\u002Fbitget_agent_api.py get-processed-balance --chain bnb --address \u003Caddr> --contract \"\" --contract \u003Ctoken>\n\n# Market data\npython3 scripts\u002Fbitget_agent_api.py token-price --chain bnb --contract \u003Caddr>\npython3 scripts\u002Fbitget_agent_api.py rankings --name Hotpicks  # or topGainers, topLosers\npython3 scripts\u002Fbitget_agent_api.py security --chain bnb --contract \u003Caddr>\n\n# Swap flow\npython3 scripts\u002Fbitget_agent_api.py quote --from-chain bnb --from-contract \u003Caddr> --from-symbol USDT --from-amount 5 --to-chain bnb --to-contract \"\" --to-symbol BNB --from-address \u003Cwallet> --to-address \u003Cwallet>\npython3 scripts\u002Fbitget_agent_api.py confirm ... --market \u003Cid> --protocol \u003Cproto> --slippage \u003Cval> --feature user_gas\npython3 scripts\u002Forder_make_sign_send.py --private-key-file \u002Ftmp\u002F.pk_evm --order-id \u003Cid> --from-chain bnb ... --market ... --protocol ...\npython3 scripts\u002Fbitget_agent_api.py get-order-details --order-id \u003Cid>\n```\n\n---\n\n## Safety Rules\n\n- **Mnemonic and private keys must never appear in conversation, prompts, logs, or any output.** Only derived **addresses** may be stored in context or shown. Private keys are derived from mnemonic in secure storage, used for signing, and immediately discarded.\n- For large trades, always show the quote first and ask for user confirmation.\n- Present security audit results before recommending any token action.\n","# Bitget Wallet Skill\n\n## API Overview\n\n**How to handle tasks:**\n\n1. **Primary sources:** Use the **Scripts** section in this SKILL and the files under **`docs\u002F`** to decide which commands to run and how. Scripts lists each Python CLI with purpose, subcommands, and when to use them; `docs\u002Fswap.md`, `docs\u002Fwallet-signing.md`, `docs\u002Fmarket-data.md`, etc. describe flows and domain rules.\n2. **Run commands as documented:** Execute the script invocations shown in Scripts (e.g. `python3 scripts\u002Fbitget_agent_api.py ...`, `python3 scripts\u002Forder_sign.py ...`). For swap, balance, wallet, and signing, follow the flows in `docs\u002Fswap.md` and `docs\u002Fwallet-signing.md`.\n\n**Before starting a new swap - two mandatory pre-checks:**\n\n1. **Balance check (required):** Run **`get-processed-balance`** to verify the wallet has enough fromToken balance for the intended swap amount. Include native token (`\"\"`) to check gas availability. If `fromToken balance \u003C fromAmount`, inform the user of the shortfall and **do not proceed**. **Gas mode decision:** If native token balance is sufficient for gas → use `--feature user_gas` (preferred). If native token balance is near zero → use `--feature no_gas` (gasless, gas deducted from fromToken; **requires swap amount ≥ ~$5 USD** — below this threshold the API only returns `user_gas`). This choice must be passed to confirm.\n   ```bash\n   python3 scripts\u002Fbitget_agent_api.py get-processed-balance --chain \u003CfromChain> --address \u003Cwallet> --contract \"\" --contract \u003CfromContract>\n   ```\n\n2. **Token risk check (required):** Run **`check-swap-token`** for the intended fromToken and toToken. If `error_code != 0`, show `msg` and stop. If for any token `data.list[].checkTokenList` is non-empty, show the `tips` content to the user and let them decide whether to continue. If the **toToken** (swap target) has an item with **`waringType` equal to `\"forbidden-buy\"`**, do **not** proceed with the swap and warn the user that this token cannot be used as the swap target.\n   ```bash\n   python3 scripts\u002Fbitget_agent_api.py check-swap-token --from-chain ... --from-contract ... --from-symbol ... --to-chain ... --to-contract ... --to-symbol ...\n   ```\n\n**Swap execution must strictly follow `docs\u002Fswap.md` Flow Overview — no shortcuts:**\n\n1. **Balance check** — verify fromToken + native token balance before anything else\n2. **Token risk check** — check-swap-token for both fromToken and toToken\n3. **Quote** — display **all** market results to user, recommend the first, let user choose\n4. **Confirm** — must display three fields to user: `outAmount` (expected), `minAmount` (minimum), `gasTotalAmount` (gas cost); check `recommendFeatures` for gas sufficiency\n5. **User confirmation** — **do not** sign or send until user explicitly confirms (\"confirm\", \"execute\", \"yes\")\n6. **makeOrder + sign + send** — execute as one atomic operation (use `order_make_sign_send.py`)\n7. **Query status** — check order result; ignore `tips` when status=success\n\nSee Scripts for full command details and `docs\u002Fswap.md` for the complete flow.\n\n**Technical reference:** Base URL `https:\u002F\u002Fcopenapi.bgwapi.io` (token auth, no API key). All commands via `scripts\u002Fbitget_agent_api.py` — run with `--help` for full subcommand list, or see [`docs\u002Fcommands.md`](docs\u002Fcommands.md).\n\n## Domain Knowledge\n\n### Skill Domain Knowledge\n\n#### Version\n\nDate-based versioning (`YYYY.M.DD-N`). Current version in frontmatter. **Check at most once per 7 days:** compare frontmatter version against `https:\u002F\u002Fraw.githubusercontent.com\u002Fbitget-wallet-ai-lab\u002Fbitget-wallet-skill\u002Fmain\u002FCHANGELOG.md`. If newer, inform user and ask to upgrade.\n\n---\n\n### Wallet Domain Knowledge\n\n> **First-time wallet setup & swap configuration:** See [`docs\u002Ffirst-time-setup.md`](docs\u002Ffirst-time-setup.md).\n\n**Key rules (always apply):**\n- Only mnemonic is persisted. Private keys derived on-the-fly, used, discarded immediately.\n- Private keys must never be transmitted externally (APIs, chat, HTTP, webhooks, etc.) — local signing only.\n- Use `--private-key-file` with temp file (`mktemp`). Never pass keys as CLI arguments.\n\n#### Amounts: human-readable only\n\nAll BGW API amount fields use **human-readable values**, not smallest units (wei, lamports, token decimals). In the swap flow, **fromAmount** (and toAmount, etc.) must be the human-readable number (e.g. `0.01` for 0.01 USDT). Do **not** convert to token decimals or wei\u002Flamports. Applies to quote, confirm, makeOrder, and all `toAmount`\u002F`fromAmount` in responses. The `decimals` field in responses is informational only.\n\n#### Native tokens and addresses\n\n- Use empty string `\"\"` as the contract address for native tokens (ETH, SOL, BNB, etc.). Do not use wrapped token addresses (e.g. WETH, WSOL) for native.\n\n#### Common Stablecoin Addresses\n\n**Always use these verified addresses for USDT\u002FUSDC.** Do not guess or generate contract addresses from memory - incorrect addresses cause API errors (`error_code: 80000`, \"get token info failed\").\n\n> **USDT vs USDT0:** On some chains Tether has migrated to USDT0 (omnichain). The same contract addresses work; use the address below for \"USDT\" regardless.\n\n| Chain (code) | USDT (USDT0) | USDC |\n|--------------|--------------|------|\n| Ethereum (`eth`) | `0xdAC17F958D2ee523a2206206994597C13D831ec7` | `0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48` |\n| BNB Chain (`bnb`) | `0x55d398326f99059fF775485246999027B3197955` | `0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d` |\n| Base (`base`) | `0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2` | `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913` |\n| Arbitrum (`arbitrum`) | `0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9` | `0xaf88d065e77c8cC2239327C5EDb3A432268e5831` |\n| Polygon (`matic`) | `0xc2132D05D31c914a87C6611C10748AEb04B58e8F` | `0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359` |\n| Solana (`sol`) | `Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB` | `EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v` |\n| Morph (`morph`) | `0xe7cd86e13AC4309349F30B3435a9d337750fC82D` | `0xCfb1186F4e93D60E60a8bDd997427D1F33bc372B` |\n| Tron (`trx`) | `TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t` | - |\n\n**BGB (Bitget Token):** Ethereum `0x54D2252757e1672EEaD234D27B1270728fF90581`; Morph `0x389C08Bc23A7317000a1FD76c7c5B0cb0b4640b5`.\n\nFor other tokens, use token-info or a block explorer to verify the contract address before calling swap endpoints.\n\n---\n\n### Extended Domain Knowledge\n\nLoad the following when the task requires it:\n\n| Module | File | When to Load |\n|--------|------|--------------|\n| First-Time Setup | [`docs\u002Ffirst-time-setup.md`](docs\u002Ffirst-time-setup.md) | New wallet creation, first swap config, derivation paths |\n| Commands | [`docs\u002Fcommands.md`](docs\u002Fcommands.md) | Full subcommand parameters, usage examples for all scripts |\n| Wallet & Signing | [`docs\u002Fwallet-signing.md`](docs\u002Fwallet-signing.md) | Key management, BIP-39\u002F44, signing, multi-chain |\n| Market Data | [`docs\u002Fmarket-data.md`](docs\u002Fmarket-data.md) | Token info, price, K-line, tx info, rankings, liquidity, security |\n| Swap | [`docs\u002Fswap.md`](docs\u002Fswap.md) | Swap flow, quote\u002Fconfirm\u002FmakeOrder\u002Fsend, slippage, gas, approvals |\n| RWA Stock Trading | [`docs\u002Frwa.md`](docs\u002Frwa.md) | RWA stock discovery, config, market status, order price, holdings |\n| x402 Payments | [`docs\u002Fx402-payments.md`](docs\u002Fx402-payments.md) | HTTP 402, EIP-3009, Permit2, Solana partial-sign |\n\n---\n\n### Common Pitfalls\n\n1. **Chain code:** Use `sol` not `solana`, `bnb` not `bsc`. See **Chain Identifiers** below.\n2. **Batch format:** e.g. `batch-token-info` uses `--tokens \"sol:\u003Caddr1>,eth:\u003Caddr2>\"` (chain:address, comma-separated).\n3. **Stale quotes:** Re-quote if more than ~30 seconds before execute; prices may have moved.\n4. **Insufficient gas:** Swap can fail if the wallet lacks native token for gas. Check balance before proceeding.\n5. **Token approval (EVM):** ERC-20 must be approved for the router; see \"EVM Token Approval\" in `docs\u002Fswap.md`.\n6. **Wallet before balance\u002Fswap:** If no wallet is configured, guide the user through First-Time Wallet Setup (see Wallet Domain Knowledge above).\n7. **Script usage:** Use CLI commands from this SKILL (e.g. `bitget_agent_api.py`, `order_sign.py`).\n8. **Key security:** Derive private keys from mnemonic on-the-fly, pass to `order_sign.py --private-key`, discard immediately after signing. Never store keys or output mnemonic\u002Fkeys to chat.\n9. **Human-readable amounts:** Pass fromAmount etc. as user-facing numbers (e.g. `0.01`), not wei\u002Flamports\u002Fdecimals.\n10. **Security:** Mnemonic and private keys must **never** appear in conversation, prompts, or any output. Only mnemonic **file path** and derived **addresses** may be in context.\n\n---\n\n### Chain Identifiers\n\n**Swap-supported chains (7):**\n\n| Chain | ID | Code |\n|-------|------|------|\n| Ethereum | 1 | eth |\n| Solana | 100278 | sol |\n| BNB Chain | 56 | bnb |\n| Base | 8453 | base |\n| Arbitrum | 42161 | arbitrum |\n| Polygon | 137 | matic |\n| Morph | 100283 | morph |\n| Tron | 728126428 | trx |\n\n\nUse empty string `\"\"` for native token contract (ETH, SOL, BNB, etc.).\n\n---\n\n## Scripts\n\n4 scripts in `scripts\u002F`, Python 3.9+. Full subcommand details and examples: [`docs\u002Fcommands.md`](docs\u002Fcommands.md).\n\n| Script | Purpose | Key commands |\n|--------|---------|-------------|\n| `bitget_agent_api.py` | Unified API client | Balance, token search, market data (info\u002Fprice\u002Fkline\u002Ftx\u002Frankings\u002Fliquidity\u002Fsecurity), swap flow (quote→confirm→make-order→send→get-order-details) |\n| `order_make_sign_send.py` | One-shot swap execution | makeOrder + sign + send in one run. `--private-key` (EVM) or `--private-key-sol` (Solana). Avoids 60s expiry. |\n| `order_sign.py` | Sign makeOrder data | Outputs JSON array of signatures. Supports raw tx, EVM gasPayMaster (eth_sign), EIP-712, Solana Ed25519, Solana gasPayMaster. |\n| `x402_pay.py` | x402 payment | EIP-3009 signing, Solana partial-sign, HTTP 402 pay flow |\n\n### Quick Reference\n\n```bash\n# Balance (include native token \"\" to check gas)\npython3 scripts\u002Fbitget_agent_api.py get-processed-balance --chain bnb --address \u003Caddr> --contract \"\" --contract \u003Ctoken>\n\n# Market data\npython3 scripts\u002Fbitget_agent_api.py token-price --chain bnb --contract \u003Caddr>\npython3 scripts\u002Fbitget_agent_api.py rankings --name Hotpicks  # or topGainers, topLosers\npython3 scripts\u002Fbitget_agent_api.py security --chain bnb --contract \u003Caddr>\n\n# Swap flow\npython3 scripts\u002Fbitget_agent_api.py quote --from-chain bnb --from-contract \u003Caddr> --from-symbol USDT --from-amount 5 --to-chain bnb --to-contract \"\" --to-symbol BNB --from-address \u003Cwallet> --to-address \u003Cwallet>\npython3 scripts\u002Fbitget_agent_api.py confirm ... --market \u003Cid> --protocol \u003Cproto> --slippage \u003Cval> --feature user_gas\npython3 scripts\u002Forder_make_sign_send.py --private-key-file \u002Ftmp\u002F.pk_evm --order-id \u003Cid> --from-chain bnb ... --market ... --protocol ...\npython3 scripts\u002Fbitget_agent_api.py get-order-details --order-id \u003Cid>\n```\n\n---\n\n## Safety Rules\n\n- **Mnemonic and private keys must never appear in conversation, prompts, logs, or any output.** Only derived **addresses** may be stored in context or shown. Private keys are derived from mnemonic in secure storage, used for signing, and immediately discarded.\n- For large trades, always show the quote first and ask for user confirmation.\n- Present security audit results before recommending any token action.\n",{"name":5,"updated":46,"version":47,"description":7},"2026-03-12","2026.3.12-1","main","3df1d0d67b30ff15236561f8c0f9f06d33f42dfd","skills\u002Fwallets\u002Fbitget-official-wallet",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":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add jiayaoqijia\u002Fcryptoskill --skill bitget-wallet",{"tool":63,"command":64},"bunx","bunx skills add jiayaoqijia\u002Fcryptoskill --skill bitget-wallet",{"tool":66,"command":67},"pnpm","pnpm dlx skills add jiayaoqijia\u002Fcryptoskill --skill bitget-wallet","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fwallets\u002Fbitget-official-wallet\u002FSKILL.md",true,[71,77,81,85,89,93,97,101,107,111,115,119,123,127],{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"docs\u002Fcommands.md","REFERENCE","参考文档",10553,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fwallets\u002Fbitget-official-wallet\u002Fdocs\u002Fcommands.md",{"path":78,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":79,"sourceHtmlUrl":80},"docs\u002Ffirst-time-setup.md",2303,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fwallets\u002Fbitget-official-wallet\u002Fdocs\u002Ffirst-time-setup.md",{"path":82,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":83,"sourceHtmlUrl":84},"docs\u002Fmarket-data.md",8321,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fwallets\u002Fbitget-official-wallet\u002Fdocs\u002Fmarket-data.md",{"path":86,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":87,"sourceHtmlUrl":88},"docs\u002Frwa.md",6634,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fwallets\u002Fbitget-official-wallet\u002Fdocs\u002Frwa.md",{"path":90,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":91,"sourceHtmlUrl":92},"docs\u002Fswap.md",18112,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fwallets\u002Fbitget-official-wallet\u002Fdocs\u002Fswap.md",{"path":94,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":95,"sourceHtmlUrl":96},"docs\u002Fwallet-signing.md",11258,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fwallets\u002Fbitget-official-wallet\u002Fdocs\u002Fwallet-signing.md",{"path":98,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":99,"sourceHtmlUrl":100},"docs\u002Fx402-payments.md",8833,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fwallets\u002Fbitget-official-wallet\u002Fdocs\u002Fx402-payments.md",{"path":102,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":105,"sourceHtmlUrl":106},"scripts\u002Fbitget_agent_api.py","SCRIPT","脚本",42641,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fwallets\u002Fbitget-official-wallet\u002Fscripts\u002Fbitget_agent_api.py",{"path":108,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":109,"sourceHtmlUrl":110},"scripts\u002Fkey_utils.py",620,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fwallets\u002Fbitget-official-wallet\u002Fscripts\u002Fkey_utils.py",{"path":112,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":113,"sourceHtmlUrl":114},"scripts\u002Forder_make_sign_send.py",7798,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fwallets\u002Fbitget-official-wallet\u002Fscripts\u002Forder_make_sign_send.py",{"path":116,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":117,"sourceHtmlUrl":118},"scripts\u002Forder_sign.py",30015,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fwallets\u002Fbitget-official-wallet\u002Fscripts\u002Forder_sign.py",{"path":120,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":121,"sourceHtmlUrl":122},"scripts\u002Fx402_pay.py",13622,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fwallets\u002Fbitget-official-wallet\u002Fscripts\u002Fx402_pay.py",{"path":124,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":125,"sourceHtmlUrl":126},"SOURCE.md",190,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fwallets\u002Fbitget-official-wallet\u002FSOURCE.md",{"path":128,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":129,"sourceHtmlUrl":130},"TRUST.auto.yaml",2249,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fwallets\u002Fbitget-official-wallet\u002FTRUST.auto.yaml",[132,142,150,158,166,174],{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":136,"licenseFileUrl":137,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":141},"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":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":136,"licenseFileUrl":146,"sourceHtmlUrl":147,"categories":148,"keywords":149,"publishedAt":141},"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":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":136,"licenseFileUrl":154,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":141},"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":159,"name":160,"nameZh":6,"description":161,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":136,"licenseFileUrl":162,"sourceHtmlUrl":163,"categories":164,"keywords":165,"publishedAt":141},"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":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":136,"licenseFileUrl":170,"sourceHtmlUrl":171,"categories":172,"keywords":173,"publishedAt":141},"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":175,"name":176,"nameZh":6,"description":177,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":136,"licenseFileUrl":178,"sourceHtmlUrl":179,"categories":180,"keywords":181,"publishedAt":141},"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",[],[]]