useTokenSupply
Hook for fetching the total supply of an ERC20 token.
This takes into account the increase and decrease in supply when tokens are minted and burned.
Example
Parameters
Returns
Hook's data
object includes the total supply of the token in the value
property as a BigNumber
object.