Skip to content

Token list

Description

Lists ValueScan-supported tokens with fuzzy search on full name or symbol.

Use case: Foundational endpoint to obtain vsTokenId, required by other token-related APIs.

Important: When multiple tokens match (different chains or standards), prompt the user to choose and cache name ↔ vsTokenId for later calls.

Update frequency: Real-time

Endpoint

  • Method: POST
  • Path: /open/v1/vs-token/list

Credits

  • Cost: 1

Prerequisites

None. Can be called directly.

Request parameters

Parameters are sent as JSON in the request body.

FieldTypeRequiredDescription
searchstringNoSearch keyword (symbol, fuzzy match), max 100 chars, case-insensitive

Response fields

Structure of each object in the data array:

FieldTypeSerializedDescription
idlonglongToken ID (vsTokenId for other APIs)
symbolstringstringTicker (e.g. BTC, ETH)
namestringstringFull name (e.g. Bitcoin, Ethereum)
iconstringstringToken icon URL

Field semantics

FieldMeaningTip
idUnique token idReturned id is vsTokenId; cache for later calls
symbolTrading symbolDisplay and user confirmation
nameFull token nameDisambiguate when symbols collide
iconToken icon URLDisplay token icon in UI

Example

json
{
    "search": "btc"
}

cURL (Linux/macOS)

bash
curl --location --request POST 'http://${host}/api/open/v1/vs-token/list' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: xxxxx' \
--header 'X-TIMESTAMP: xxxxx' \
--header 'X-SIGN: xxxxx' \
--header 'Accept: */*' \
--data-raw '{
    "search": "btc"
}'

cURL (Windows CMD)

cmd
curl --location --request POST "http://${host}/api/open/v1/vs-token/list" ^
--header "Content-Type: application/json" ^
--header "X-API-KEY: xxxxx" ^
--header "X-TIMESTAMP: xxxxx" ^
--header "X-SIGN: xxxxx" ^
--header "Accept: */*" ^
--data-raw "{    \"search\": \"btc\"}"

Success response example

json
{
    "code": 200,
    "message": "success",
    "data": [
        {
            "id": 1,
            "symbol": "BTC",
            "name": "Bitcoin",
            "icon": "https://static.valuescan.io/valuescan/cmc/coins/1.png"
        },
        {
            "id": 33652,
            "symbol": "LBTC",
            "name": "Lombard Staked BTC",
            "icon": "https://static.valuescan.io/valuescan/cmc/coins/33652.png"
        },
        {
            "id": 50460,
            "symbol": "SBTC",
            "name": "sBTC",
            "icon": "https://static.valuescan.io/valuescan/cmc/coins/38906.png"
        },
        ...
    ],
    "requestId": "xxx-xxx-xxx"
}