---
title: "POST /network_info"
method: POST
path: "/network_info"
---

# POST /network_info

`POST /network_info`

## Request

- The document declares no server URL.
- Auth: none declared

Queries the current state of node network connections. This includes information about active peers, transmitted data, known producers, etc.

## Request body

- JsonRpcRequestForNetworkInfo
  - `id` string, required
  - `jsonrpc` string, required
  - `method` 'network_info', required
  - `params` unknown, required

## Response `200`

- union
  - object
    - `result` RpcNetworkInfoResponse, required
      - `active_peers` RpcPeerInfo[], required
        - `account_id` string, nullable: NEAR Account Identifier. This is a unique, syntactically valid, human-readable account identifier on the NEAR network. [See the crate-level docs for information about validation.](index.html#account-id-rules) Also see [Error kind precedence](AccountId#error-kind-precedence). ## Examples ``` use near_account_id::AccountId; let alice: AccountId = "alice.near".parse().unwrap(); assert!("ƒelicia.near".parse::<AccountId>().is_err()); // (ƒ is not f) ```
        - `addr` string, nullable
        - `id` string, required: Peer id is the public key.
      - `known_producers` RpcKnownProducer[], required: Accounts of known block and chunk producers from routing table.
        - `account_id` string, required: NEAR Account Identifier. This is a unique, syntactically valid, human-readable account identifier on the NEAR network. [See the crate-level docs for information about validation.](index.html#account-id-rules) Also see [Error kind precedence](AccountId#error-kind-precedence). ## Examples ``` use near_account_id::AccountId; let alice: AccountId = "alice.near".parse().unwrap(); assert!("ƒelicia.near".parse::<AccountId>().is_err()); // (ƒ is not f) ```
        - `addr` string, nullable
        - `peer_id` string, required: Peer id is the public key.
      - `num_active_peers` integer, required
      - `peer_max_count` integer, required
      - `received_bytes_per_sec` integer, required
      - `sent_bytes_per_sec` integer, required
    - `id` string, required
    - `jsonrpc` string, required
  - object
    - `error` union, required
      - object
        - `cause` union, required
          - object
            - `info` object, required
              - …
            - `name` 'METHOD_NOT_FOUND', required
          - object
            - `info` object, required
              - …
            - `name` 'PARSE_ERROR', required
        - `name` 'REQUEST_VALIDATION_ERROR', required
      - object
        - `cause` RpcNetworkInfoError, required
          - `info` object, required
            - `error_message` string, required
          - `name` 'INTERNAL_ERROR', required
        - `name` 'HANDLER_ERROR', required
      - object
        - `cause` InternalError, required
          - `info` object, required
            - `error_message` string, required
          - `name` 'INTERNAL_ERROR', required
        - `name` 'INTERNAL_ERROR', required
    - `id` string, required
    - `jsonrpc` string, required

## Changes

- **2025-11-17** `7a2ca0a8ec29`: 4 breaking, 3 warning, 1 info
  - added `subschema #2, subschema #3` to the `oneOf[subschema #2]/error` response property `oneOf` list for the response status `200`
  - the `oneOf[subschema #2]/error` response's property type changed from `object` to no type for status `200`
  - removed the required property `oneOf[subschema #2]/error/code` from the response with the `200` status
  - removed the required property `oneOf[subschema #2]/error/message` from the response with the `200` status
  - …4 more
- **2025-07-17** `3e2ba6171658`: 3 breaking, 3 info
  - request property `params` was restricted to a list of enum values
  - the `params` request property type changed from `object` to no type
  - added `subschema #1, subschema #2` to the response body `oneOf` list for the response status `200`
  - the request property `params` became nullable
  - …2 more

[Operation history](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3/changes/network_info/post.md)

---

[API](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3.md) - [All operations](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3/llms.txt) - [OpenAPI document](https://skmtc.dev/near/apis/near-protocol-json-rpc-api-3/revisions/961a6d5d2b57?raw)
