πToken Search
Endpoint
GET /v1/tokens/search?searchString=<SEARCH_STRING>&chains=<CHAIN_IDS>
Description
This endpoint searches for tokens that match the given search criteria. The searchString parameter is required and should be a string that is used to match against token names, contracts, or symbols. The chains parameter is optional and should be a comma-separated list of chain Ids that limits the search results to tokens that exist on the specified chains.
Note
This endpoint is limited to returning a maximum of 15 search results.
Query String Parameters
searchString(required): A string that is used to match against token names, contracts, or symbols.chains (optional): A comma-separated list of chain Ids that limits the search results to tokens that exist on the specified chains.
Headers
x-api-key (required): A valid API key.
Example
curl -X GET 'https://api.lynxcrypto.app/v1/tokens/search?searchString=inu&chains=1,56'Response
Response Codes
200: Success. Returns the tokens that match the search criteria.400: Bad Request. The searchString query string parameter is not provided.403: Forbidden. The x-api-key header is not provided or is invalid.
404: Not Found. No tokens were found with the given search criteria.
Last updated