一键导入
gdex-token-import
Import user-defined custom tokens so they appear in token details, balances, and portfolio across the platform
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Import user-defined custom tokens so they appear in token details, balances, and portfolio across the platform
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
HyperLiquid perpetual futures — open/close positions, set leverage, place market and limit orders with TP/SL, and manage open orders
CSS theming system for GDEX trading UIs — dark/light modes, trading colors, responsive breakpoints, and Tailwind CSS configuration
Troubleshoot GDEX SDK errors — error codes, encryption debugging, chain-specific quirks, HL gotchas, and copy trade pitfalls
Start here — GDEX overview, architecture, supported chains, available skills, and quickstart for cross-chain DeFi trading via managed-custody wallets
HyperLiquid HIP-3 outcome / event markets — list markets, place outcome orders, and manage outcome positions
Deposit and withdraw USDC to/from HyperLiquid for perpetual futures trading — constraints, amounts, and managed-custody flow
| name | gdex-token-import |
| description | Import user-defined custom tokens so they appear in token details, balances, and portfolio across the platform |
Register a user-defined custom token so it is recognised by the backend's token-details, balances, and portfolio endpoints. Useful for long-tail tokens that are not yet indexed.
@gdexsdk/gdex-skill installed| Method | Path | Purpose |
|---|---|---|
POST | /v1/import_token | Register a user-imported custom token |
import { GdexSkill, buildImportTokenComputedData } from '@gdexsdk/gdex-skill';
const skill = new GdexSkill();
skill.loginWithApiKey(process.env.GDEX_API_KEY!);
// Structured shape — SDK builds computedData internally
await skill.importToken({
tokenAddress: '0xCustomToken',
chainId: 8453,
managed: {
apiKey: process.env.GDEX_API_KEY!,
walletAddress: '0xWallet',
sessionPrivateKey: '0x…',
userId: '0xWallet',
},
});
// Or raw shape — caller pre-built computedData
await skill.importToken({
computedData: buildImportTokenComputedData({
apiKey: process.env.GDEX_API_KEY!,
walletAddress: '0xWallet',
sessionPrivateKey: '0x…',
userId: '0xWallet',
tokenAddress: '0xCustomToken',
chainId: '8453',
}),
chainId: 8453,
});
import_token uses managed-custody encrypted computedData:
ABI ['import_token', [tokenAddress, chainId, nonce]],
sig message import_token-${userId}-${data}.(userId, chain, tokenAddress).getTokenDetails, getBalances, and
getPortfolio will start returning data for the token (subject to
indexer latency).