Skip to main content
Version: 1.14.0

Variable: supportedChains

const supportedChains: Partial<{ [F in ChainFamily]: ChainStatic<F> }> = {}

Defined in: supported-chains.ts:13

Global registry of Chain classes by family, which family-generic helpers (decodeAddress, decodeExtraArgs, decodeMessage, getLeafHasher, ...) dispatch to.

SDK chain classes add themselves (??=) when their module is evaluated, so they never replace an entry set before; assign to register a derived or custom class, e.g. supportedChains[ChainFamily.EVM] = MyEVMChain.