HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Modulecardano-addresses-4.0.2Haskell2010

Cardano.Address

  • 4 types
  • 5 classes
  • 9 values

Address

8 declarations
newtypenewtype Address
#

An Address type representing Cardano addresses. Internals are irrevelant to the user.

Instances6Eq, Ord, Show, Generic, NFData, Rep
classclass HasNetworkDiscriminant key => PaymentAddress (key :: Depth -> Type -> Type) where
#

Encoding of addresses for certain key types and backend targets.

Methods

Instances2PaymentAddress
classclass PaymentAddress key => PointerAddress (key :: Depth -> Type -> Type) where
#

Encoding of pointer addresses for payment key type, pointer to delegation certificate in the blockchain and backend targets.

Methods

datadata ChainPointer
#

A ChainPointer type representing location of some object in the blockchain (eg., delegation certificate). This can be achieved unambiguously by specifying slot number, transaction index and the index in the object list (eg., certification list). For delegation certificates, alternatively, the delegation key can be used and then DelegationAddress can be used.

Constructors

Instances7Eq, Ord, Show, Generic, NFData, ToJSON, …

Conversion From / To Text

10 declarations
valuebech32 :: Address -> Text
#

Encode a Shelley Address to bech32 Text, using addr or addr_test as a human readable prefix (depending on the network tag in the address).

classclass HasNetworkDiscriminant (key :: Depth -> Type -> Type) where
#
Instances3HasNetworkDiscriminant
Instances5Eq, Show, Generic, NFData, Rep
newtypenewtype NetworkTag
#

Magic constant associated with a given network. This is mainly used in two places:

  1. In Address payloads, to discriminate addresses between networks.

  2. At the network-level, when doing handshake with nodes.

Instances6Eq, Show, Generic, NFData, ToJSON, Rep