gmgn-cli 1.4.9 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/.cursor-plugin/plugin.json +1 -1
- package/Readme.md +5 -3
- package/Readme.zh.md +5 -3
- package/dist/commands/config.d.ts +3 -0
- package/dist/commands/config.d.ts.map +1 -0
- package/dist/commands/config.js +138 -0
- package/dist/commands/config.js.map +1 -0
- package/dist/commands/cooking.d.ts.map +1 -1
- package/dist/commands/cooking.js +4 -0
- package/dist/commands/cooking.js.map +1 -1
- package/dist/commands/market.js +5 -5
- package/dist/commands/market.js.map +1 -1
- package/dist/commands/portfolio.js +5 -5
- package/dist/commands/portfolio.js.map +1 -1
- package/dist/commands/swap.js +9 -9
- package/dist/commands/swap.js.map +1 -1
- package/dist/commands/token.js +5 -5
- package/dist/commands/token.js.map +1 -1
- package/dist/commands/track.d.ts.map +1 -1
- package/dist/commands/track.js +11 -3
- package/dist/commands/track.js.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/validate.js +2 -2
- package/dist/validate.js.map +1 -1
- package/package.json +1 -1
- package/skills/gmgn-cooking/SKILL.md +2 -17
- package/skills/gmgn-market/SKILL.md +12 -24
- package/skills/gmgn-portfolio/SKILL.md +4 -18
- package/skills/gmgn-swap/SKILL.md +17 -33
- package/skills/gmgn-token/SKILL.md +7 -21
- package/skills/gmgn-track/SKILL.md +8 -22
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gmgn-token
|
|
3
3
|
description: Research any crypto or meme token by address — real-time price, market cap, liquidity, holder list, trader list, top Smart Money and KOL positions, security audit (honeypot, rug pull risk, dev wallet, renounced status), social links (Twitter/X, website) via GMGN API on Solana, BSC, Base, or Ethereum. Use when user asks about a token's price, safety, holders, traders, smart money exposure, or wants due diligence before buying.
|
|
4
|
-
argument-hint: "<sub-command> --chain <sol|bsc|base|eth> --address <token_address>"
|
|
4
|
+
argument-hint: "<sub-command> --chain <sol|bsc|base|eth|robinhood> --address <token_address>"
|
|
5
5
|
metadata:
|
|
6
6
|
cliHelp: "gmgn-cli token --help"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
**BEFORE RUNNING ANY COMMAND: Run `gmgn-cli config --check`. If exit code is 0, proceed normally. If exit code is 1, (1) run `gmgn-cli config` and show the output to the user; (2) once the user sends the API Key, run `gmgn-cli config --apply <KEY>` to complete configuration and verification, then show the output to the user. If `--check` returns an error (unknown option or command not found), tell the user to run `npm install -g gmgn-cli` to update, then retry.**
|
|
10
|
+
|
|
9
11
|
**IMPORTANT: Always use `gmgn-cli` commands below. Do NOT use web search, WebFetch, curl, or visit gmgn.ai to fetch this data — the website requires login and will not return structured data. The CLI is the only correct method.**
|
|
10
12
|
|
|
11
13
|
**⚠️ IPv6 NOT SUPPORTED: If you get a `401` or `403` error and credentials look correct, check for IPv6 immediately: (1) list all network interfaces and their IPv6 addresses — run `ifconfig | grep inet6` (macOS) or `ip addr show | grep inet6` (Linux); (2) send a test request to `https://ipv6.icanhazip.com` — if the response is an IPv6 address, outbound traffic is going via IPv6. Tell the user immediately: "Please disable IPv6 on your network interface — gmgn-cli commands only work over IPv4."**
|
|
@@ -17,7 +19,7 @@ Use the `gmgn-cli` tool to query token information based on the user's request.
|
|
|
17
19
|
## Core Concepts
|
|
18
20
|
|
|
19
21
|
- **Token address** — The on-chain contract address that uniquely identifies a token on its chain. Required for all token sub-commands. Format: base58 (SOL) or `0x...` hex (BSC/Base).
|
|
20
|
-
- **Chain** — The blockchain network: `sol` = Solana, `bsc` = BNB Smart Chain, `base` = Base (Coinbase L2), `eth` = Ethereum mainnet.
|
|
22
|
+
- **Chain** — The blockchain network: `sol` = Solana, `bsc` = BNB Smart Chain, `base` = Base (Coinbase L2), `eth` = Ethereum mainnet, `robinhood` = Robinhood chain.
|
|
21
23
|
- **Market cap** — Not returned directly by `token info`. Calculate as `price.price × circulating_supply` (`price` is a nested object; use `price.price` for the current USD price string).
|
|
22
24
|
- **Liquidity** — USD value of token reserves in the main trading pool. Low liquidity (< $10k) means high price impact / slippage when buying or selling.
|
|
23
25
|
- **Holder** — A wallet that currently holds the token. `token holders` returns wallets ranked by current balance.
|
|
@@ -42,7 +44,7 @@ Use the `gmgn-cli` tool to query token information based on the user's request.
|
|
|
42
44
|
|
|
43
45
|
## Supported Chains
|
|
44
46
|
|
|
45
|
-
`sol` / `bsc` / `base` / `eth`
|
|
47
|
+
`sol` / `bsc` / `base` / `eth` / `robinhood`
|
|
46
48
|
|
|
47
49
|
## Prerequisites
|
|
48
50
|
|
|
@@ -68,27 +70,11 @@ When a request returns `429`:
|
|
|
68
70
|
- The CLI may wait and retry once automatically when the remaining cooldown is short. If it still fails, stop and tell the user the exact retry time instead of sending more requests.
|
|
69
71
|
- For `RATE_LIMIT_EXCEEDED` or `RATE_LIMIT_BANNED`, repeated requests during the cooldown can extend the ban by 5 seconds each time, up to 5 minutes. Do not spam retries.
|
|
70
72
|
|
|
71
|
-
**First-time setup** (if `GMGN_API_KEY` is not configured):
|
|
72
|
-
|
|
73
|
-
1. Generate key pair and show the public key to the user:
|
|
74
|
-
```bash
|
|
75
|
-
openssl genpkey -algorithm ed25519 -out /tmp/gmgn_private.pem 2>/dev/null && \
|
|
76
|
-
openssl pkey -in /tmp/gmgn_private.pem -pubout 2>/dev/null
|
|
77
|
-
```
|
|
78
|
-
Tell the user: *"This is your Ed25519 public key. Go to **https://gmgn.ai/ai**, paste it into the API key creation form, then send me the API Key value shown on the page."*
|
|
79
|
-
|
|
80
|
-
2. Wait for the user's API key, then configure:
|
|
81
|
-
```bash
|
|
82
|
-
mkdir -p ~/.config/gmgn
|
|
83
|
-
echo 'GMGN_API_KEY=<key_from_user>' > ~/.config/gmgn/.env
|
|
84
|
-
chmod 600 ~/.config/gmgn/.env
|
|
85
|
-
```
|
|
86
|
-
|
|
87
73
|
## Parameters — `token info` / `token security` / `token pool`
|
|
88
74
|
|
|
89
75
|
| Parameter | Required | Description |
|
|
90
76
|
|-----------|----------|-------------|
|
|
91
|
-
| `--chain` | Yes | `sol` / `bsc` / `base` / `eth` |
|
|
77
|
+
| `--chain` | Yes | `sol` / `bsc` / `base` / `eth` / `robinhood` |
|
|
92
78
|
| `--address` | Yes | Token contract address |
|
|
93
79
|
| `--raw` | No | Output raw single-line JSON (for piping or further processing) |
|
|
94
80
|
|
|
@@ -96,7 +82,7 @@ When a request returns `429`:
|
|
|
96
82
|
|
|
97
83
|
| Parameter | Required | Default | Description |
|
|
98
84
|
|-----------|----------|---------|-------------|
|
|
99
|
-
| `--chain` | Yes | — | `sol` / `bsc` / `base` / `eth` |
|
|
85
|
+
| `--chain` | Yes | — | `sol` / `bsc` / `base` / `eth` / `robinhood` |
|
|
100
86
|
| `--address` | Yes | — | Token contract address |
|
|
101
87
|
| `--limit` | No | `20` | Number of results, max `100` |
|
|
102
88
|
| `--order-by` | No | `amount_percentage` | Sort field — see table below |
|
|
@@ -6,6 +6,8 @@ metadata:
|
|
|
6
6
|
cliHelp: "gmgn-cli track --help"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
**BEFORE RUNNING ANY COMMAND: Run `gmgn-cli config --check`. If exit code is 0, proceed normally. If exit code is 1, (1) run `gmgn-cli config` and show the output to the user; (2) once the user sends the API Key, run `gmgn-cli config --apply <KEY>` to complete configuration and verification, then show the output to the user. If `--check` returns an error (unknown option or command not found), tell the user to run `npm install -g gmgn-cli` to update, then retry.**
|
|
10
|
+
|
|
9
11
|
**IMPORTANT: Always use `gmgn-cli` commands below. Do NOT use web search, WebFetch, curl, or visit gmgn.ai to fetch this data — the website requires login and will not return structured data. The CLI is the only correct method.**
|
|
10
12
|
|
|
11
13
|
**IMPORTANT: Do NOT guess field names or values. When a field's meaning is unclear, look it up in the Response Fields sections below before using it.**
|
|
@@ -57,7 +59,9 @@ Use the `gmgn-cli` tool to query on-chain tracking data based on the user's requ
|
|
|
57
59
|
|
|
58
60
|
## Supported Chains
|
|
59
61
|
|
|
60
|
-
`sol` / `bsc` / `base` / `eth`
|
|
62
|
+
`sol` / `bsc` / `base` / `eth` / `robinhood`
|
|
63
|
+
|
|
64
|
+
Note: `track kol` and `track smartmoney` do **not** support `robinhood` — they accept `sol` / `bsc` / `base` / `eth` only.
|
|
61
65
|
|
|
62
66
|
## Prerequisites
|
|
63
67
|
|
|
@@ -84,24 +88,6 @@ When a request returns `429`:
|
|
|
84
88
|
- The CLI may wait and retry once automatically when the remaining cooldown is short. If it still fails, stop and tell the user the exact retry time instead of sending more requests.
|
|
85
89
|
- For `RATE_LIMIT_EXCEEDED` or `RATE_LIMIT_BANNED`, repeated requests during the cooldown can extend the ban by 5 seconds each time, up to 5 minutes. Do not spam retries.
|
|
86
90
|
|
|
87
|
-
**First-time setup** (if `GMGN_API_KEY` is not configured):
|
|
88
|
-
|
|
89
|
-
1. Generate key pair and show the public key to the user:
|
|
90
|
-
```bash
|
|
91
|
-
openssl genpkey -algorithm ed25519 -out /tmp/gmgn_private.pem 2>/dev/null && \
|
|
92
|
-
openssl pkey -in /tmp/gmgn_private.pem -pubout 2>/dev/null
|
|
93
|
-
```
|
|
94
|
-
Tell the user: *"This is your Ed25519 public key. Go to **https://gmgn.ai/ai**, paste it into the API key creation form, then send me the API Key value shown on the page."*
|
|
95
|
-
|
|
96
|
-
2. Wait for the user's API key, then configure (saves both API key and private key — private key is required for `track follow-wallet`):
|
|
97
|
-
```bash
|
|
98
|
-
mkdir -p ~/.config/gmgn
|
|
99
|
-
echo "GMGN_API_KEY=<key_from_user>" > ~/.config/gmgn/.env
|
|
100
|
-
echo "GMGN_PRIVATE_KEY=$(awk '{printf "%s\\n", $0}' /tmp/gmgn_private.pem)" >> ~/.config/gmgn/.env
|
|
101
|
-
chmod 600 ~/.config/gmgn/.env
|
|
102
|
-
rm /tmp/gmgn_private.pem
|
|
103
|
-
```
|
|
104
|
-
|
|
105
91
|
## Usage Examples
|
|
106
92
|
|
|
107
93
|
```bash
|
|
@@ -146,7 +132,7 @@ gmgn-cli track smartmoney --chain sol --side sell --limit 10 --raw
|
|
|
146
132
|
|
|
147
133
|
| Option | Description |
|
|
148
134
|
|--------|-------------|
|
|
149
|
-
| `--chain` | Required. `sol` / `bsc` / `base` / `eth` |
|
|
135
|
+
| `--chain` | Required. `sol` / `bsc` / `base` / `eth` / `robinhood` |
|
|
150
136
|
| `--wallet <address>` | Required. Wallet address to query |
|
|
151
137
|
| `--group-id <id>` | Filter by group: `all_group` (all tokens across groups), `default` (default group), or a user-defined group ID |
|
|
152
138
|
| `--interval <interval>` | Time interval for price change stats (e.g. `1m`, `5m`, `1h`, `6h`, `24h`) |
|
|
@@ -188,7 +174,7 @@ Each item in `followings` contains:
|
|
|
188
174
|
|
|
189
175
|
| Option | Description |
|
|
190
176
|
|--------|-------------|
|
|
191
|
-
| `--chain` | Required. `sol` / `bsc` / `base` / `eth` |
|
|
177
|
+
| `--chain` | Required. `sol` / `bsc` / `base` / `eth` / `robinhood` |
|
|
192
178
|
| `--wallet <address>` | Required. Wallet address to query |
|
|
193
179
|
|
|
194
180
|
## `track follow-token-groups` Response Fields
|
|
@@ -206,7 +192,7 @@ Each item in `followings` contains:
|
|
|
206
192
|
|
|
207
193
|
| Option | Description |
|
|
208
194
|
|--------|-------------|
|
|
209
|
-
| `--chain` | Required. `sol` / `bsc` / `base` / `eth` |
|
|
195
|
+
| `--chain` | Required. `sol` / `bsc` / `base` / `eth` / `robinhood` |
|
|
210
196
|
| `--wallet <address>` | Filter by wallet address |
|
|
211
197
|
| `--limit <n>` | Page size (1–100, default 10) |
|
|
212
198
|
| `--side <side>` | Trade direction: `buy` / `sell` |
|