Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Tokens API

Overview

This API provides supported token metadata and pricing information per chain.

https://tokens.barterswap.xyz

1. Static tokens data across chains

Description

Returns a static list of supported tokens with their general metadata and addresses.

URL

GET /supported_tokens

Headers

HeaderValueDescription

Content-Type

application/json

Specifies JSON format for the request

Authorization

Bearer <API_KEY>

API authentication key

X-Request-Id

<unique_request_id>

Required identifier for the request (e.g., quote-id)

Example Request

Example Response

2. Prices for supported tokens

Description

Returns a mapping of token addresses to their metadata and pricing for a given chain-id (e.g., 1 for Ethereum Mainnet).

URL

Example Request

Example Response

prices.native and prices.usd fields may be null if pricing information is unavailable for a given token at the time of the request. This can happen for newly listed tokens, tokens without active liquidity, or during temporary pricing service outages.

3. Fee on transfer(FoT) tokens

Description

This endpoint returns a list of tokens on a given chain that are known to charge a fee during transfers (commonly referred to as “Fee on Transfer” or FoT tokens). We use multiple heuristics to detect such tokens. However, we cannot guarantee absolute accuracy — a token might stop charging fees in the future, or behave inconsistently, and such changes may not be reflected immediately.

URL

Example Request

Example Response

Notes

  • The X-Request-Id header is required and should be unique per request (e.g., quote-id).

  • Price values are currently returned as hexadecimal strings (e.g., 0x5c344adf), but may switch to decimal format in the future.

  • All prices are represented as unsigned 256-bit integers (U256) with decimals = 18.

For further assistance, feel free to contact us on Telegram at @obbwd.

Last updated