GasPrice

Returns the current price per gas in wei. Parameters none Returns

  • QUANTITY - integer of the current gas price in wei.
POSThttps://tomo.nownodes.io/gasPrice
Body
jsonrpc*string
method*string
params*array of string
id*integer (int32)
Response

Successful operation

Request
const response = await fetch('https://tomo.nownodes.io/gasPrice', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "jsonrpc": "2.0",
      "method": "eth_gasPrice",
      "params": [],
      "id": 73
    }),
});
const data = await response.json();