11 lines
294 B
C#
11 lines
294 B
C#
using UnityEngine;
|
|
using Web3Unity.Scripts.Library.Ethers.Providers;
|
|
|
|
public class Web3WalletGetGasPrice : MonoBehaviour
|
|
{
|
|
public async void GetGasPrice()
|
|
{
|
|
var provider = new JsonRpcProvider("YOUR_NODE");
|
|
Debug.Log("Gas Price: " + await provider.GetGasPrice());
|
|
}
|
|
} |