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>"
}Returns gas price for a specific block_height or block_hash. Using [null] will return the most recent block’s 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>"
}