Docs
Version 0 (v0)
Splines

Splines v0 API

Splines API renders a card-like image with (almost) real-time token price and spline price chart.

💡

Free splines API is cached for TTL of 5 seconds and stale-while-revalidate of 5 seconds. Contact us for higher granularity.

Endpoint

https://api.swapscanner.io/v0/tokens/splines/[tokenAddress].[type]
  • tokenAddress - address of the token
  • type - image format (png, svg)

Query Parameters

  • locale - locale for the price (default: en-US, supported: en-US, ko-KR)
  • market - market base for the price (default: usd, supported: usd, krw, or address of any token (e.g. 0x0000000000000000000000000000000000000000 for KLAY based price))

Response

PNG or SVG image based on your request.