Returns the current gas price in wei.
Parameters
None
Return Type
HexString<Integer> - Current gas price in wei.
HexString<Integer>
Example
TypeScript
await provider.request({ method: "eth_gasPrice", params: [], }); // "0x12a05f200"
Last updated 20 days ago
Was this helpful?