[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [GMGN token trades](https://spiral.ai/integrations/muse-code/gmgn-token-trades)

# How to Use GMGN token trades in Muse Code

Returns recent token transactions with buy or sell direction, amounts, timestamps, and transaction references. Use it to inspect the activity behind a market move.

|  |  |
| --- | --- |
| Model | GMGN token trades |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with GMGN token trades in Muse Code

- Use GMGN token trades to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from GMGN token trades and tell me what changed since last week.
- Check GMGN token trades and summarize what you find in three bullet points.
- Pull the newest data from GMGN token trades and give me the result as a table.
- Check GMGN token trades every morning and tell me only when something changed.

## How to set up GMGN token trades in Muse Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
muse mcp login spiral
```

### Use the Spiral skill

1. **Send Muse Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run GMGN token trades**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "gmgn-ai/crypto/token_trades",
    "input": {
      "address": "<address>"
    }
  }'
```

Then paste one of the prompts above: Muse Code finds GMGN token trades on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse-code

## GMGN token trades tools and prices

- [GMGN · Token trades](https://spiral.ai/tools/alexandria/gmgn-ai/crypto/token_trades) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| chain | sol, eth, base, bsc, tron, monad | sol | Chain slug as gmgn.ai uses it in its URLs (sol, eth, base, bsc, tron, monad). Default sol. |
| limit | 1 to 50 | 50 | Trades per page (the site serves 50 per request; smaller pages continue from the last trade returned). |
| continuation |  | — | Opaque cursor from a previous call's `next_continuation`; omit for the first page. |

## What can you do with GMGN token trades in Muse Code?

Build a GMGN research view that puts token market activity, launch records, ownership, and discussion beside each other. A coding agent can turn the returned data into project components and comparison reports.

### New-launch research brief

Discover recent pairs, resolve their contracts, and prepare a brief combining token details, candles, transactions, ownership, trader outcomes, early buyers, developer launches, and community discussion.

### Daily token research digest

Combine newly discovered launches with an existing token watchlist. Report market changes, supply distribution, trading outcomes, early-buyer positions, developer activity, and discussion themes for an internal research meeting.

### Discussion and market activity comparison

Resolve tokens mentioned in community discussion, summarize the main claims, and compare those themes with token details, candles, and recent transactions.

### Market-move review

Examine a sharp price move using candles, transactions, holder distribution, trader outcomes, early-buyer positions, and community discussion. Produce a research timeline without assigning motives to wallet owners.

### Token market dashboard

Build a dashboard that adds recent pairs, resolves names to contracts, displays token summaries, and charts candles beside the transaction feed.

### Launch cohort research

Collect a cohort of newly discovered token contracts and revisit their market activity, ownership, trading outcomes, early buyers, developer records, and community discussion. Compare how the launches develop over the observation period.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Muse Code guides](https://spiral.ai/integrations/muse-code)

## GMGN token trades in other agents

- [Amp](https://spiral.ai/integrations/amp/gmgn-token-trades)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/gmgn-token-trades)
- [Claude](https://spiral.ai/integrations/claude-desktop/gmgn-token-trades)
- [Claude Code](https://spiral.ai/integrations/claude-code/gmgn-token-trades)
- [Cline](https://spiral.ai/integrations/cline/gmgn-token-trades)
- [Codex](https://spiral.ai/integrations/codex/gmgn-token-trades)
- [Cursor](https://spiral.ai/integrations/cursor/gmgn-token-trades)
- [Devin](https://spiral.ai/integrations/devin/gmgn-token-trades)
- [dots](https://spiral.ai/integrations/dots/gmgn-token-trades)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/gmgn-token-trades)
- [Gemini](https://spiral.ai/integrations/gemini/gmgn-token-trades)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/gmgn-token-trades)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/gmgn-token-trades)
- [goose](https://spiral.ai/integrations/goose/gmgn-token-trades)
- [Grok](https://spiral.ai/integrations/grok/gmgn-token-trades)
- [Grok Build](https://spiral.ai/integrations/grok-build/gmgn-token-trades)
- [Hermes](https://spiral.ai/integrations/hermes/gmgn-token-trades)
- [Instinct](https://spiral.ai/integrations/instinct/gmgn-token-trades)
- [Manus](https://spiral.ai/integrations/manus/gmgn-token-trades)
- [Muse](https://spiral.ai/integrations/muse/gmgn-token-trades)
- [n8n](https://spiral.ai/integrations/n8n/gmgn-token-trades)
- [Notion](https://spiral.ai/integrations/notion/gmgn-token-trades)
- [OpenClaw](https://spiral.ai/integrations/openclaw/gmgn-token-trades)
- [opencode](https://spiral.ai/integrations/opencode/gmgn-token-trades)
- [Perplexity](https://spiral.ai/integrations/perplexity/gmgn-token-trades)
- [Raycast](https://spiral.ai/integrations/raycast/gmgn-token-trades)
- [VS Code](https://spiral.ai/integrations/vscode/gmgn-token-trades)
- [Windsurf](https://spiral.ai/integrations/windsurf/gmgn-token-trades)
- [Zapier](https://spiral.ai/integrations/zapier/gmgn-token-trades)

## More Muse Code guides

- [GMGN token trader profits](https://spiral.ai/integrations/muse-code/gmgn-token-trader-profits)
- [GMGN trending tokens](https://spiral.ai/integrations/muse-code/gmgn-trending-tokens)
- [GMGN token search](https://spiral.ai/integrations/muse-code/gmgn-token-search)
- [GMGN wallet performance](https://spiral.ai/integrations/muse-code/gmgn-wallet-performance)
- [GMGN token price and market cap candles](https://spiral.ai/integrations/muse-code/gmgn-token-price-and-market-cap-candles)
- [GMGN wallet rankings](https://spiral.ai/integrations/muse-code/gmgn-wallet-rankings)

## Questions about GMGN token trades in Muse Code

**Can Muse Code use GMGN token trades?**

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run GMGN token trades like any built-in tool.

**How much does GMGN token trades cost in Muse Code?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Muse Code plan is separate.

**Do I need an Alexandria account to use GMGN token trades in Muse Code?**

No. Spiral runs GMGN token trades on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up GMGN token trades in Muse Code?**

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

**Does Muse Code wait while GMGN token trades runs?**

GMGN token trades runs in the background. Muse Code starts the run, checks on it and gives you the json when it's ready.

**Which blockchains does the documented GMGN data cover?**

The documented coverage includes six chains: Solana, Ethereum, Base, BNB Smart Chain, Tron, and Monad.

**How fresh is GMGN’s transaction data?**

GMGN describes its latest transaction information as updating in real time. That description applies to transaction activity, rather than establishing a refresh schedule for every GMGN dataset.

**What does GMGN mean by early buyers?**

GMGN’s early-buyer display examines the first 70 buyers. It separates them by holding and selling status, so early participation and current ownership can be examined separately.

**Can GMGN show a token developer’s previous launches?**

GMGN’s developer token view lists tokens created by the same developer address. This gives an address-level launch record rather than a verified history of a person or company.

