Spiral gives your agent every tool with one account. Browse the tools →

VS Code · Finance

How to Use GMGN token trades in VS 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.

Prompts to try with GMGN token trades in VS Code

Copy an example into VS Code, or ask in your own words.

Use GMGN token trades to look this up and give me the result as a table. Save the result in ./assets.

GMGN token tradesVS Code
Try asking
  • 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 VS Code

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

Use Spiral's MCP server

  1. Add the hosted server

    Use Add to VS Code on the console's Agents & MCP page, or run:

    code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
  2. Sign in

    VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

Use the Spiral skill

  1. Send VS 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.

    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.

    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: VS Code finds GMGN token trades on Spiral, shows the price and runs it.

GMGN token trades providers and prices

Spiral runs GMGN token trades through Alexandria. Open a card for today's price, with every fee included.

AlexandriaFinance
GMGN · Token trades
gmgn-ai/crypto/token_trades

Settings you can ask for

Ask VS Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Chainsol, eth, base, bsc, tron, or monadsol

Chain slug as gmgn.ai uses it in its URLs (sol, eth, base, bsc, tron, monad). Default sol.

Limit1 to 5050

Trades per page (the site serves 50 per request; smaller pages continue from the last trade returned).

Every API field of GMGN · Token trades is on its tool page: open its card above.

What can you do with GMGN token trades in VS 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.

Questions about GMGN token trades in VS Code

Can VS Code use GMGN token trades?

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

How much does GMGN token trades cost in VS 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 VS Code plan is separate.

Do I need an Alexandria account to use GMGN token trades in VS 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 VS Code?

About two minutes: add the hosted server, then sign in.

Does VS Code wait while GMGN token trades runs?

GMGN token trades runs in the background. VS 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.

Get started

Start using GMGN token trades in VS Code

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into VS Code:

Set up VS Code

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options