Handle ERC-20 Token
Use this API to get token info.
import {token} from "@sentio/sdk/utils"
const tokenInfo = await token.getERC20TokenInfo(tokenAddress, chainId)
tokenInfo
contains:
- symbol
- name
- decimals
We often need decimals to normalize the amount, as introduced in handle-big-numbers
Updated 11 days ago