82trust / 100
Dex Quote
by AgentFeed in Onchain & crypto
x402 APIPassing, checked 3 h ago
Solana DEX quote from Jupiter for any SPL pair: output amount, price impact %, the route taken and the slippage assumed. Use when you need to answer: What will this swap actually execute at? The real executable price on Solana, not an index price.
GET https://x402.ochinimus.app/api/dex-quote
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 95 ms typical, 95 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402.ochinimus.app/api/dex-quote?amount=1000000000&input_mint=So11111111111111111111111111111111111111112&output_mint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402.ochinimus.app%2Fapi%2Fdex-quote
const res = await pay("https://x402.ochinimus.app/api/dex-quote?amount=1000000000&input_mint=So11111111111111111111111111111111111111112&output_mint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v");
console.log(await res.json());Example input
{
"amount": "1000000000",
"input_mint": "So11111111111111111111111111111111111111112",
"output_mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
}Example output
{
"data": {
"in_amount": "1000000000",
"input_mint": "So11111111111111111111111111111111111111112",
"other_amount_threshold": "120591261",
"out_amount": "121197247",
"output_mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"price_impact_pct": 0,
"route": [
"BisonFi"
],
"slippage_bps": 50,
"source": "jupiter-v6"
},
"paid": true,
"tool": "get_dex_quote"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 242 ms | $0.005 |
| 8 h ago | Passed | 402 | 95 ms | $0.005 |