Chains
Sui
The Move format, same as Aptos: 64 hex digits behind 0x or the single digit short form. Coin type 784, sui:mainnet.
- create
- create("sui")
- family
- Move · move
- symbol
- SUI · 9 decimals
- bip44
- 784
- caip2
- sui:mainnet
- explorer
- suiscan.xyz
Address format
The Move family format, shared with Aptos: 0x and 64 hex digits, or a single hex digit for the special addresses. 0x2 is the Sui framework and 0x000…0002 is the same address written out. Forty hex digits, the EVM width, is rejected on purpose.
No alias beyond the name. Three letters is already the key.
import { getChain } from "@agntn/chains";
const chain = getChain("sui");
chain.assertAddress("0x0000000000000000000000000000000000000000000000000000000000000002"); // returned unchanged
chain.type; // "move"
chain.caip2; // "sui:mainnet"
Spellings
sui, Sui. The key is sui, the rest resolve through getChain.
Aptos
The Move format: all 32 bytes of hex written out, or the single digit AIP-40 short form for the special addresses. Nothing in between.
TON (The Open Network)
The TEP-2 user-friendly form in either base64 alphabet: 36 bytes, a bounceable or non-bounceable tag, one of the two workchains that exist.