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

# jsonrpc net_version | TRON

> TRON net_version JSON-RPC method — retrieve the current TRON network ID for chain identification via the Ethereum-compatible JSON-RPC interface on Chainstack.

TRON API method that returns the network ID of the TRON network, providing an Ethereum-compatible interface for accessing TRON blockchain data.

## Parameters

* `jsonrpc` — the JSON-RPC protocol version (always "2.0")
* `method` — the method name (always "net\_version")
* `params` — array containing method parameters (empty for this method)
* `id` — request identifier (number or string)

## Response

* `jsonrpc` — the JSON-RPC protocol version ("2.0")
* `id` — the request identifier that matches the request
* `result` — the network ID as a string

## Use case

The `jsonrpc net_version` method is used for:

* Identifying the TRON network through Web3-compatible interfaces
* Implementing network validation logic in multi-chain applications
* Building network-aware dApps that adapt behavior based on the connected network
* Ensuring transaction safety by verifying the correct network before operations


## OpenAPI

````yaml openapi/tron_node_api/jsonrpc_net_version.json POST /95e61622bf6a8af293978377718e3b77/jsonrpc
openapi: 3.0.0
info:
  title: net_version example
  version: 1.0.0
  description: >-
    This is an API example for net_version, a method to get the current network
    ID on the TRON network through Ethereum-compatible JSON-RPC interface.
servers:
  - url: https://tron-mainnet.core.chainstack.com
security: []
paths:
  /95e61622bf6a8af293978377718e3b77/jsonrpc:
    post:
      tags:
        - TRON JSON-RPC Operations
      summary: net_version
      operationId: netVersion
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - method
                - id
              properties:
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: net_version
                id:
                  type: integer
                  default: 1
                params:
                  type: array
                  default: []
                  items: {}
      responses:
        '200':
          description: Current network ID
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: string
                    description: The network ID as a string

````