ChainConfig<N, C>: {
    blockTime: number;
    chainId: number;
    contracts: Contracts;
    explorer?: explorer.ExplorerSettings;
    finalityThreshold: number;
    key: C;
    nativeChainId: string | bigint;
    nativeTokenDecimals: number;
    network: N;
    platform: ChainToPlatform<C>;
    rpc: string;
    tokenMap?: ChainTokens;
    wrappedNative?: Token;
}

Configuration for a given Chain

Type Parameters

  • N extends Network

  • C extends Chain

Type declaration

  • blockTime: number

    Average block time in milliseconds

  • chainId: number

    Wormhole Chain Id for this chain

  • contracts: Contracts

    Contract addresses for this chain

  • Optional explorer?: explorer.ExplorerSettings
  • finalityThreshold: number

    Number of blocks before a transaction is considered final

  • key: C
  • nativeChainId: string | bigint

    Native chain id may be eip155 or genesis hash or network moninker or something else depending on the platform

  • nativeTokenDecimals: number

    Number of decimal places for the native gas token (e.g. 18 for ETH)

  • network: N
  • platform: ChainToPlatform<C>
  • rpc: string

    Rpc address for this chain

  • Optional tokenMap?: ChainTokens
  • Optional wrappedNative?: Token

Generated using TypeDoc