Skip to main content
GET
/
api
/
v2
/
tokens
List tokens
curl --request GET \
  --url https://demo.api.loopcrypto.xyz/api/v2/tokens
{
  "totalResults": 100,
  "tokens": [
    {
      "tokenId": "123e4567-e89b-12d3-a456-426614174000",
      "networkId": 1,
      "symbol": "USDC",
      "address": "0x1234567890abcdef",
      "decimals": 6,
      "exchangeRates": [
        {
          "currency": "USD",
          "price": "10000",
          "provider": "CoinMarketCap",
          "timestamp": 1715731200
        }
      ]
    }
  ]
}

Query Parameters

networkId
string

Optional filter to retrieve tokens for a specific blockchain network. Useful for filtering tokens when managing multiple networks

tokenAddress
string

Optional filter to retrieve tokens for a specific token address. Useful for verifying token configurations for a specific token contract

tokenSymbol
string

Optional filter to retrieve tokens for a specific token symbol (e.g. USDC, DAI). Useful for filtering tokens when managing multiple tokens

page
number

Optional pagination parameter to specify the page number of the results to return. Default is 1 which is the first page.

limit
number

Optional pagination parameter to specify the number of results per page. Default is 25, maximum is 100.

sortBy
string

Optional sorting parameter to specify the field to sort the results by. Valid options are "tokenId", "networkId", "symbol", "address", and "decimals". Default is "tokenId".

sortDir
string

Optional sorting parameter to specify the direction to sort the results by. Valid options are "asc" and "desc". Default is "desc".

Response

Ok

totalResults
number
required

The total count of tokens matching the search criteria, regardless of page size or number.

Example:

100

tokens
object[]
required

The list of tokens for each network

I