---
title: "Congestion Level"
method: POST
path: "/EXPERIMENTAL_congestion_level"
---

# Congestion Level

`POST /EXPERIMENTAL_congestion_level`

Queries the congestion level of a shard. More info about congestion [here](https://near.github.io/nearcore/architecture/how/receipt-congestion.html?highlight=congestion#receipt-congestion)

## Request body

- JsonRpcRequestForEXPERIMENTALCongestionLevel
  - `id` string, required
  - `jsonrpc` string, required
  - `method` 'EXPERIMENTAL_congestion_level', required
  - `params` union, required
    - object
      - `block_id` union, required
        - integer
        - string
      - `shard_id` integer, required — The shard identifier. It may be an arbitrary number - it does not need to be a number in the range 0..NUM_SHARDS. The shard ids do not need to be sequential or contiguous. The shard id is wrapped in a new type to prevent the old pattern of using indices in range 0..NUM_SHARDS and casting to ShardId. Once the transition if fully complete it potentially may be simplified to a regular type alias.
    - object
      - `chunk_id` string, required

## Response `200`

- union
  - object
    - `result` RpcCongestionLevelResponse, required
      - `congestion_level` number, double, required
    - `id` string, required
    - `jsonrpc` string, required
  - object
    - `error` union, required
      - ErrorWrapperForRpcChunkErrorVariant0
        - `cause` union, required
          - RpcRequestValidationErrorKindVariant0
            - `info` object, required
              - …
            - `name` 'METHOD_NOT_FOUND', required
          - RpcRequestValidationErrorKindVariant1
            - `info` object, required
              - …
            - `name` 'PARSE_ERROR', required
        - `name` 'REQUEST_VALIDATION_ERROR', required
      - ErrorWrapperForRpcChunkErrorVariant1
        - `cause` union, required
          - RpcChunkErrorVariant0
            - `info` object, required
              - …
            - `name` 'INTERNAL_ERROR', required
          - RpcChunkErrorVariant1
            - `info` object, required
            - `name` 'UNKNOWN_BLOCK', required
          - RpcChunkErrorVariant2
            - `info` object, required
              - …
            - `name` 'INVALID_SHARD_ID', required
          - RpcChunkErrorVariant3
            - `info` object, required
              - …
            - `name` 'UNKNOWN_CHUNK', required
        - `name` 'HANDLER_ERROR', required
      - ErrorWrapperForRpcChunkErrorVariant2
        - `cause` InternalError, required
          - `info` object, required
            - `error_message` string, required
          - `name` 'INTERNAL_ERROR', required
        - `name` 'INTERNAL_ERROR', required
    - `id` string, required
    - `jsonrpc` string, required

---

[API](https://skmtc.net/near/apis/near-protocol-json-rpc-api-2.md) · [All operations](https://skmtc.net/near/apis/near-protocol-json-rpc-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/near/near-protocol-json-rpc-api-2/revisions/2985730b17e5/schema)
