plutus-ledger-api-1.0.0.1: Interface to the Plutus ledger for the Cardano ledger.
Safe Haskell None
Language Haskell2010

Plutus.V1.Ledger.Address

Synopsis

Documentation

data Address Source #

Address with two kinds of credentials, normal and staking.

Instances

Instances details
Eq Address Source #
Instance details

Defined in Plutus.V1.Ledger.Address

Ord Address Source #
Instance details

Defined in Plutus.V1.Ledger.Address

Show Address Source #
Instance details

Defined in Plutus.V1.Ledger.Address

Generic Address Source #
Instance details

Defined in Plutus.V1.Ledger.Address

NFData Address Source #
Instance details

Defined in Plutus.V1.Ledger.Address

Pretty Address Source #
Instance details

Defined in Plutus.V1.Ledger.Address

ToData Address Source #
Instance details

Defined in Plutus.V1.Ledger.Address

FromData Address Source #
Instance details

Defined in Plutus.V1.Ledger.Address

UnsafeFromData Address Source #
Instance details

Defined in Plutus.V1.Ledger.Address

Eq Address Source #
Instance details

Defined in Plutus.V1.Ledger.Address

Lift DefaultUni Address Source #
Instance details

Defined in Plutus.V1.Ledger.Address

Typeable DefaultUni Address Source #
Instance details

Defined in Plutus.V1.Ledger.Address

type Rep Address Source #
Instance details

Defined in Plutus.V1.Ledger.Address

type Rep Address = D1 (' MetaData "Address" "Plutus.V1.Ledger.Address" "plutus-ledger-api-1.0.0.1-GlUFhIIE0LJGuJDDdHh5lQ" ' False ) ( C1 (' MetaCons "Address" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "addressCredential") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Credential ) :*: S1 (' MetaSel (' Just "addressStakingCredential") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( Maybe StakingCredential ))))

pubKeyHashAddress :: PubKeyHash -> Address Source #

The address that should be targeted by a transaction output locked by the public key with the given hash.

scriptHashAddress :: ValidatorHash -> Address Source #

The address that should be used by a transaction output locked by the given validator script hash.

toPubKeyHash :: Address -> Maybe PubKeyHash Source #

The PubKeyHash of the address, if any

toValidatorHash :: Address -> Maybe ValidatorHash Source #

The validator hash of the address, if any

stakingCredential :: Address -> Maybe StakingCredential Source #

The staking credential of an address (if any)