plutus-ledger-api-1.36.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

HasBlueprintDefinition Address Source # 
Instance details

Defined in PlutusLedgerApi.V1.Address

Associated Types

type Unroll Address :: [Type]

Methods

definitionId :: DefinitionId

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

(HasSchemaDefinition Credential referencedTypes, HasSchemaDefinition (Maybe StakingCredential) referencedTypes) => HasBlueprintSchema Address referencedTypes Source # 
Instance details

Defined in PlutusLedgerApi.V1.Address

Methods

schema :: Schema referencedTypes

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.36.0.0-5YP34Z4WNIC2QzLmhyGjha" '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))))
type Unroll Address Source # 
Instance details

Defined in PlutusLedgerApi.V1.Address

type Unroll Address = Insert Address (GUnroll (IfStuckRep (RepIsStuckError Address :: Type -> Type) (Rep Address)))

pubKeyHashAddress :: PubKeyHash -> Address Source #

The address that should be targeted by a transaction output locked by the public key with the given 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

scriptHashAddress :: ScriptHash -> Address Source #

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

stakingCredential :: Address -> Maybe StakingCredential Source #

The staking credential of an address (if any)