gmgn-cli 1.1.5 → 1.1.6

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/Readme.md CHANGED
@@ -30,6 +30,8 @@ With GMGN Agent Skills, you can use AI agents to query real-time trending token
30
30
 
31
31
  Ready to install skills? [Jump to Installation →](#get-started)
32
32
 
33
+ Already installed? [Update Skills and CLI →](#9-upgrade-skills-and-cli)
34
+
33
35
  > **Tip:** If your AI agent tries to open or scrape the gmgn.ai website instead of using the CLI, add this to your prompt:
34
36
  > ```
35
37
  > Use gmgn-cli commands. Do not call gmgn.ai web endpoints directly.
@@ -51,7 +51,7 @@ export function registerTokenCommands(program) {
51
51
  .option("--limit <n>", "Number of results (default 20, max 100)", parseInt)
52
52
  .option("--order-by <field>", "Sort field: amount_percentage / profit / unrealized_profit / buy_volume_cur / sell_volume_cur", "amount_percentage")
53
53
  .option("--direction <dir>", "Sort direction: asc / desc", "desc")
54
- .option("--tag <tag>", "Wallet tag filter: renowned / smart_degen", "renowned")
54
+ .option("--tag <tag>", "Wallet tag filter: renowned / smart_degen")
55
55
  .option("--raw", "Output raw JSON")
56
56
  .action(async (opts) => {
57
57
  validateChain(opts.chain);
@@ -77,7 +77,7 @@ export function registerTokenCommands(program) {
77
77
  .option("--limit <n>", "Number of results (default 20, max 100)", parseInt)
78
78
  .option("--order-by <field>", "Sort field: amount_percentage / profit / unrealized_profit / buy_volume_cur / sell_volume_cur", "amount_percentage")
79
79
  .option("--direction <dir>", "Sort direction: asc / desc", "desc")
80
- .option("--tag <tag>", "Wallet tag filter: renowned / smart_degen", "renowned")
80
+ .option("--tag <tag>", "Wallet tag filter: renowned / smart_degen")
81
81
  .option("--raw", "Output raw JSON")
82
82
  .action(async (opts) => {
83
83
  validateChain(opts.chain);
@@ -1 +1 @@
1
- {"version":3,"file":"token.js","sourceRoot":"","sources":["../../src/commands/token.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,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,CAAC,SAAS,CAAC;QACxD,IAAI,IAAI,CAAC,GAAG;YAAE,KAAK,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC;QACtC,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,SAAS,EAAE,CAAC,CAAC;QAC9C,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,kBAAkB,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QACjG,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC,CAAC,CAAC;AACP,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gmgn-cli",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "GMGN OpenAPI CLI — call GMGN market, token, portfolio and swap APIs from the command line",
5
5
  "type": "module",
6
6
  "bin": {
@@ -6,6 +6,8 @@ argument-hint: "kline --chain <sol|bsc|base> --address <token_address> --resolut
6
6
 
7
7
  **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.**
8
8
 
9
+ **⚠️ IPv6 NOT SUPPORTED: GMGN CLI commands do not support IPv6. If you get a `401` or `403` error and credentials look correct, the outbound connection is likely going via IPv6. Run `curl -s https://api64.ipify.org` to check — if the result is an IPv6 address, tell the user to ensure their network routes requests over IPv4.**
10
+
9
11
  Use the `gmgn-cli` tool to query K-line data for a token, browse trending tokens, or view Trenches token lists.
10
12
 
11
13
  ## Sub-commands
@@ -6,6 +6,8 @@ argument-hint: "<info|holdings|activity|stats|token-balance> [--chain <sol|bsc|b
6
6
 
7
7
  **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.**
8
8
 
9
+ **⚠️ IPv6 NOT SUPPORTED: GMGN CLI commands do not support IPv6. If you get a `401` or `403` error and credentials look correct, the outbound connection is likely going via IPv6. Run `curl -s https://api64.ipify.org` to check — if the result is an IPv6 address, tell the user to ensure their network routes requests over IPv4.**
10
+
9
11
  Use the `gmgn-cli` tool to query wallet portfolio data based on the user's request.
10
12
 
11
13
  ## Sub-commands
@@ -6,6 +6,21 @@ argument-hint: "[--chain <chain> --from <wallet> --input-token <addr> --output-t
6
6
 
7
7
  **IMPORTANT: Always use `gmgn-cli` commands below. Do NOT use web search, WebFetch, curl, or visit gmgn.ai — all swap operations must go through the CLI. The CLI handles signing and submission automatically.**
8
8
 
9
+ **⚠️ IPv6 NOT SUPPORTED: GMGN CLI commands do not support IPv6. If you get a `401` or `403` error and credentials look correct, the outbound connection is likely going via IPv6. Run `curl -s https://api64.ipify.org` to check — if the result is an IPv6 address, tell the user to ensure their network routes requests over IPv4.**
10
+
11
+ ## ⚠️ IPv6 Not Supported — CRITICAL
12
+
13
+ **The `swap` sub-command does NOT support IPv6. Requests MUST go out over IPv4.**
14
+
15
+ If you receive a `401` or `403` error, the **first thing to check** is whether the machine is sending requests via IPv6. This is a known cause of auth failures even with valid credentials.
16
+
17
+ **How to diagnose:**
18
+ ```bash
19
+ curl -s https://api64.ipify.org # shows your outbound IP — if it's an IPv6 address, that's the problem
20
+ ```
21
+
22
+ **Rule for AI models:** If `swap` or `order` commands return 401/403 and credentials look correct — stop and tell the user: "Your outbound connection may be using IPv6, which is not supported by this command. Please check your network configuration and ensure requests go out over IPv4."
23
+
9
24
  Use the `gmgn-cli` tool to submit a token swap or query an existing order. **Requires private key** (`GMGN_PRIVATE_KEY` in `.env`).
10
25
 
11
26
  ## Financial Risk Notice
@@ -6,6 +6,8 @@ argument-hint: "<sub-command> --chain <sol|bsc|base> --address <token_address>"
6
6
 
7
7
  **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.**
8
8
 
9
+ **⚠️ IPv6 NOT SUPPORTED: GMGN CLI commands do not support IPv6. If you get a `401` or `403` error and credentials look correct, the outbound connection is likely going via IPv6. Run `curl -s https://api64.ipify.org` to check — if the result is an IPv6 address, tell the user to ensure their network routes requests over IPv4.**
10
+
9
11
  Use the `gmgn-cli` tool to query token information based on the user's request.
10
12
 
11
13
  ## Sub-commands
@@ -45,7 +47,7 @@ Use the `gmgn-cli` tool to query token information based on the user's request.
45
47
  | `--limit` | No | `20` | Number of results, max `100` |
46
48
  | `--order-by` | No | `amount_percentage` | Sort field — see table below |
47
49
  | `--direction` | No | `desc` | Sort direction: `asc` / `desc` |
48
- | `--tag` | No | `renowned` | Wallet filter: `renowned` (KOL wallets) / `smart_degen` (smart money) |
50
+ | `--tag` | No | | Wallet filter: `renowned` (KOL wallets) / `smart_degen` (smart money). Omit to return all wallets. |
49
51
  | `--raw` | No | — | Output raw single-line JSON |
50
52
 
51
53
  ### `--order-by` Values
@@ -6,6 +6,21 @@ argument-hint: "<follow-wallet|kol|smartmoney> [--chain <sol|bsc|base>] [--walle
6
6
 
7
7
  **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.**
8
8
 
9
+ **⚠️ IPv6 NOT SUPPORTED: GMGN CLI commands do not support IPv6. If you get a `401` or `403` error and credentials look correct, the outbound connection is likely going via IPv6. Run `curl -s https://api64.ipify.org` to check — if the result is an IPv6 address, tell the user to ensure their network routes requests over IPv4.**
10
+
11
+ ## ⚠️ IPv6 Not Supported — CRITICAL
12
+
13
+ **The `track follow-wallet` sub-command does NOT support IPv6. Requests MUST go out over IPv4.**
14
+
15
+ This sub-command is known to fail with `401` or `403` when the outbound connection uses IPv6 — even when credentials are valid.
16
+
17
+ **How to diagnose:**
18
+ ```bash
19
+ curl -s https://api64.ipify.org # if result is an IPv6 address, that's the problem
20
+ ```
21
+
22
+ **Rule for AI models:** If `track follow-wallet` returns 401/403 and credentials look correct — stop and tell the user: "Your outbound connection may be using IPv6, which is not supported by this command. Please check your network configuration and ensure requests go out over IPv4."
23
+
9
24
  Use the `gmgn-cli` tool to query on-chain tracking data based on the user's request.
10
25
 
11
26
  **When to use which sub-command:**
@@ -85,6 +100,54 @@ gmgn-cli track smartmoney --chain sol --side sell --limit 10 --raw
85
100
  | `--limit <n>` | Page size (1–200, default 100) |
86
101
  | `--side <side>` | Filter by trade direction: `buy` / `sell` (client-side filter — applied locally after fetching results) |
87
102
 
103
+ ## `track follow-wallet` Response Fields
104
+
105
+ Top-level fields:
106
+
107
+ | Field | Description |
108
+ |-------|-------------|
109
+ | `next_page_token` | Opaque token for fetching the next page of results |
110
+ | `list` | Array of trade records |
111
+
112
+ Each item in `list` contains:
113
+
114
+ | Field | Description |
115
+ |-------|-------------|
116
+ | `id` | Record ID (base64-encoded, use as cursor) |
117
+ | `chain` | Chain name (e.g. `sol`) |
118
+ | `transaction_hash` | On-chain transaction hash |
119
+ | `maker` | Wallet address of the followed wallet |
120
+ | `side` | Trade direction: `buy` or `sell` |
121
+ | `base_address` | Token contract address |
122
+ | `quote_address` | Quote token address (SOL native address for buys/sells on SOL) |
123
+ | `base_amount` | Token quantity in smallest unit |
124
+ | `quote_amount` | Quote token amount spent / received (e.g. SOL) |
125
+ | `amount_usd` | Trade value in USD |
126
+ | `cost_usd` | Same as `amount_usd` — USD value of this transaction leg |
127
+ | `buy_cost_usd` | Original buy cost in USD (`0` if this record is the buy itself) |
128
+ | `price` | Token price denominated in quote token at time of trade |
129
+ | `price_usd` | Token price in USD at time of trade |
130
+ | `price_now` | Token current price in USD |
131
+ | `price_change` | Price change ratio since trade time (e.g. `6.66` = +666%) |
132
+ | `timestamp` | Unix timestamp of the trade |
133
+ | `is_open_or_close` | `1` = full position open or close; `0` = partial add or reduce |
134
+ | `launchpad` | Launchpad display name (e.g. `Pump.fun`) |
135
+ | `launchpad_platform` | Launchpad platform identifier (e.g. `Pump.fun`, `pump_agent`) |
136
+ | `migrated_pool_exchange` | DEX the token migrated to, if any (e.g. `pump_amm`); empty if not migrated |
137
+ | `base_token.symbol` | Token ticker symbol |
138
+ | `base_token.logo` | Token logo image URL |
139
+ | `base_token.hot_level` | Hotness level (`0` = normal, higher = trending) |
140
+ | `base_token.total_supply` | Total token supply (string) |
141
+ | `base_token.token_create_time` | Unix timestamp when token was created |
142
+ | `base_token.token_open_time` | Unix timestamp when trading opened (`0` if not yet migrated/opened) |
143
+ | `maker_info.address` | Followed wallet address |
144
+ | `maker_info.name` | Wallet display name |
145
+ | `maker_info.twitter_username` | Twitter / X username |
146
+ | `maker_info.twitter_name` | Twitter / X display name |
147
+ | `maker_info.tags` | Array of wallet tags (e.g. `["kol","gmgn"]`) |
148
+ | `maker_info.tag_rank` | Map of tag → rank within that category (e.g. `{"kol": 854}`) |
149
+ | `balance_info` | Wallet token balance info; `null` if not available |
150
+
88
151
  ## `track kol` / `track smartmoney` Response Fields
89
152
 
90
153
  Each item in `list` contains: