eth_estimateGas
Parameters
Returns
Example
Query
import { ethers } from 'ethers';
const provider =
new ethers
.providers
.JsonRpcProvider("https://www.noderpc.xyz/rpc-mainnet/public")
const info = async ()=> {
const result = await provider.estimateGas({
"from": "0x95222290dd7278aa3ddd389cc1e1d165cc4bafe5",
"to": "0xb69f8e3f4a4eef5d929de86653ab9768af093a34",
"value": "0x186a0"})
console.log(result);
}
info();Result
Last updated