# Ethereum eth_gasPrice RPC method

Ethereum API method that returns the current gas base fee of the network. The value returned is in Wei.

Parameters:

  • none

Returns:

  • quantity - The integer value of the current gas base fee in Wei.

Example:

  • web3.js
  • web3.py
  • eth.rb
  • cURL
const Web3 = require("web3");
const node_url = "CHAINSTACK_NODE_URL";
const web3 = new Web3(node_url);
web3.eth.getGasPrice((err, gasPrice) => {
    console.log(gasPrice)
})