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

  • decimal

We often need decimal to normalize the amount, as introduced in Handle Big Numbers

Last updated