Skip to main content

Congestion Level (Experimental)

EXPERIMENTAL_congestion_level request type

This endpoint allows you to get the congestion level on the NEAR blockchain.

Network
FastNear API keyNo saved key
Get API key
Endpointhttps://rpc.mainnet.fastnear.com
Authnone detected
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/json

This operation accepts a JSON-RPC body over POST to /.

Required request inputs: yes

{
  "jsonrpc": "2.0",
  "id": "fastnear",
  "method": "EXPERIMENTAL_congestion_level",
  "params": {
    "block_id": "6sddgq8nkENAz4f8qR72qxRPM25QWNBVMrkYr63DgC2E",
    "shard_id": 10
  }
}

Request schema

object
requires jsonrpc, id, method, params
jsonrpc *string
2.0
id *string

Example: fastnear

method *string
EXPERIMENTAL_congestion_level
params *objectnullable
requires block_id, shard_id
block_id *one of

Block height (integer) or block hash (string)

integer
integer

Block height

string
string

Base58-encoded block hash

shard_id *integer

Shard identifier

Response reference

200 application/json

Successful response

Response schema

objectJsonRpcResponse
requires jsonrpc, id
jsonrpc *string
2.0
id *one of
stringnumber
resultobject
requires congestion_level
congestion_level *number
errorobject
codeinteger
messagestring
dataobject