ERC20BalanceOfExample.cs 444 B

123456789101112131415
  1. using System.Numerics;
  2. using UnityEngine;
  3. using Web3Unity.Scripts.Library.ETHEREUEM.EIP;
  4. public class ERC20BalanceOfExample : MonoBehaviour
  5. {
  6. async void Start()
  7. {
  8. string contract = "0x3E0C0447e47d49195fbE329265E330643eB42e6f";
  9. string account = "0xd25b827D92b0fd656A1c829933e9b0b836d5C3e2";
  10. BigInteger balanceOf = await ERC20.BalanceOf(contract, account);
  11. Debug.Log("Balance Of: " + balanceOf);
  12. }
  13. }