chainsafe-test/Assets/Web3Unity/Scripts/Prefabs/ERC20/ERC20TotalSupplyExample.cs
2023-11-28 11:36:18 +05:30

17 lines
433 B
C#

using System.Collections;
using System.Numerics;
using System.Collections.Generic;
using Newtonsoft.Json;
using UnityEngine;
using Web3Unity.Scripts.Library.ETHEREUEM.EIP;
public class ERC20TotalSupplyExample : MonoBehaviour
{
async void Start()
{
string contract = "0x3E0C0447e47d49195fbE329265E330643eB42e6f";
BigInteger totalSupply = await ERC20.TotalSupply(contract);
print(totalSupply);
}
}