Example

Enhanced Symbol Matching

The filterTokens endpoint supports improved symbol matching when using the phrase parameter with $ prefix (eg: $PEPE). Exact Match: use the $ prefix for results with exact token symbol matches Partial Match: use phrase without the $ prefix to return partial token symbol matches
Returns: TokenFilterConnection

Arguments

filters
TokenFilters
A set of filters to apply.
statsType
TokenPairStatisticsType
The type of statistics returned. Can be FILTERED or UNFILTERED
phrase
String
A phrase to search for. Can match a token contract address or partially match a token’s name or symbol.
tokens
[String]
A list of token IDs (address:networkId) or addresses. Can be left blank to discover new tokens.
excludeTokens
[String]
A list of token IDs (address:networkId) to exclude from results
rankings
[TokenRanking]
A list of ranking attributes to apply.
limit
Int
The maximum number of tokens to return.
offset
Int
Where in the list the server should start when returning items. Use count+page from the previous query to request the next page of results.

Schema

"""Returns a list of tokens based on a variety of filters."""
filterTokens(filters: TokenFilters, statsType: TokenPairStatisticsType, phrase: String, tokens: [String], excludeTokens: [String], rankings: [TokenRanking], limit: Int, offset: Int): TokenFilterConnection