MyntMynt_

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.fun
Payment: USDCProtocol: x402 v2 + MPPFacilitator: Dexter

Every response includes:

json
{
  "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)

GET
/trenches/new-tokens

Real-time PumpFun token launches with AI snipe signal

$0.008
GET
/trenches/curve/{mint}

Bonding curve progress — graduation ETA, SOL reserves

$0.001
GET
/trenches/token/{mint}

Token metadata — top holders, mint/freeze authority

$0.002
GET
/trenches/token/{mint}/snipers

Sniper detection — wallets that bought in first blocks

$0.004
GET
/trenches/graduating

Tokens near bonding curve graduation (>70%)

$0.003
GET
/trenches/bags/new-tokens

New tokens from Bags.fm (Meteora DBC)

$0.008
GET
/trenches/token/{mint}/verdict

Full AI verdict — holders, snipers, curve, risk

$0.015

Traders (6)

GET
/traders/wallet/{address}/pnl

Wallet PnL — portfolio value, holdings, win rate

$0.005
GET
/traders/wallet/{address}/positions

Current token positions with USD values

$0.003
GET
/traders/top-wallets

Top performing wallets leaderboard

$0.008
GET
/traders/token/{mint}/whales

Whale holders — top holders with % of supply

$0.003
GET
/traders/token/{mint}/ohlcv

Token price + transaction activity data

$0.002
GET
/traders/wallet/{address}/intel

30-day wallet intelligence — trading patterns, archetype

$0.012

LPs (6)

GET
/lp/meteora/pools

Meteora DLMM pool list — APR, TVL, volume, fees

$0.001
GET
/lp/meteora/pools/recommend

AI pool recommendation for a token pair

$0.008
GET
/lp/meteora/pools/{address}

Deep analytics for a specific pool

$0.003
GET
/lp/wallet/{address}/positions

LP positions for a wallet

$0.004
GET
/lp/positions/{id}/rebalance

Rebalance signal for an LP position

$0.010
GET
/lp/meteora/pools/strategy

Full LP strategy brief — best pool + range + APR

$0.020

DeFi + Meta (3)

GET
/defi/tvl

Total Value Locked across chains

$0.001
GET
/defi/yields

Top yield pools multi-chain sorted by APY

$0.002
POST
/ask

Natural language DeFi query — AI orchestrates all sources

$0.025

# 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. 1.Send a request to any endpoint (e.g. GET /defi/tvl).
  2. 2.Server responds with 402 Payment Required + payment details (amount, asset, payTo).
  3. 3.Sign the payment with your Solana wallet using @x402/fetch or @x402/svm.
  4. 4.Resend the request with the signed X-PAYMENT header.
  5. 5.Payment settles via Dexter — you receive AI-analyzed data.

Client-side (Node.js / Browser)

bash
npm install @x402/fetch @x402/svm @solana/kit @scure/base
typescript
import { 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.87

Manual flow (cURL)

bash
# 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.

bash
# 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

json
{
  "mcpServers": {
    "hyre": {
      "command": "npx",
      "args": ["mynt-mcp"],
      "env": {
        "SVM_PRIVATE_KEY": "<your-base58-solana-private-key>"
      }
    }
  }
}

Available Tools (13)

ToolDescriptionPrice
mynt-new-tokensPumpFun token launches$0.008
mynt-token-verdictFull AI verdict on token$0.015
mynt-graduatingTokens near graduation$0.003
mynt-bonding-curveBonding curve progress$0.001
mynt-token-snipersSniper detection$0.004
mynt-wallet-pnlWallet PnL + portfolio$0.005
mynt-wallet-intel30-day wallet profile$0.012
mynt-whalesWhale holders$0.003
mynt-poolsMeteora DLMM pools$0.001
mynt-pool-recommendAI pool recommendation$0.008
mynt-tvlChain TVL data$0.001
mynt-yieldsYield pools by APY$0.002
mynt-askNatural language query$0.025

# Networks

x402 payments are facilitated by Dexter. Gas is sponsored on all networks. Three networks supported:

Solanasolana

payTo: 7G73PLhKvAPBGTzG5ESAE4coE7QrVeTTKfhTxQZbyGgC

Asset: USDC (SPL) · Gas sponsored by Dexter

Baseeip155:8453

payTo: 0xb5998e11E666Fd1e7f3B8e8d9122A755eec1E9b7

Asset: USDC (ERC-20) · Gas sponsored by Dexter

SKALEeip155:1187947933

payTo: 0xb5998e11E666Fd1e7f3B8e8d9122A755eec1E9b7

Asset: USDC · Gas sponsored by Dexter

# Discovery

Mynt is discoverable across multiple platforms:

bash
# 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 →
Conversational AI for DeFi queries
Inline x402 payment cards (Solana / Base / SKALE)
Embedded wallet via Privy (no extension)
Chat history saved locally
Network selector in sidebar

Mynt Agent v2.1 · Driven by x402 + MPP · Dexter Facilitator · Cloudflare Edge