Chains

TRON

Base58Check under version 0x41, 25 bytes. Decoding is what keeps TRON and Bitcoin's legacy form apart, they are the same width.
create
create("tron")
family
TRON · tron
symbol
TRX · 6 decimals
bip44
195
caip2
tron:0x2b6653dc
explorer
tronscan.org

Address format

A TRON address is Base58Check under version byte 0x41: the version, a 20-byte hash and a 4-byte checksum, 25 bytes in all, always starting with T. Decoding is what keeps the other base58 chains out. Bitcoin's legacy form is the same 25 bytes under 0x00 or 0x05, and a 34-character window would take both. The checksum stays unchecked.

import { getChain } from "@agntn/chains";

const chain = getChain("trx");
chain.assertAddress("TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"); // returned unchanged
chain.type; // "tron"
chain.caip2; // "tron:0x2b6653dc"

Spellings

tron, trx, TRON. The key is tron, the rest resolve through getChain.

@agntn/chains·MIT license· A format check, not proof an address exists. Nothing on this site talks to a chain.