Gas Price by Block
gas_price request type
This endpoint allows you to get the gas price for a specific block on the NEAR blockchain.
Live Response
Responses from the selected endpoint appear here after you run a request.
Live response output will appear here after you run a request.
Request reference
application/jsonThis operation accepts a JSON-RPC body over POST to /.
Required request inputs: yes
{
"jsonrpc": "2.0",
"id": "fastnear",
"method": "gas_price",
"params": {
"block_id": "6sddgq8nkENAz4f8qR72qxRPM25QWNBVMrkYr63DgC2E"
}
}Request schema
object
requires jsonrpc, id, method, paramsjsonrpc *string2.0id *stringmethod *stringgas_priceparams *objectblock_id *one ofBlock height (integer) or block hash (string)
integer
integer
Block height
string
string
Base58-encoded block hash
Response reference
200 application/jsonSuccessful response
Response schema
objectJsonRpcResponse
requires jsonrpc, idjsonrpc *string2.0id *one ofstringnumber
resultobjectgas_price *stringAmount in yoctoNEAR
errorobjectcodeintegermessagestringdataobject