2

Given a token, how do I determine the token's name, symbol, and logo?

1 Answer 1

2

SPL-Token's name, symbol, logo, and more can be retrieved today the following way:

  1. Get associated Metaplex Metadata Account to check for Metadata
  2. If no metadata exists, check legacy token-list from @solana/spl-token-registry

This means that first priority should be Metaplex Metadata, then @solana/spl-token-registry

Solflare's Unified Token List does this automatically if you want to use their source code.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.