ERC20TotalSupplyExample.cs 433 B

12345678910111213141516
  1. using System.Collections;
  2. using System.Numerics;
  3. using System.Collections.Generic;
  4. using Newtonsoft.Json;
  5. using UnityEngine;
  6. using Web3Unity.Scripts.Library.ETHEREUEM.EIP;
  7. public class ERC20TotalSupplyExample : MonoBehaviour
  8. {
  9. async void Start()
  10. {
  11. string contract = "0x3E0C0447e47d49195fbE329265E330643eB42e6f";
  12. BigInteger totalSupply = await ERC20.TotalSupply(contract);
  13. print(totalSupply);
  14. }
  15. }