Skip to content

Type Alias: Chain

type Chain = {
  blockExplorers: {
   [key: string]: ChainBlockExplorer;   default: ChainBlockExplorer;
    };
  contracts: Prettify<{} & {
     ensRegistry: ChainContract;
     ensUniversalResolver: ChainContract;
     multicall3: ChainContract;
     universalSignatureVerifier: ChainContract;
    }>;
  id: number;
  name: string;
  nativeCurrency: ChainNativeCurrency;
  rpcUrls: {
   [key: string]: ChainRpcUrls;   default: ChainRpcUrls;
    };
  sourceId: number;
  testnet: boolean;
};

Defined in: support/wallet-common/lib/chains/viem/type.ts:7

Viem-compatible Chain type, to work around API-extractor issues.

Type declaration

blockExplorers?

{
[key: string]: ChainBlockExplorer;   default: ChainBlockExplorer;
}

Collection of block explorers

contracts?

optional contracts: Prettify<{} & {
  ensRegistry: ChainContract;
  ensUniversalResolver: ChainContract;
  multicall3: ChainContract;
  universalSignatureVerifier: ChainContract;
}>;

Collection of contracts

id

id: number;

ID in number form

name

name: string;

Human-readable name

nativeCurrency

nativeCurrency: ChainNativeCurrency;

Currency used by chain

rpcUrls

{
[key: string]: ChainRpcUrls;   default: ChainRpcUrls;
}

Collection of RPC endpoints

sourceId?

optional sourceId: number;

Source Chain ID (ie. the L1 chain)

testnet?

optional testnet: boolean;

Flag for test networks