Requesting all known Tokens
Request all tokens known by the LI.FI services
The complete API documentation for our /tokens
endpoint can be found here.
This endpoint gives a comprehensive list of all tokens that the LI.FI services are aware.
It is possible to filter them by chain to get a more concise and targeted result.
The response is an object with a tokens property. In turn this is an object with keys being ChainId
and values being Token
objects. The sample response for the sample request above is:
MATIC to POL migration: Please note that on the Polygon chain, the native token previously referred to as MATIC has been renamed to POL. Similarly, WMATIC is now referred to as WPOL. While the token symbols have changed, the underlying assets and their contract addresses remain the same unless token symbols are passed in the API.
On Ethereum, both POL and MATIC are available but with different contract addresses. Be sure to use the correct contract address when requesting token information for these assets on Ethereum
Last updated