{"uid":"cap_3jAff8tOvyBwWhxjGvk3-","slug":"myworker-agent-api-solana-token-swap-quote-785cc2bb","name":"Myworker Agent API – Solana Token Swap Quote","description":"Servis berbayar untuk bot/agen (x402): data pasaran Solana via Jupiter + RPC, dan servis AI via Workers AI. Bayar per panggilan dengan USDC di Solana, USDC di Base, atau SOL.","url":"https://crypto-micro-agent.mykira.workers.dev/api/agent/quote?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","example":{"ke":"usdc","dari":"sol","jumlah":100000000},"required":["dari","ke","jumlah"],"properties":{"ke":{"type":"string","description":"Mint/simbol output (cth usdc)"},"dari":{"type":"string","description":"Mint/simbol input (cth sol)"},"jumlah":{"type":"integer","description":"Jumlah dalam unit terkecil (cth lamports)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"hasil":{"inAmount":"100000000","inputMint":"So111…112","outAmount":"103120000","outputMint":"EPjF…t1v","slippageBps":50,"priceImpactPct":"0.0004"},"servis":"quote"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Cc3JNdOg0MKN7kzfGdpWh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a Jupiter-powered swap quote for a Solana token pair, including expected output amount and price impact, payable per-call via x402 micropayment.","exampleAgentPrompt":"What's the current Jupiter swap quote for converting 1 SOL (100000000 lamports) to USDC on Solana — I need the expected output amount, slippage, and price impact?","exampleUseCases":[{"title":"Pre-trade slippage check for DeFi bot","prompt":"Before my bot executes the trade, get me a quote for swapping 500000000 lamports of SOL to USDC so I can check the price impact and slippage — don't execute, just quote."},{"title":"Real-time SOL/USDC rate monitoring","prompt":"What's the current exchange rate if I swap 100000000 lamports of SOL to USDC right now? I want to see the output amount and price impact percentage from Jupiter."},{"title":"Token pair rate comparison for arbitrage","prompt":"Get me a Jupiter quote for converting 1000000 lamports of BONK to USDC on Solana — I need the exact output amount and price impact to evaluate an arbitrage opportunity."}],"resultDescription":"Returns a JSON object with ok status, input/output mint addresses, input/output amounts (in smallest units), slippage in basis points, and price impact percentage — sourced from Jupiter aggregator.","failureModes":["Invalid or unrecognized token mint/symbol returns an error","Amount below minimum swap threshold may fail or return zero output","Network congestion on Solana may cause stale or unavailable quotes","Missing required query parameters (dari, ke, jumlah) results in a 400 error","Payment failure via x402 (insufficient USDC/SOL balance) blocks the request"],"whenToPreferThis":"Choose this endpoint when you need a real-time Solana token swap quote via the Jupiter aggregator and are comfortable with x402 micropayment per call (0.01 USDC). Best for AI agents that need programmatic, pay-per-use DeFi price discovery on Solana without maintaining a full Jupiter integration.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T18:40:08.846Z","isFirstParty":false,"canonicalSlug":"myworker-agent-api-solana-token-swap-quote-785cc2bb"}