Chains
Litecoin
Bitcoin's rules under Litecoin's versions and the ltc prefix. The deprecated 3… script form is left out because its bytes are a Bitcoin address, byte for byte.
- create
- create("litecoin")
- family
- UTXO · utxo
- symbol
- LTC · 8 decimals
- bip44
- 2
- caip2
- bip122:12a765e31ffd4059bada1e25190f6e98
- explorer
- litecoinspace.org
Address format
The same two branches as Bitcoin, with Litecoin's constants.
Legacy L… is version 0x30 and M… is 0x32, 25 Base58Check bytes each, checksum unchecked. The deprecated 3… form under 0x05 isn't accepted: those bytes are, byte for byte, a Bitcoin script address, and a validator that says yes to both isn't telling you anything.
SegWit ltc1… runs the BIP-173 and BIP-350 check under the ltc prefix: Bech32 for v0, Bech32m for v1 and up, program length, padding, checksum. A mistyped ltc1 address fails the way a mistyped bc1 one does.
import { getChain } from "@agntn/chains";
const chain = getChain("ltc");
chain.assertAddress("ltc1qhdhvrwe6rgqns8fz28tee0hphr5x7ulw5exv4w"); // returned unchanged
chain.type; // "utxo"
chain.caip2; // "bip122:12a765e31ffd4059bada1e25190f6e98"
Spellings
litecoin, ltc, Litecoin. The key is litecoin, the rest resolve through getChain.