Copyright | No rights reserved |
---|---|
License | MIT |
Maintainer | jprupp@protonmail.ch |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Network constants for various networks, including Bitcoin SegWit (BTC), Bitcoin Cash (BCH), and corresponding public test and private regression test networks.
Synopsis
- data Network = Network {
- getNetworkName :: !String
- getNetworkIdent :: !String
- getAddrPrefix :: !Word8
- getScriptPrefix :: !Word8
- getSecretPrefix :: !Word8
- getExtPubKeyPrefix :: !Word32
- getExtSecretPrefix :: !Word32
- getNetworkMagic :: !Word32
- getGenesisHeader :: !BlockHeader
- getMaxBlockSize :: !Int
- getMaxSatoshi :: !Word64
- getHaskoinUserAgent :: !ByteString
- getDefaultPort :: !Int
- getAllowMinDifficultyBlocks :: !Bool
- getPowNoRetargetting :: !Bool
- getPowLimit :: !Integer
- getBip34Block :: !(BlockHeight, BlockHash)
- getBip65Height :: !BlockHeight
- getBip66Height :: !BlockHeight
- getTargetTimespan :: !Word32
- getTargetSpacing :: !Word32
- getCheckpoints :: ![(BlockHeight, BlockHash)]
- getBip44Coin :: !Word32
- getSeeds :: ![String]
- getSigHashForkId :: !(Maybe Word32)
- getEdaBlockHeight :: !(Maybe Word32)
- getDaaBlockHeight :: !(Maybe Word32)
- getAsertActivationTime :: !(Maybe Word32)
- getAsertHalfLife :: !Integer
- getSegWit :: !Bool
- getCashAddrPrefix :: !(Maybe Text)
- getBech32Prefix :: !(Maybe Text)
- getReplaceByFee :: !Bool
- getHalvingInterval :: !Word32
- btc :: Network
- btcTest :: Network
- btcRegTest :: Network
- bch :: Network
- bchTest :: Network
- bchRegTest :: Network
- allNets :: [Network]
- netByName :: String -> Maybe Network
- netByIdent :: String -> Maybe Network
Constants
Constants for network.
Network | |
|
Instances
btcRegTest :: Network Source #
RegTest for Bitcoin SegWit network.
bchRegTest :: Network Source #
RegTest for Bitcoin Cash network.