# Network Module

Network module handles blockchain network metadata accessing.

#### 10.1 Info

Get general network info.

{% tabs %}
{% tab title="Python" %}
Function Name

```python
info
```

{% tabs %}
{% tab title="Query" %}

* Example Code

  ```python
  from crypto_com_developer_platform_client import Network

  data = Network.info()
  print(data)
  ```

{% endtab %}

{% tab title="Response" %}

* Returns

  ```python
  Network metadata.
  ```
* Errors

  ```python
  ValueError: If the Network class is not initialized with a Client instance.
  ```
* Example Return

  ```python
  {'status': 'Success', 'data': {'name': 'example-name', 'chainId': 'example-chain-id'}}
  ```

{% endtab %}
{% endtabs %}
{% endtab %}
{% endtabs %}

#### 10.2 Chain ID

Get the current chain ID.

{% tabs %}
{% tab title="Python" %}
Function Name

```python
chain_id
```

{% tabs %}
{% tab title="Query" %}

* Example Code

  ```python
  from crypto_com_developer_platform_client import Network

  chainId = Network.chain_id()
  print(chainId)
  ```

{% endtab %}

{% tab title="Response" %}

* Returns

  ```python
  Chain ID value.
  ```
* Errors

  ```python
  ValueError: If the Network class is not initialized with a Client instance.
  ```
* Example Return

  ```python
  {'status': 'Success', 'data': {'chainId': 'example-chain-id'}}
  ```

{% endtab %}
{% endtabs %}
{% endtab %}
{% endtabs %}

10.3 Client Version

Get the connected node's client version.

{% tabs %}
{% tab title="Python" %}
Function Name

```python
client_version
```

{% tabs %}
{% tab title="Query" %}

* Example Code

  ```python
  from crypto_com_developer_platform_client import Network

  version = Network.client_version()
  print(version)
  ```

{% endtab %}

{% tab title="Response" %}

* Returns

  ```python
  Client version string.
  ```
* Errors

  ```python
  ValueError: If the Network class is not initialized with a Client instance.
  ```
* Example Return

  ```python
  {'status': 'Success', 'data': {'version': 'example-version'}}
  ```

{% endtab %}
{% endtabs %}
{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ai-agent-sdk-docs.crypto.com/crypto.com-developer-platform/on-chain-developer-platform-client-sdk/network-module.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
