Module

Cardano.Plutus.Types.Address

#Address

newtype Address

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

https://github.com/IntersectMBO/plutus/blob/eceae8831b8186655535dee587486dbd3fd037f4/plutus-ledger-api/src/PlutusLedgerApi/V1/Address.hs#L32

Constructors

Instances

#pubKeyHashAddress

pubKeyHashAddress :: PaymentPubKeyHash -> Maybe Credential -> Address

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

#scriptHashAddress

scriptHashAddress :: ValidatorHash -> Maybe Credential -> Address

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

#fromCardano

Modules