Kava

Kava

eth_gasPrice

eth_gasPrice returns the legacy gas price in wei that the node would suggest for a new transaction. It exists for backwards compatibility with pre-EIP-1559 wallets and tooling. For any modern transaction, prefer the EIP-1559 family — they price priority and base fees separately, which gives you more control.

Parameters

None.

Response shape

A hex-encoded integer in wei:

{ "jsonrpc": "2.0", "id": 1, "result": "0x4a817c800" }

0x4a817c800 = 20,000,000,000 wei = 20 gwei.

When to use it

  • Building a legacy transaction that targets a chain without EIP-1559 (rare today).
  • Quick sanity check of network conditions — the returned value is "what does the node think a reasonable price is right now?"
  • Backwards-compatibility code paths in tooling that still has to support pre-London chains.

When to not use it

See also

curl https://kava.therpc.io \
-X POST \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_gasPrice","params":[]}'

Ready to call this in production?

Free tier covers personal projects. Pay-as-you-go scales without a card.