Web3WalletGetGasPrice.cs 294 B

1234567891011
  1. using UnityEngine;
  2. using Web3Unity.Scripts.Library.Ethers.Providers;
  3. public class Web3WalletGetGasPrice : MonoBehaviour
  4. {
  5. public async void GetGasPrice()
  6. {
  7. var provider = new JsonRpcProvider("YOUR_NODE");
  8. Debug.Log("Gas Price: " + await provider.GetGasPrice());
  9. }
  10. }