Docs
Supported ChainsTempoJSON-RPC APITransaction Methods

eth_gasPrice - Tempo RPC Method

Get current gas price on Tempo. Essential for transaction cost estimation for merchant settlement, treasury operations, payout automation, and stablecoin-native financial applications.

Returns the current gas price on Tempo in wei.

Why Tempo? Build on a payments-first EVM chain with deterministic settlement and stablecoin-native fees with no native gas token, fees denominated in supported USD stablecoins, and full EVM RPC compatibility.

Use Cases

The eth_gasPrice method is essential for:

  • Transaction pricing - Set appropriate gas prices
  • Cost estimation - Calculate transaction costs before sending
  • Gas monitoring - Track network congestion
  • DeFi operations - Optimize costs for merchant settlement, treasury operations, payout automation, and stablecoin-native financial applications

Request Parameters

Request

This method accepts no parameters.

Response Body

Response
resultQUANTITY

Current gas price in wei (hexadecimal)

Code Examples

Bash
curl -X POST https://api-tempo-mainnet.n.dwellir.com/YOUR_API_KEY \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_gasPrice",
    "params": [],
    "id": 1
  }'

Error Handling

Error CodeMessageDescription
-32603Internal errorNode error