plutus-ledger-api-1.30.0.0: Interface to the Plutus ledger for the Cardano ledger.
Safe HaskellSafe-Inferred
LanguageHaskell2010

PlutusLedgerApi.V1.Address

Synopsis

Documentation

data Address Source #

An address may contain two credentials, the payment credential and optionally a StakingCredential.

Constructors

Address 

Fields

Instances

Instances details
Generic Address Source # 
Instance details

Defined in PlutusLedgerApi.V1.Address

Associated Types

type Rep Address :: Type -> Type Source #

Show Address Source # 
Instance details

Defined in PlutusLedgerApi.V1.Address

NFData Address Source # 
Instance details

Defined in PlutusLedgerApi.V1.Address

Methods

rnf :: Address -> () Source #

Eq Address Source # 
Instance details

Defined in PlutusLedgerApi.V1.Address

Ord Address Source # 
Instance details

Defined in PlutusLedgerApi.V1.Address

Eq Address Source # 
Instance details

Defined in PlutusLedgerApi.V1.Address

Methods

(==) :: Address -> Address -> Bool

FromData Address Source # 
Instance details

Defined in PlutusLedgerApi.V1.Address

ToData Address Source # 
Instance details

Defined in PlutusLedgerApi.V1.Address

UnsafeFromData Address Source # 
Instance details

Defined in PlutusLedgerApi.V1.Address

Pretty Address Source # 
Instance details

Defined in PlutusLedgerApi.V1.Address

Methods

pretty :: Address -> Doc ann

prettyList :: [Address] -> Doc ann

Lift DefaultUni Address Source # 
Instance details

Defined in PlutusLedgerApi.V1.Address

Methods

lift :: Address -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni Address Source # 
Instance details

Defined in PlutusLedgerApi.V1.Address

Methods

typeRep :: Proxy Address -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep Address Source # 
Instance details

Defined in PlutusLedgerApi.V1.Address

type Rep Address = D1 ('MetaData "Address" "PlutusLedgerApi.V1.Address" "plutus-ledger-api-1.30.0.0-AeqdHlc23KHCP4Mgl3sbFx" '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 :: ScriptHash -> 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

toScriptHash :: Address -> Maybe ScriptHash Source #

The validator hash of the address, if any

stakingCredential :: Address -> Maybe StakingCredential Source #

The staking credential of an address (if any)