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>"
}Documentation Index
Fetch the complete documentation index at: https://docs.near.org/llms.txt
Use this file to discover all available pages before exploring further.
Was this page helpful?