Skip to main content

eth_gasPrice

Returns the current gas price in wei.

Params

This method does not accept any parameters.

Result

Returns a Promise that resolves with a string containing the current hexadecimal gas price in IMX.

Example

const gasPrice = await provider.request({ method: 'eth_gasPrice' });
console.log(gasPrice); // ['0x...']