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

opencode · Finance

How to Use GMGN trending tokens in opencode

Returns ranked tokens with market data such as volume, liquidity, market cap, holder counts, and price changes. Use it to build a market shortlist before investigating individual tokens.

Prompts to try with GMGN trending tokens in opencode

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

Use GMGN trending tokens to fetch the top 20 Solana tokens by one-hour volume, then add a table of liquidity, volume, market cap, and holder counts to this project's research dashboard.

GMGN trending tokensopencode
Try asking
  • Use GMGN trending tokens for Base over one hour and 24 hours, then add a comparison of tokens appearing in both volume-ranked lists.

  • Use GMGN trending tokens to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from GMGN trending tokens and tell me what changed since last week.

  • Check GMGN trending tokens and summarize what you find in three bullet points.

How to set up GMGN trending tokens in opencode

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

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode 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 trending tokens

    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/trending_tokens",
        "input": {
          "chain": "sol"
        }
      }'

Then paste one of the prompts above: opencode finds GMGN trending tokens on Spiral, shows the price and runs it.

GMGN trending tokens providers and prices

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

AlexandriaFinance
GMGN · Trending tokens
gmgn-ai/crypto/trending_tokens

Settings you can ask for

Ask opencode 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 10020

Maximum tokens.

Period1m, 5m, 1h, 6h, or 24h1h

Ranking window.

Sort byswaps, volume, market_cap, liquidity, holder_count, price_change_percent, or open_timestampswaps

Ranking field.

Directiondesc or ascdesc

direction

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

What can you do with GMGN trending tokens in opencode?

Build an internal GMGN research dashboard with token liquidity, aggregate wallet performance, and public treasury summaries. Add comparisons across observation times and measurement windows so analysts can see what changed.

Internal market dashboard

Combine token liquidity and volume, aggregate wallet leaderboard statistics, and a public treasury's wallet performance in one research view.

Morning research brief

Prepare an internal briefing with the most active tokens, the distribution of ranked wallet returns, and a separate performance summary for a public organization wallet.

Compare short and long windows

Compare short-window token activity with longer-window trends. Separately compare seven-day and 30-day wallet performance to identify results that depend heavily on the measurement window.

Review changes in a research watchlist

Compare successive observations of token liquidity, aggregate leaderboard performance, and a public treasury's reported profit figures. Flag changes for an analyst's review.

Screen token liquidity

Build a token shortlist using reported liquidity, volume, and holder counts. Show those measures together so a busy market does not get judged by transaction count alone.

Questions about GMGN trending tokens in opencode

Can opencode use GMGN trending tokens?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run GMGN trending tokens like any built-in tool.

How much does GMGN trending tokens cost in opencode?

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

Do I need an Alexandria account to use GMGN trending tokens in opencode?

No. Spiral runs GMGN trending tokens 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 trending tokens in opencode?

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

Does opencode wait while GMGN trending tokens runs?

GMGN trending tokens runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

What activity does GMGN measure?

GMGN covers activity generated by compatible third-party blockchain applications. Its token and wallet statistics describe the blockchain activity the platform monitors.

Where does GMGN get its data?

GMGN says its on-chain transaction data and token security information come from multiple third-party providers. Alexandria reads the anonymous JSON API behind GMGN's terminal.

Are GMGN security indicators immediately current?

GMGN warns that honeypot detection information can appear with a delay. A displayed security indicator therefore does not establish the contract's current state.

Does a favorable security check prove a token is safe?

No. GMGN explicitly says its token security checks cannot guarantee 100% accuracy and recommends comparing multiple security tools.

What reuse does GMGN's standard license cover?

GMGN's standard license permits reproducing portions of its services for personal or internal business purposes, subject to its agreement.

Get started

Start using GMGN trending tokens in opencode

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

Paste this into opencode:

Set up opencode

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