> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uniblock.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# network_info

> Returns the current state of node network connections such as active peers, transmitted data, etc.

### Parameters

<ParamField query="chainId" type="string" default="397" required>
  Unique identifier for a blockchain network.
</ParamField>

<ParamField body="id" type="number" default={1} required>
  Request identifier used to match responses.
</ParamField>

<ParamField body="jsonrpc" type="string" default="2.0" required>
  JSON-RPC version.
</ParamField>

<ParamField body="method" type="string" default="network_info" required>
  JSON-RPC method name.
</ParamField>

This method does not require any parameters.

### Returns

<ResponseField name="result" type="object">
  Current node networking status including peers, bandwidth usage, and known producers.

  <Expandable title="properties">
    <ResponseField name="active_peers" type="array">
      Information about the active peers.

      <Expandable title="items">
        <ResponseField name="items[]" type="object">
          <Expandable title="properties">
            <ResponseField name="id" type="string">
              The id of the active peer.
            </ResponseField>

            <ResponseField name="addr" type="string">
              The address of the active peer.
            </ResponseField>

            <ResponseField name="account_id" type="string">
              The identifier for the account associated with this peer, if available.
            </ResponseField>
          </Expandable>
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="num_active_peers" type="integer">
      The number of active peers.
    </ResponseField>

    <ResponseField name="peer_max_count" type="integer">
      The maximum count of peers that can be connected to this node.
    </ResponseField>

    <ResponseField name="sent_bytes_per_sec" type="integer">
      The amount of bytes sent per second.
    </ResponseField>

    <ResponseField name="received_bytes_per_sec" type="integer">
      The amount of bytes received per second.
    </ResponseField>

    <ResponseField name="known_producers" type="array">
      The known block producers.

      <Expandable title="items">
        <ResponseField name="items[]" type="object">
          <Expandable title="properties">
            <ResponseField name="account_id" type="string">
              The identifier for the account.
            </ResponseField>

            <ResponseField name="addr" type="string">
              The peer address.
            </ResponseField>

            <ResponseField name="peer_id" type="string">
              The account id of the peer.
            </ResponseField>
          </Expandable>
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash Curl theme={null}
  curl --request POST \
    --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=397 \
    --header 'content-type: application/json' \
    --data '{
      "id": 1,
      "jsonrpc": "2.0",
      "method": "network_info",
      "params": []
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": {}
  }
  ```
</ResponseExample>
