S

Sniperx · Token Price

by Sniperx

GETSolana

per call · USDC on Solana

Get real-time token price and change rates (5min, 10min, 30min, 1hour, 24hour)

Endpoint

GET https://x402.sniperx.fun/api/v1/token/price

1

Calls / 30d

1

Unique payers / 30d

Sep 9

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://x402.sniperx.fun/api/v1/token/price", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://x402.sniperx.fun/api/v1/token/price?token_address=example_token_address" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "change_10m": {
    "description": "Price change percentage in last 10 minutes",
    "type": "number"
  },
  "change_1h": {
    "description": "Price change percentage in last 1 hour",
    "type": "number"
  },
  "change_24h": {
    "description": "Price change percentage in last 24 hours",
    "type": "number"
  },
  "change_30m": {
    "description": "Price change percentage in last 30 minutes",
    "type": "number"
  },
  "change_5m": {
    "description": "Price change percentage in last 5 minutes",
    "type": "number"
  },
  "price": {
    "description": "Current token price in USDC",
    "type": "string"
  }
}

Payment details

Pay tobd2xs189uhhnxuebevf3jfxrg8zqgrvqztpqh8hgkceq
Assetepjfwdd5aufqssqem2qn1xzybapc8g4weggkzwytdt1v
NetworksSolana
Schemesexact

Is this your API?

Pin it to the top of Market Data and the homepage with a featured placement.

Get featured →

More from Sniperx & similar services