82trust / 100

Sol Price

by Solana token prices (Jupiter) in Onchain & crypto

x402 APIPassing, checked 2 h ago

USD price for up to 50 Solana token mints in one call from Jupiter's price API v3: price, 24h change, liquidity, decimals and the block the price was read at. Mints Jupiter does not price come back listed under missing rather than erroring the batch. Pass mint addresses, not tickers (resolve tickers with sol-token-search or sol-token-lookup). Keyless.

POST https://agent402.tools/api/sol-price

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
195 ms typical, 195 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/sol-price" \
  -H "content-type: application/json" \
  -d '{"mints":["So11111111111111111111111111111111111111112","JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN","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%2Fagent402.tools%2Fapi%2Fsol-price
const res = await pay("https://agent402.tools/api/sol-price", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"mints":["So11111111111111111111111111111111111111112","JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN","EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"]}),
});
console.log(await res.json());

Example input

{
  "mints": [
    "So11111111111111111111111111111111111111112",
    "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN",
    "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
  ]
}

Example output

{
  "count": 3,
  "fetchedAt": "2026-08-22T12:00:00.000Z",
  "missing": [],
  "prices": {
    "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN": {
      "blockId": 440919030,
      "decimals": 6,
      "liquidityUsd": 3092234.59,
      "priceChange24hPct": -2.4,
      "priceUsd": 0.2035
    },
    "So11111111111111111111111111111111111111112": {
      "blockId": 440919037,
      "decimals": 9,
      "liquidityUsd": 748142746.9,
      "priceChange24hPct": 3.93,
      "priceUsd": 93.7085
    }
  },
  "source": "jupiter"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402287 ms$0.001
5 h agoPassed402195 ms$0.001
10 h agoPassed402182 ms$0.001