POST
/
3997273fc956a67dc6982384500e669e
curl --request POST \
  --url https://ronin-mainnet.core.chainstack.com/3997273fc956a67dc6982384500e669e \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_gasPrice",
  "params": []
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": "<string>"
}

The eth_gasPrice method returns the current gas price on the Ronin network, expressed in wei. This value is determined by the recent costs of transactions and is used to calculate the transaction fee (gas used * gas price).

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • None

Response

  • result: The current gas price in wei, returned as a hexadecimal number.

Use case

Understanding the current gas price is essential for users and applications to set appropriate gas limits for transactions, ensuring they are executed efficiently while optimizing for cost. This method provides a quick way to fetch the current market rate for transaction processing on the Ronin network.

Body

application/json
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:eth_gasPrice
params
any[]

Response

200 - application/json
Current gas price in wei
jsonrpc
string
id
integer
result
string