> ## 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 API method that returns the network ID using Ethereum-compatible JSON-RPC format. jsonrpc net_version on TRON via Chainstack.

TRON API method that returns the network ID using Ethereum-compatible JSON-RPC format. This provides network identification for TRON using familiar Ethereum network conventions.

## Parameters

* `jsonrpc` — the JSON-RPC protocol version (always "2.0")
* `method` — the method name (always "net\_version")
* `params` — parameters array (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 (mainnet/testnet) for Ethereum-compatible applications
* Supporting network-specific configuration in wallets and tools
* Enabling proper network detection for multi-chain applications
* Providing network validation for transaction routing


## 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

````