fromSupportedNetwork
scrypt-ts-opcat / fromSupportedNetwork
Function: fromSupportedNetwork()
fromSupportedNetwork(
network
):Network
Defined in: packages/scrypt-ts-opcat/src/networks.ts:32
Converts a supported network string into its corresponding Network object.
Parameters
network
The supported network identifier ('opcat-mainnet', 'opcat-testnet', or 'opcat-regtest')
Returns
The corresponding Network object
Throws
When an unsupported network configuration is provided