{"openapi":"3.1.0","info":{"title":"Lantern Token Data API","version":"0.1.0","description":"Per-request Solana token safety and market reports, paid in USDC via x402 v2. Payments enabled: true.","x-guidance":"Use GET /v1/token/{mint} for a single Solana token safety and market report, or GET /v1/tokens/batch?ids= for up to 50 mints. After the free daily allowance, pay a fixed 0.002 USDC (single) or 0.01 USDC (batch) via x402 v2 with a PAYMENT-SIGNATURE header. Start with /llms.txt or /pricing. GET /health and GET /discovery/resources are free.","contact":{"email":"bzvmqqnf@mail.grokbot.com"}},"x-mcp":{"url":"https://lanternswap.com/mcp","transport":"streamable-http","agentCard":"https://lanternswap.com/.well-known/agent-card.json"},"externalDocs":{"description":"Agents: prefer the remote MCP server at /mcp (same billing, limits and screening). Plain-text docs at /llms.txt.","url":"https://lanternswap.com/llms.txt"},"servers":[{"url":"https://lanternswap.com"}],"paths":{"/v1/token/{mint}":{"get":{"operationId":"getTokenReport","summary":"Token safety + market report","description":"0.002 USDC per call (2000 base units) via x402 v2.","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]},"parameters":[{"name":"mint","in":"path","required":true,"schema":{"type":"string","pattern":"^[1-9A-HJ-NP-Za-km-z]{32,44}$"},"description":"Solana mint address (base58)"},{"name":"PAYMENT-SIGNATURE","in":"header","required":false,"schema":{"type":"string"},"description":"Base64-encoded x402 v2 PaymentPayload. Required after the free tier when payments are enabled."}],"responses":{"200":{"description":"Token report","headers":{"PAYMENT-RESPONSE":{"schema":{"type":"string"},"description":"Base64-encoded SettlementResponse when the call was paid"},"x-free-requests-remaining":{"schema":{"type":"integer"},"description":"Unpaid calls left today for this client (sent while the free tier applies)"}},"content":{"application/json":{"schema":{"type":"object","properties":{"mint":{"type":"string"},"symbol":{"type":["string","null"]},"name":{"type":["string","null"]},"priceUsd":{"type":["number","null"]},"liquidityUsd":{"type":["number","null"]},"marketCapUsd":{"type":["number","null"]},"holderCount":{"type":["number","null"]},"organicScore":{"type":["number","null"]},"verified":{"type":"boolean"},"riskScore":{"type":"number"},"riskLabel":{"type":"string","enum":["low","medium","high","unknown"]},"flags":{"type":"array","items":{"type":"object"}},"sources":{"type":"array","items":{"type":"string"}},"asOf":{"type":"string","format":"date-time"}},"required":["mint","riskScore","riskLabel","flags","sources","asOf"]},"example":{"mint":"DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263","symbol":"Bonk","name":"Bonk","priceUsd":0.00001234,"liquidityUsd":5600000,"marketCapUsd":800000000,"holderCount":1000000,"organicScore":81,"verified":true,"riskScore":10,"riskLabel":"low","flags":[],"sources":["jupiter:tokens/v2"],"asOf":"2026-11-27T00:00:00.000Z"}}}},"400":{"description":"Malformed mint address or ids","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"invalid mint address"}},"required":["error"]}}}},"402":{"description":"Payment required (x402 v2). Body is a PaymentRequired object; also sent as the PAYMENT-REQUIRED header.","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"Base64-encoded PaymentRequired (x402 v2)"},"WWW-Authenticate":{"schema":{"type":"string","example":"x402"}},"X-Payment-Protocol":{"schema":{"type":"string","example":"x402"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"x402Version":{"type":"integer","const":2},"error":{"type":"string"},"resource":{"type":"object","properties":{"url":{"type":"string"},"description":{"type":"string"},"mimeType":{"type":"string"},"serviceName":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"iconUrl":{"type":"string"}},"required":["url"]},"accepts":{"type":"array","items":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string","description":"CAIP-2 network, e.g. solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"},"amount":{"type":"string","description":"Atomic token units (USDC 6 decimals; 0.002 USDC is \"2000\")"},"asset":{"type":"string"},"payTo":{"type":"string"},"maxTimeoutSeconds":{"type":"integer"},"extra":{"type":"object"}},"required":["scheme","network","amount","asset","payTo"]}},"extensions":{"type":"object","description":"Includes bazaar.info and bazaar.schema (JSON Schema input/output)"}},"required":["x402Version","resource","accepts"]}}}},"409":{"description":"This payment is already being processed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"payment already in progress"}},"required":["error"]}}}},"429":{"description":"Too many requests (over 30 a minute from one client)","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying"}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"too many requests"}},"required":["error"]}}}},"451":{"description":"Not available in your region","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"not available in your region"}},"required":["error"]}}}},"502":{"description":"Upstream data source failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"upstream error"}},"required":["error"]}}}},"503":{"description":"Payments switched off on this server, or the upstream data source is busy (then Retry-After is set)","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying"}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"payments not enabled"}},"required":["error"]}}}}}}},"/v1/paid/token/{mint}":{"get":{"operationId":"getTokenReportPaidOnly","summary":"Token safety + market report (no free tier)","description":"Same report and price as /v1/token/{mint} (0.002 USDC, 2000 base units) via x402 v2, but never served free: an unpaid request always gets HTTP 402.","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]},"parameters":[{"name":"mint","in":"path","required":true,"schema":{"type":"string","pattern":"^[1-9A-HJ-NP-Za-km-z]{32,44}$"},"description":"Solana mint address (base58)"},{"name":"PAYMENT-SIGNATURE","in":"header","required":false,"schema":{"type":"string"},"description":"Base64-encoded x402 v2 PaymentPayload. Required after the free tier when payments are enabled."}],"responses":{"200":{"description":"Token report","headers":{"PAYMENT-RESPONSE":{"schema":{"type":"string"},"description":"Base64-encoded SettlementResponse when the call was paid"}},"content":{"application/json":{"schema":{"type":"object","properties":{"mint":{"type":"string"},"symbol":{"type":["string","null"]},"name":{"type":["string","null"]},"priceUsd":{"type":["number","null"]},"liquidityUsd":{"type":["number","null"]},"marketCapUsd":{"type":["number","null"]},"holderCount":{"type":["number","null"]},"organicScore":{"type":["number","null"]},"verified":{"type":"boolean"},"riskScore":{"type":"number"},"riskLabel":{"type":"string","enum":["low","medium","high","unknown"]},"flags":{"type":"array","items":{"type":"object"}},"sources":{"type":"array","items":{"type":"string"}},"asOf":{"type":"string","format":"date-time"}},"required":["mint","riskScore","riskLabel","flags","sources","asOf"]},"example":{"mint":"DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263","symbol":"Bonk","name":"Bonk","priceUsd":0.00001234,"liquidityUsd":5600000,"marketCapUsd":800000000,"holderCount":1000000,"organicScore":81,"verified":true,"riskScore":10,"riskLabel":"low","flags":[],"sources":["jupiter:tokens/v2"],"asOf":"2026-11-27T00:00:00.000Z"}}}},"400":{"description":"Malformed mint address or ids","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"invalid mint address"}},"required":["error"]}}}},"402":{"description":"Payment required (x402 v2). Body is a PaymentRequired object; also sent as the PAYMENT-REQUIRED header.","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"Base64-encoded PaymentRequired (x402 v2)"},"WWW-Authenticate":{"schema":{"type":"string","example":"x402"}},"X-Payment-Protocol":{"schema":{"type":"string","example":"x402"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"x402Version":{"type":"integer","const":2},"error":{"type":"string"},"resource":{"type":"object","properties":{"url":{"type":"string"},"description":{"type":"string"},"mimeType":{"type":"string"},"serviceName":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"iconUrl":{"type":"string"}},"required":["url"]},"accepts":{"type":"array","items":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string","description":"CAIP-2 network, e.g. solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"},"amount":{"type":"string","description":"Atomic token units (USDC 6 decimals; 0.002 USDC is \"2000\")"},"asset":{"type":"string"},"payTo":{"type":"string"},"maxTimeoutSeconds":{"type":"integer"},"extra":{"type":"object"}},"required":["scheme","network","amount","asset","payTo"]}},"extensions":{"type":"object","description":"Includes bazaar.info and bazaar.schema (JSON Schema input/output)"}},"required":["x402Version","resource","accepts"]}}}},"409":{"description":"This payment is already being processed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"payment already in progress"}},"required":["error"]}}}},"429":{"description":"Too many requests (over 30 a minute from one client)","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying"}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"too many requests"}},"required":["error"]}}}},"451":{"description":"Not available in your region","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"not available in your region"}},"required":["error"]}}}},"502":{"description":"Upstream data source failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"upstream error"}},"required":["error"]}}}},"503":{"description":"Payments switched off on this server, or the upstream data source is busy (then Retry-After is set)","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying"}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"payments not enabled"}},"required":["error"]}}}}}}},"/v1/tokens/batch":{"get":{"operationId":"getTokenReportsBatch","summary":"Batch token reports","description":"0.01 USDC per call (10000 base units) via x402 v2. Up to 50 mints.","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.010000"},"protocols":[{"x402":{}}]},"parameters":[{"name":"ids","in":"query","required":true,"schema":{"type":"string","pattern":"^[1-9A-HJ-NP-Za-km-z]{32,44}(,[1-9A-HJ-NP-Za-km-z]{32,44}){0,49}$"},"description":"Comma-separated mint addresses, 1-50"},{"name":"PAYMENT-SIGNATURE","in":"header","required":false,"schema":{"type":"string"},"description":"Base64-encoded x402 v2 PaymentPayload. Required after the free tier when payments are enabled."}],"responses":{"200":{"description":"Array of token reports","headers":{"PAYMENT-RESPONSE":{"schema":{"type":"string"},"description":"Base64-encoded SettlementResponse when the call was paid"},"x-free-requests-remaining":{"schema":{"type":"integer"},"description":"Unpaid calls left today for this client (sent while the free tier applies)"}},"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"mint":{"type":"string"},"symbol":{"type":["string","null"]},"name":{"type":["string","null"]},"priceUsd":{"type":["number","null"]},"liquidityUsd":{"type":["number","null"]},"marketCapUsd":{"type":["number","null"]},"holderCount":{"type":["number","null"]},"organicScore":{"type":["number","null"]},"verified":{"type":"boolean"},"riskScore":{"type":"number"},"riskLabel":{"type":"string","enum":["low","medium","high","unknown"]},"flags":{"type":"array","items":{"type":"object"}},"sources":{"type":"array","items":{"type":"string"}},"asOf":{"type":"string","format":"date-time"}},"required":["mint","riskScore","riskLabel","flags","sources","asOf"]}}}}},"400":{"description":"Malformed mint address or ids","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"invalid mint address"}},"required":["error"]}}}},"402":{"description":"Payment required (x402 v2). Body is a PaymentRequired object; also sent as the PAYMENT-REQUIRED header.","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"Base64-encoded PaymentRequired (x402 v2)"},"WWW-Authenticate":{"schema":{"type":"string","example":"x402"}},"X-Payment-Protocol":{"schema":{"type":"string","example":"x402"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"x402Version":{"type":"integer","const":2},"error":{"type":"string"},"resource":{"type":"object","properties":{"url":{"type":"string"},"description":{"type":"string"},"mimeType":{"type":"string"},"serviceName":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"iconUrl":{"type":"string"}},"required":["url"]},"accepts":{"type":"array","items":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string","description":"CAIP-2 network, e.g. solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"},"amount":{"type":"string","description":"Atomic token units (USDC 6 decimals; 0.002 USDC is \"2000\")"},"asset":{"type":"string"},"payTo":{"type":"string"},"maxTimeoutSeconds":{"type":"integer"},"extra":{"type":"object"}},"required":["scheme","network","amount","asset","payTo"]}},"extensions":{"type":"object","description":"Includes bazaar.info and bazaar.schema (JSON Schema input/output)"}},"required":["x402Version","resource","accepts"]}}}},"409":{"description":"This payment is already being processed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"payment already in progress"}},"required":["error"]}}}},"429":{"description":"Too many requests (over 30 a minute from one client)","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying"}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"too many requests"}},"required":["error"]}}}},"451":{"description":"Not available in your region","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"not available in your region"}},"required":["error"]}}}},"502":{"description":"Upstream data source failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"upstream error"}},"required":["error"]}}}},"503":{"description":"Payments switched off on this server, or the upstream data source is busy (then Retry-After is set)","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying"}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"payments not enabled"}},"required":["error"]}}}}}}},"/health":{"get":{"operationId":"health","summary":"Health check","security":[],"responses":{"200":{"description":"Service status","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"feesEnabled":{"type":"boolean","description":"Solana app fee is collected"},"feeBps":{"type":"integer","description":"Solana app fee in basis points"},"x402":{"type":"boolean","description":"Paid API routes are switched on"},"base":{"type":"boolean","description":"Base (EVM) trading is switched on"}},"required":["ok","x402"]}}}}}}},"/mcp":{"post":{"operationId":"mcp","summary":"Remote MCP server (Streamable HTTP, JSON-RPC 2.0)","description":"Tools: token_report and token_report_batch (x402-paid via _meta[\"x402/payment\"], same free tier as REST), token_search, solana_swap_quote, solana_swap_build (unsigned), solana_send_transaction, solana_tx_status, base_swap_quote (coming soon), polymarket_markets, polymarket_market. Call tools/list for schemas.","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string","const":"2.0"},"id":{},"method":{"type":"string"},"params":{"type":"object"}},"required":["jsonrpc","method"]}}}},"responses":{"200":{"description":"JSON-RPC response","content":{"application/json":{"schema":{"type":"object"}}}},"202":{"description":"Notification accepted"},"400":{"description":"Malformed JSON-RPC or unsupported MCP-Protocol-Version","content":{"application/json":{"schema":{"type":"object"}}}},"429":{"description":"Too many requests","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying"}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"too many requests"}},"required":["error"]}}}},"451":{"description":"Not available in your region","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"not available in your region"}},"required":["error"]}}}}}}},"/.well-known/agent-card.json":{"get":{"operationId":"agentCard","summary":"A2A agent card","security":[],"responses":{"200":{"description":"Agent card","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/discovery/resources":{"get":{"operationId":"discoveryResources","summary":"x402 v2 discovery catalog (local; not submitted to an external Bazaar)","security":[],"responses":{"200":{"description":"Discovered resources","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/.well-known/x402":{"get":{"operationId":"wellKnownX402","summary":"x402scan compatibility resource list","security":[],"responses":{"200":{"description":"Concrete example URLs of paid endpoints","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer"},"resources":{"type":"array","items":{"type":"string"}}},"required":["version","resources"]}}}}}}}}}