| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
PlutusLedgerApi.V4.Data.Address
Description
Synopsis
- newtype AccountId = AccountId Credential
- data Address
- pattern Address :: Credential -> Maybe AccountId -> Address
- matchAddress :: Address -> (Credential -> Maybe AccountId -> r) -> r
- addressCredential :: Address -> Credential
- addressStakingAccountId :: Address -> Maybe AccountId
- pubKeyHashAddress :: PubKeyHash -> Address
- toPubKeyHash :: Address -> Maybe PubKeyHash
- toScriptHash :: Address -> Maybe ScriptHash
- scriptHashAddress :: ScriptHash -> Address
- stakingAccountId :: Address -> Maybe AccountId
Documentation
Constructors
| AccountId Credential |
Instances
An address may contain two things: the payment credential, and optionally
the AccountId of the account the funds are staked to.
Instances
| Generic Address Source # | |||||
Defined in PlutusLedgerApi.V4.Data.Address Associated Types
| |||||
| Show Address Source # | |||||
| Eq Address Source # | |||||
| Ord Address Source # | |||||
Defined in PlutusLedgerApi.V4.Data.Address | |||||
| Eq Address Source # | |||||
Defined in PlutusLedgerApi.V4.Data.Address | |||||
| FromData Address Source # | |||||
Defined in PlutusLedgerApi.V4.Data.Address Methods fromBuiltinData :: BuiltinData -> Maybe Address # | |||||
| ToData Address Source # | |||||
Defined in PlutusLedgerApi.V4.Data.Address Methods toBuiltinData :: Address -> BuiltinData # | |||||
| UnsafeFromData Address Source # | |||||
Defined in PlutusLedgerApi.V4.Data.Address Methods | |||||
| Pretty Address Source # | |||||
Defined in PlutusLedgerApi.V4.Data.Address | |||||
| Lift DefaultUni Address Source # | |||||
Defined in PlutusLedgerApi.V4.Data.Address | |||||
| Typeable DefaultUni Address Source # | |||||
Defined in PlutusLedgerApi.V4.Data.Address | |||||
| type Rep Address Source # | |||||
Defined in PlutusLedgerApi.V4.Data.Address type Rep Address = D1 ('MetaData "Address" "PlutusLedgerApi.V4.Data.Address" "plutus-ledger-api-1.71.0.0-8V0G0zsPLKdLbGNzTsy4yL" 'True) (C1 ('MetaCons "Address_6989586621680379437" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuiltinData))) | |||||
matchAddress :: Address -> (Credential -> Maybe AccountId -> r) -> r Source #
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.