Skip to main content

BalanceOf

ref: Wallet-ERC20-BalanceOf

Get ERC20 token Balance of provided walletAddress.

func BalanceOf(
contractAddress,
walletAddress string,
) (balance *big.Int, err error)
func main() {
...
alchemy := gas.NewAlchemy(setting)
...
balance, err := erc20.BalanceOf(artifacts.NewERC20(), contractAddress, walletAddress)
}