Token Names
Tokens have names, and they have addresses.
We all know:
- AAVE,
- MKR, and
- CRV, for example.
We don’t refer to them as:
- 0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9,
- 0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2, and
- 0xd533a949740bb3306d119cc777fa900ba034cd52.
Unfortunately (or fortunately) DeFi is decentralized. There is no central repository mapping names to addresses. As a result, anyone is free to name their tokens AAVE, MKR, and CRV. And they do. This is why our API functions never accept names, only addresses.
We keep a list of verified name-address pairs that you can access via a utility function. This will allow you to look up the most common names. For more exotic tokens you should use another trusted source like Coingecko or Coinmarketcap.
Last modified 1yr ago