How to Use GMGN trending tokens in Codex
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 Codex
Copy an example into Codex, 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.
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 Codex
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
codex mcp add spiral --url https://api.spiral.ai/mcp
- Sign in
Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.
codex mcp login spiral
Use the Spiral skill
- Send Codex this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- 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: Codex 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.
Settings you can ask for
Ask Codex for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Chain | sol, eth, base, bsc, tron, or monad | sol | Chain slug as gmgn.ai uses it in its URLs (sol, eth, base, bsc, tron, monad). Default sol. |
| Limit | 1 to 100 | 20 | Maximum tokens. |
| Period | 1m, 5m, 1h, 6h, or 24h | 1h | Ranking window. |
| Sort by | swaps, volume, market_cap, liquidity, holder_count, price_change_percent, or open_timestamp | swaps | Ranking field. |
| Direction | desc or asc | desc | 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 Codex?
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.
More on GMGN trending tokens and Codex
Overview
GMGN trending tokens in other agents
Questions about GMGN trending tokens in Codex
Can Codex use GMGN trending tokens?
Yes. Add Spiral to Codex as an MCP server, and Codex can find and run GMGN trending tokens like any built-in tool.
How much does GMGN trending tokens cost in Codex?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.
Do I need an Alexandria account to use GMGN trending tokens in Codex?
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 Codex?
About two minutes: add the hosted server, then sign in.
Does Codex wait while GMGN trending tokens runs?
GMGN trending tokens runs in the background. Codex 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.
Start using GMGN trending tokens in Codex
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Codex:
set up https://spiral.ai/SKILL.md


