Skip to main content
POST
/
gas_price
Gas Price
curl --request POST \
  --url https://rpc.mainnet.near.org/gas_price \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "jsonrpc": "<string>",
  "method": "gas_price",
  "params": {
    "block_id": 1
  }
}
'
{
  "result": {
    "gas_price": "<string>"
  },
  "id": "<string>",
  "jsonrpc": "<string>"
}

Body

application/json
id
string
required
jsonrpc
string
required
method
enum<string>
required
Available options:
gas_price
params
RpcGasPriceRequest · object
required

Response

200 - application/json
result
object
required
id
string
required
jsonrpc
string
required