Function networkFromName

  • Returns the default network for a given name

    Parameters

    • name: "mainnet" | "testnet" | "devnet" | "mocknet"

    Returns StacksNetwork

    Example

    networkFromName('mainnet') // same as STACKS_MAINNET
    networkFromName('testnet') // same as STACKS_TESTNET
    networkFromName('devnet') // same as STACKS_DEVNET
    networkFromName('mocknet') // same as STACKS_MOCKNET

Generated using TypeDoc