gmgn-token
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUse the tool to query token information based on the user's request.
gmgn-cli使用工具根据用户需求查询代币信息。
gmgn-cliSub-commands
子命令
| Sub-command | Description |
|---|---|
| Basic info + realtime price |
| Security metrics (holder concentration, contract risks) |
| Liquidity pool info |
| Top token holders list |
| Top token traders list |
| 子命令 | 描述 |
|---|---|
| 基本信息 + 实时价格 |
| 安全指标(持有者集中度、合约风险) |
| 流动性池信息 |
| 顶级代币持有者列表 |
| 顶级代币交易者列表 |
Supported Chains
支持的链
solbscbasesolbscbasePrerequisites
前置条件
- file with
.envsetGMGN_API_KEY - Run from the directory where your file is located, or set
.envin your environmentGMGN_HOST
- 已设置的
GMGN_API_KEY文件.env - 从存放文件的目录运行,或在环境变量中设置
.envGMGN_HOST
Usage Examples
使用示例
bash
undefinedbash
undefinedBasic token info
基本代币信息
npx gmgn-cli token info --chain sol --address <token_address>
npx gmgn-cli token info --chain sol --address <token_address>
Security metrics
安全指标
npx gmgn-cli token security --chain sol --address <token_address>
npx gmgn-cli token security --chain sol --address <token_address>
Liquidity pool
流动性池
npx gmgn-cli token pool --chain sol --address <token_address>
npx gmgn-cli token pool --chain sol --address <token_address>
Top holders
顶级持有者
npx gmgn-cli token holders --chain sol --address <token_address>
npx gmgn-cli token holders --chain sol --address <token_address> --limit 50
npx gmgn-cli token holders --chain sol --address <token_address>
npx gmgn-cli token holders --chain sol --address <token_address> --limit 50
Top traders
顶级交易者
npx gmgn-cli token traders --chain sol --address <token_address>
npx gmgn-cli token traders --chain sol --address <token_address> --limit 50
npx gmgn-cli token traders --chain sol --address <token_address>
npx gmgn-cli token traders --chain sol --address <token_address> --limit 50
Raw JSON output (for piping)
原始JSON输出(用于管道传输)
npx gmgn-cli token info --chain sol --address <token_address> --raw
undefinednpx gmgn-cli token info --chain sol --address <token_address> --raw
undefinedNotes
注意事项
- All token commands use normal auth (API Key only, no signature required)
- Use to get single-line JSON for further processing
--raw
- 所有代币命令使用普通认证(仅需API Key,无需签名)
- 使用参数获取单行JSON以进行后续处理
--raw