Get token information
#1652
-
Hello, I have the token address |
Beta Was this translation helpful? Give feedback.
Answered by
zemse
Jun 6, 2021
Replies: 1 comment 15 replies
-
Yes you should be able to call the |
Beta Was this translation helpful? Give feedback.
15 replies
Answer selected by
vlbhtcno1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes you should be able to call the
name()
,symbol()
anddecimals()
functions on the token contract. However note that, these methods are optional in the ERC20 specification, so you can come across some ERC20 tokens through which you may not be able to get that information. Also some edge cases:MKR
token returns bytes32 value for name & symbol.