TRC-950: TRON Chain ID Definition
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- documentation
Hướng nghiên cứu
Bắt đầu bằng cách đọc nội dung đề xuất trong issue này cùng với TIP-174 và TIP-474 được đề xuất tham chiếu. Kiểm tra xem cách suy ra Chain ID và các giá trị của Mainnet, Shasta và Nile có được nêu nhất quán hay không; công việc hoàn tất khi định nghĩa độc lập và các giá trị thập phân rõ ràng, chính xác.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 341
- Fork
- 347
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của tronprotocol/tips
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
tronprotocol/tips#945 · 8 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
tronprotocol/tips#944 · 6 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
tronprotocol/tips#941 · 5 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
tronprotocol/tips#938 · 15 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
tronprotocol/tips#937 · 7 bình luận ·
Tất cả issue của tronprotocol/tips
Issue tương tự
-
marketing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement follow-up
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Add Royalty funding badgeĐang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
crosspoint-reader/crosspoint-reader#4535 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
sweep
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
bketelsen/pi-pocket-team#277 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Wrong release linkedĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Genymobile/scrcpy#7178 ·
Maintainer thường phản hồi trong vòng 3 ngày