Mynt Agent API
AI-powered DeFi intelligence. 22 pay-per-call endpoints. Dual payment rail: x402 + MPP.
# Introduction
Mynt Agent is a DeFi intelligence API on Solana. Every endpoint fetches real on-chain data, runs it through a 6-model LLM cascade (OpenRouter + Venice AI), and returns structured trading signals — never raw JSON. Zero credentials, no subscriptions. Payment is the only gate.
22
Endpoints
3
Networks
$0.001
From
<3s
Latency
Base URL
https://mpp.myntagent.funEvery response includes:
{
"data": { ... }, // structured on-chain data
"insight": "AI analysis", // 1-2 sentence actionable insight
"signal": "snipe", // decision signal (snipe/watch/avoid/follow/rebalance)
"confidence": 0.91, // LLM confidence (0-1)
"sources": ["pumpportal", "solana-rpc"],
"model_used": "claude-3.5-haiku",
"latency_ms": 2140,
"timestamp": "2026-04-03T12:00:00Z"
}# Endpoints
24 endpoints across 4 segments. x402 paths use the base URL, MPP paths use /mpp/* prefix.
Trenchers (7)
/trenches/new-tokensReal-time PumpFun token launches with AI snipe signal
/trenches/curve/{mint}Bonding curve progress — graduation ETA, SOL reserves
/trenches/token/{mint}Token metadata — top holders, mint/freeze authority
/trenches/token/{mint}/snipersSniper detection — wallets that bought in first blocks
/trenches/graduatingTokens near bonding curve graduation (>70%)
/trenches/bags/new-tokensNew tokens from Bags.fm (Meteora DBC)
/trenches/token/{mint}/verdictFull AI verdict — holders, snipers, curve, risk
Traders (6)
/traders/wallet/{address}/pnlWallet PnL — portfolio value, holdings, win rate
/traders/wallet/{address}/positionsCurrent token positions with USD values
/traders/top-walletsTop performing wallets leaderboard
/traders/token/{mint}/whalesWhale holders — top holders with % of supply
/traders/token/{mint}/ohlcvToken price + transaction activity data
/traders/wallet/{address}/intel30-day wallet intelligence — trading patterns, archetype
LPs (6)
/lp/meteora/poolsMeteora DLMM pool list — APR, TVL, volume, fees
/lp/meteora/pools/recommendAI pool recommendation for a token pair
/lp/meteora/pools/{address}Deep analytics for a specific pool
/lp/wallet/{address}/positionsLP positions for a wallet
/lp/positions/{id}/rebalanceRebalance signal for an LP position
/lp/meteora/pools/strategyFull LP strategy brief — best pool + range + APR
DeFi + Meta (3)
/defi/tvlTotal Value Locked across chains
/defi/yieldsTop yield pools multi-chain sorted by APY
/askNatural language DeFi query — AI orchestrates all sources
# x402 Payment
All endpoints on base paths use the x402 protocol. Zero credentials — you pay in USDC per request. Gas is sponsored by the Dexter facilitator.
The Flow
- 1.Send a request to any endpoint (e.g. GET /defi/tvl).
- 2.Server responds with 402 Payment Required + payment details (amount, asset, payTo).
- 3.Sign the payment with your Solana wallet using @x402/fetch or @x402/svm.
- 4.Resend the request with the signed X-PAYMENT header.
- 5.Payment settles via Dexter — you receive AI-analyzed data.
Client-side (Node.js / Browser)
npm install @x402/fetch @x402/svm @solana/kit @scure/baseimport { x402Client, wrapFetchWithPayment } from "@x402/fetch";
import { registerExactSvmScheme } from "@x402/svm/exact/client";
import { toClientSvmSigner } from "@x402/svm";
import { createKeyPairSignerFromBytes } from "@solana/kit";
import { base58 } from "@scure/base";
const keypair = await createKeyPairSignerFromBytes(
base58.decode(process.env.SOLANA_PRIVATE_KEY!)
);
const signer = toClientSvmSigner(keypair);
const client = new x402Client();
registerExactSvmScheme(client, { signer });
const fetchWithPay = wrapFetchWithPayment(fetch, client);
// Payment is handled automatically
const res = await fetchWithPay("https://mpp.myntagent.fun/defi/tvl");
const data = await res.json();
console.log(data.signal); // "high_yield"
console.log(data.insight); // "Solana TVL up 12% this week..."
console.log(data.confidence); // 0.87Manual flow (cURL)
# Step 1: Get payment requirements
curl -s https://mpp.myntagent.fun/defi/tvl
# → 402 with { accepts: [{ scheme, network, payTo, asset, maxAmountRequired }] }
# Step 2: Sign with your x402 SDK
# Step 3: Resend with payment
curl -s https://mpp.myntagent.fun/defi/tvl \
-H "X-PAYMENT: <signed-payment-base64>"
# → 200 with { data, insight, signal, confidence, ... }# MPP Payment
All endpoints are also available via Machine Payments Protocol at the /mpp/* prefix. Uses Tempo payment method with USDC on Solana.
# MPP endpoints use /mpp/ prefix
curl -s https://mpp.myntagent.fun/mpp/defi/tvl
# → 402 with MPP challenge (challengeId)
# Install via AgentCash
npx agentcash add https://mpp.myntagent.fun# MCP Integration
Connect Claude Desktop, Cursor, or any MCP-compatible client to Mynt. 13 DeFi tools with automatic x402 payment.
Claude Desktop Configuration
{
"mcpServers": {
"hyre": {
"command": "npx",
"args": ["mynt-mcp"],
"env": {
"SVM_PRIVATE_KEY": "<your-base58-solana-private-key>"
}
}
}
}Available Tools (13)
| Tool | Description | Price |
|---|---|---|
| mynt-new-tokens | PumpFun token launches | $0.008 |
| mynt-token-verdict | Full AI verdict on token | $0.015 |
| mynt-graduating | Tokens near graduation | $0.003 |
| mynt-bonding-curve | Bonding curve progress | $0.001 |
| mynt-token-snipers | Sniper detection | $0.004 |
| mynt-wallet-pnl | Wallet PnL + portfolio | $0.005 |
| mynt-wallet-intel | 30-day wallet profile | $0.012 |
| mynt-whales | Whale holders | $0.003 |
| mynt-pools | Meteora DLMM pools | $0.001 |
| mynt-pool-recommend | AI pool recommendation | $0.008 |
| mynt-tvl | Chain TVL data | $0.001 |
| mynt-yields | Yield pools by APY | $0.002 |
| mynt-ask | Natural language query | $0.025 |
# Networks
x402 payments are facilitated by Dexter. Gas is sponsored on all networks. Three networks supported:
solanapayTo: 7G73PLhKvAPBGTzG5ESAE4coE7QrVeTTKfhTxQZbyGgC
Asset: USDC (SPL) · Gas sponsored by Dexter
eip155:8453payTo: 0xb5998e11E666Fd1e7f3B8e8d9122A755eec1E9b7
Asset: USDC (ERC-20) · Gas sponsored by Dexter
eip155:1187947933payTo: 0xb5998e11E666Fd1e7f3B8e8d9122A755eec1E9b7
Asset: USDC · Gas sponsored by Dexter
# Discovery
Mynt is discoverable across multiple platforms:
# OpenAPI spec
curl https://mpp.myntagent.fun/openapi.json
# AgentCash discovery
npx agentcash discover https://mpp.myntagent.fun
# AgentCash install
npx agentcash add https://mpp.myntagent.fun# Agent Console
Chat with Mynt Agent directly in your browser. Pose DeFi queries. pay inline with your wallet, get AI-analyzed data. Embedded wallet via Privy — no browser extension needed.
Start Agent Console →Mynt Agent v2.1 · Driven by x402 + MPP · Dexter Facilitator · Cloudflare Edge
