TRC-950: TRON Chain ID Definition
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 1/5
- Temps estimé
- Moins d'une heure
- Accessibilité débutants
- 68/100
- Type d'issue
- Documentation
- Clarté
- Clairement spécifiée
- Activité
- Active
- Domaine
- documentation
Piste de recherche
Commencez par lire le texte de la proposition dans cette issue, ainsi que TIP-174 et TIP-474, auxquels elle fait référence. Vérifiez que la dérivation du Chain ID et les valeurs de Mainnet, Shasta et Nile sont indiquées de manière cohérente ; le travail est terminé lorsque la définition autonome et les valeurs décimales sont claires et exactes.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
tip: 950
title: TRON Chain ID Definition
author: yanghang8612
discussions-to: https://github.com/tronprotocol/tips/issues/950
status: Draft
type: Standards Track
category: TRC
created: 2026-11-19
requires: 174, 474
Simple Summary
Define the TRON chain ID, its derivation rule, and the decimal values identifying the standard TRON networks.
Abstract
The chain ID, referred to as chainId, is a non-negative integer used to identify a TRON network.
This TIP provides a standalone definition of chainId, specifies its derivation from the genesis block ID, and documents the chain IDs of Mainnet, Shasta, and Nile. All chain ID values in this TIP are expressed in decimal notation.
Motivation
TIP-174 introduced the CHAINID instruction in TVM, and TIP-474 subsequently optimized its return value.
These proposals primarily specify instruction behavior. A standalone definition of the TRON chain ID provides a common reference for wallets, SDKs, applications, and other ecosystem specifications.
Specification
The key word MUST in this document is to be interpreted as described in RFC 2119.
Chain ID
The TRON chain ID is a non-negative integer derived from the genesis block ID of a TRON network.
Its value MUST be determined as follows:
- Obtain the block ID of the genesis block at block height
0. - Extract the last four bytes of that block ID.
- Interpret those bytes as an unsigned big-endian integer.
The resulting integer is the network's chainId. Its value is between 0 and 4294967295, inclusive.
For a given genesis block ID, the derived chain ID remains constant.
Standard Network Values
| Network | Chain ID |
|---|---|
| Mainnet | 728126428 |
| Shasta | 2494104990 |
| Nile | 3448148188 |
These values follow the derivation rule specified above.
Rationale
Deriving the chain ID from the genesis block ID provides a deterministic definition consistent with TIP-474.
A standalone definition and a common decimal presentation allow ecosystem specifications and integration documentation to reference the same network values consistently.
Backwards Compatibility
This TIP defines the network identifier without changing historical or current TVM instruction behavior. Existing activation conditions remain unchanged.
No hard fork or on-chain migration is required.
Implementation
The derivation rule is based on TIP-474. This TIP establishes a reference definition and does not require changes to consensus or TVM execution.
Copyright
Copyright and related rights waived via CC0.
- Langage dominant
- Aucune donnée de langage
- Étoiles
- 341
- Forks
- 347
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de tronprotocol/tips
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
tronprotocol/tips#945 · 8 commentaires ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
tronprotocol/tips#944 · 6 commentaires ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 35/100
tronprotocol/tips#941 · 5 commentaires ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
tronprotocol/tips#938 · 15 commentaires ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
tronprotocol/tips#937 · 7 commentaires ·
Toutes les issues de tronprotocol/tips
Issues similaires
-
documentation
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
molgenis/molgenis-emx2#7059 ·
Les mainteneurs répondent en général sous 1 jour
-
sync-en
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
needs-format
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Niko1221/Strata#6251 · 1 commentaire ·
Les mainteneurs répondent en général sous 5 jours
-
area: plugins documentation good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 83/100
CatVinci-Studio/Textus#727 ·
Les mainteneurs répondent en général sous 1 jour