Skip to main content

eth_gasPrice

Returns the current gas price in wei.

Parameters

None

Return Type

HexString<Integer> - Current gas price in wei.

Example
TypeScript
await provider.request({
method: "eth_gasPrice",
params: [],
});
// "0x12a05f200"