TotalSupply
get total supply of erc20 token
warning
It requires connected wallet.
func TotalSupply(contractAddress string) (*big.Int, error)
func main() {
// ... setup ...
balance, err := w.ERC20().TotalSupply("<contractAddress>")
if err != nil {
panic(err)
}
fmt.Println(balance)
}