eth_estimateGas
Generates and returns an estimate of how much gas is necessary to allow the transaction to complete.
Parameters
tx*
Type: object { from: unknown, to: unknown, gas: unknown, maxFeePerGas: string,null, maxPriorityFeePerGas: string,null, value: unknown, input: unknown, data: unknown, nonce: unknown, chainId: unknown, accessList: unknown }
block*
Type: oneOf: Quantity (hex) | Tag
Enter a block number or latest
Returns
integer
📤 Request
curl --request POST \ --url https://testnet-rpc.monad.xyz \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "id": 0, "jsonrpc": "2.0", "method": "eth_estimateGas", "params": [] } '