pyth-network / pyth-network/pyth-crosschain

Missing Mainnet TON ID (0x27) in chain-configs.json

Open Beginner friendly
#3,652 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
247
Forks
348
Avg merge
2d 1h
Merged PRs (30d)
27

Description

Context

The /targets/common/chain-configs.json file must include all supported chain IDs for Pyth Crosschain integrations, including the TON Mainnet for price updates.

Evidence / Root Cause

targets/common/chain-configs.json → Missing entry for TON Mainnet:
{
"chainId": "0x27",
"name": "TON Mainnet",
"rpc": ["https://toncenter.com/api/v2/jsonRPC"]
}

Reference (official documentation):

TON blockchain spec confirms chain ID 0x27 (decimal 39) for Mainnet: https://docs.ton.org/learn/overviews/chain-ids

Affected version:

Commit: latest as of [insert current date, e.g., 2026-05-01] — please confirm specific commit hash or tag

Reproducible Test

Attempt to deploy or run a price update service targeting the TON Mainnet → chain ID validation fails → price updates are rejected.

Impact on developers

Integrations with TON cannot proceed due to missing chain configuration. Developers must manually identify and configure the correct chain ID. This slows down integration and increases configuration complexity for TON-based projects.

Impact on users/ecosystem

Delays in activating pricing feeds for TON-based applications. Difficulties in adoption due to incomplete cross-chain configuration support. Telegram Mini Apps projects may migrate to rival oracles → $10M+ TVL at risk.

Verification

Confirmed that TON Mainnet (chain ID 0x27) is not present in the chain-configs.json file. Fault reproduced when trying to use TON with the current configuration.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open targets/common/chain-configs.json and compare its existing chain entries with the requested TON Mainnet configuration. Add the 0x27 entry with the specified name and RPC endpoint, then verify that chain-ID validation and a TON-targeted price update accept the configuration.

Written by the indexing model from the issue text.

Assessment

Domain
blockchain
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.