Type Alias: Chain
type Chain = {
blockExplorers?: {
[key: string]: ChainBlockExplorer;
default: ChainBlockExplorer;
};
contracts?: Prettify<{
[key: string]:
| undefined
| ChainContract
| {
[sourceId: number]:
| undefined
| ChainContract;
};
} & {
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.
Properties
blockExplorers?
optional blockExplorers: {
[key: string]: ChainBlockExplorer;
default: ChainBlockExplorer;
};
Defined in: support/wallet-common/lib/chains/viem/type.ts:9
Collection of block explorers
Index Signature
[key: string]: ChainBlockExplorer
default
default: ChainBlockExplorer;
contracts?
optional contracts: Prettify<{
[key: string]:
| undefined
| ChainContract
| {
[sourceId: number]:
| undefined
| ChainContract;
};
} & {
ensRegistry?: ChainContract;
ensUniversalResolver?: ChainContract;
multicall3?: ChainContract;
universalSignatureVerifier?: ChainContract;
}>;
Defined in: support/wallet-common/lib/chains/viem/type.ts:16
Collection of contracts
id
id: number;
Defined in: support/wallet-common/lib/chains/viem/type.ts:34
ID in number form
name
name: string;
Defined in: support/wallet-common/lib/chains/viem/type.ts:36
Human-readable name
nativeCurrency
nativeCurrency: ChainNativeCurrency;
Defined in: support/wallet-common/lib/chains/viem/type.ts:38
Currency used by chain
rpcUrls
rpcUrls: {
[key: string]: ChainRpcUrls;
default: ChainRpcUrls;
};
Defined in: support/wallet-common/lib/chains/viem/type.ts:40
Collection of RPC endpoints
Index Signature
[key: string]: ChainRpcUrls
default
default: ChainRpcUrls;
sourceId?
optional sourceId: number;
Defined in: support/wallet-common/lib/chains/viem/type.ts:45
Source Chain ID (ie. the L1 chain)
testnet?
optional testnet: boolean;
Defined in: support/wallet-common/lib/chains/viem/type.ts:47
Flag for test networks