cometa-0.1.0.0: Idiomatic Haskell bindings to cardano-c
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cometa.NetworkMagic

Description

Named protocol network magics. These are full 32-bit values, distinct from the four-bit Shelley address tag in Cometa.NetworkId. Custom networks can use any Word32; these constants do not select a provider or a network endpoint.

Synopsis

Documentation

mainnet :: Word32 Source #

Cardano mainnet protocol magic, 764824073.

preprod :: Word32 Source #

Preprod protocol magic, 1.

preview :: Word32 Source #

Preview protocol magic, 2.

sanchonet :: Word32 Source #

SanchoNet protocol magic, 4. A protocol identifier does not imply that a hosted endpoint is currently available.

name :: Word32 -> Text Source #

Lowercase name for the four known magics, or "unknown" for any other value. Custom magic numbers remain valid even when they have no known name.