TriportRPC

Tron chain ID, RPC URL and network config

Last updated:

Tron network identifiers

Tron mainnet identifiers
IdentifierValueSource
Chain ID728126428 (0x2b6653dc)
eth_chainId returns the hex form.
TRON docs: eth_chainId
Network ID0x2b6653dc
Returned by net_version. TRON documents it as the same value as the chain ID; it comes back in hex (checked on api.trongrid.io/jsonrpc, 23.09.2026).
TRON docs: net_version
Genesis block ID00000000000000001ebf88508a03865c71d452e25f4d51194196a1d22b6653dc
The chain ID is the last 4 bytes of this hash (…2b6653dc).
TRON docs: eth_chainId · CAIP-2 tron namespace
CAIP-2 IDtron:728126428
The chain identifier multichain wallets and WalletConnect use.
CAIP-2 tron namespace
Currency symbolTRXTriport chain registry

The chain ID is signed into every transaction (EIP-155); the network ID is what net_version reports. They are separate values that happen to match on most chains — see chain ID vs network ID and the chain ID glossary entry.

Tron RPC URLs

Tron mainnet RPC endpoints
Triport RPC URL (header auth)https://triport.io/rpc/tron
Triport RPC URL (keyed)https://triport.io/r/<API_KEY>/tron
Required scopetron:rpc
Public RPC by TronGridhttps://api.trongrid.io/jsonrpc
Rate-limited public endpoint listed in TRON's developer docs; TronGrid may limit requests by API key, account, IP, endpoint type and time window. TRON docs: networks · TRON docs: TronGrid

Public-endpoint limits are as each operator publishes them, checked 23 September 2026.

Plans and per-category rate limits: pricing. Network overview: Tron RPC; method reference: Tron documentation.

Tron config for viem, ethers, Hardhat and Foundry

Tron uses its own address format and wallets, so MetaMask's wallet_addEthereumChain and wagmi's EVM connectors do not apply here — the EVM JSON-RPC surface is for reading with viem, ethers, Hardhat and Foundry.

viem

import { createPublicClient, defineChain, http } from "viem";

export const tron = defineChain({
  id: 728126428,
  name: "Tron",
  nativeCurrency: { name: "TRX", symbol: "TRX", decimals: 18 },
  rpcUrls: { default: { http: ["https://triport.io/r/<API_KEY>/tron"] } },
});

export const client = createPublicClient({ chain: tron, transport: http() });

ethers v6

import { JsonRpcProvider, Network } from "ethers";

const network = Network.from({ name: "tron", chainId: 728126428 });
export const provider = new JsonRpcProvider("https://triport.io/r/<API_KEY>/tron", network, { staticNetwork: network });

Hardhat

// hardhat.config.ts
export default {
  networks: {
    tron: { url: "https://triport.io/r/<API_KEY>/tron", chainId: 728126428 },
  },
};

Foundry

# foundry.toml
[rpc_endpoints]
tron = "https://triport.io/r/<API_KEY>/tron"

curl (header auth)

curl https://triport.io/rpc/tron \
  -H "x-token: <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}'

Keys in URLs vs headers

A keyed URL is the same credential as a header, in a less private place: it lands in shell history, CI logs and screenshots. Use it only where a header is impossible (wallets, hardhat.config, foundry.toml), send x-token from server code, and rotate a key that leaked.

Verify you are on Tron mainnet

Call eth_chainId first. It must return 0x2b6653dc — a client whose configured chain ID disagrees with the reply refuses to connect, which explains most failures when adding a network by hand.

curl https://triport.io/rpc/tron \
  -H "x-token: <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}'

Sources: the chain's own documentation and the CAIP-2 namespace specs cited in the tables above; EVM chain IDs come from Triport's chain registry and match them.

FAQ

What is the Tron chain ID?
728126428 in decimal, 0x2b6653dc in hex — eth_chainId returns the hex form. It is the last 4 bytes of the Tron genesis block hash; the CAIP-2 ID is tron:728126428.
What is the Tron network ID?
net_version returns 0x2b6653dc. On Tron it is the same value as the chain ID, returned in hex.
What is the Tron RPC URL?
On Triport: https://triport.io/rpc/tron with your API key in the x-token header, or https://triport.io/r/<API_KEY>/tron where a header is impossible (wallets, config files). TronGrid also runs a public endpoint, https://api.trongrid.io/jsonrpc; it is rate-limited, and the limits its operator publishes are cited in the RPC URL table.
Can I add Tron to MetaMask?
Not as a wallet network: MetaMask does not manage TRX accounts through wallet_addEthereumChain. Tron's EVM JSON-RPC surface is for reading with viem, ethers, Hardhat or Foundry using chain ID 728126428.
Is my API key sent to Triport when I use this page?
No. Snippets are generated in your browser: the key is never submitted, never stored and never written into the page URL, which is why this page has no shareable link.