toSupportedNetwork
scrypt-ts-opcat / toSupportedNetwork
Function: toSupportedNetwork()
toSupportedNetwork(
network
):SupportedNetwork
Defined in: packages/scrypt-ts-opcat/src/networks.ts:13
Converts a Network object to a SupportedNetwork string.
Parameters
network
The network configuration to check
Returns
The corresponding supported network name ('opcat-mainnet', 'opcat-testnet', or 'opcat-regtest')
Throws
If the network configuration is not supported