> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# eth_gasPrice | Tempo

> Tempo API method that returns the current gas price in wei. On Tempo, transaction fees are paid in TIP-20 stablecoins, not a native token.

Tempo API method that returns the current gas price in wei. On Tempo, transaction fees are paid in TIP-20 stablecoins, not a native token. The gas price returned is used to calculate the USD-denominated fee.

## Parameters

* `none`

## Response

* `result` — the current gas price in wei encoded as hexadecimal

## `eth_gasPrice` code examples

<CodeGroup>
  ```javascript ethers.js theme={"system"}
  const ethers = require('ethers');
  const NODE_URL = "CHAINSTACK_NODE_URL";
  const provider = new ethers.JsonRpcProvider(NODE_URL);

  const getGasPrice = async () => {
      const feeData = await provider.getFeeData();
      console.log(`Gas price: ${feeData.gasPrice} wei`);
    };

  getGasPrice();
  ```

  ```python web3.py theme={"system"}
  from web3 import Web3

  node_url = "CHAINSTACK_NODE_URL"

  web3 = Web3(Web3.HTTPProvider(node_url))
  print(web3.eth.gas_price)
  ```

  ```bash cURL theme={"system"}
  curl -X POST "CHAINSTACK_NODE_URL" \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}'
  ```
</CodeGroup>


## OpenAPI

````yaml openapi/tempo_node_api/gas_data/eth_gasPrice.json POST /
openapi: 3.0.0
info:
  title: eth_gasPrice Tempo example
  version: 1.0.0
  description: This is an API example for eth_gasPrice for Tempo.
servers:
  - url: https://tempo-mainnet.core.chainstack.com/c3ce2925b51f1ed18719fe8a23bbdccf
security: []
paths:
  /:
    post:
      tags:
        - Gas data
      summary: eth_gasPrice
      operationId: tempo-eth-gasPrice
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_gasPrice
                params:
                  type: array
                  items: {}
                  default: []
                id:
                  type: integer
                  default: 1
      responses:
        '200':
          description: The current gas price
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: string
                    description: The current gas price in wei encoded as hexadecimal

````