HORIZON HASKELLDocslts/ghc-9.14.x99ffbb82026-10-19Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 99ffbb8 · 2026-10-19

Modulecardano-addresses-4.0.2Haskell2010

Cardano.Address

Contents
  1. Address
  2. Conversion From / To Text
Synopsis

Address

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 => DelegationAddress (key :: Depth -> Type -> Type) where

Encoding of delegation addresses for certain key types and backend targets.

Methods

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

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