• Fetch the network chain ID from a given network. Typically used for looking up the chain ID for a non-default testnet network.

    Parameters

    • network: StacksNetwork
    • useDefaultOnError: boolean = true

      If the network fetch fails then return the default chain ID already specifed in the network arg.

    Returns Promise<number>

Generated using TypeDoc