| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
PlutusLedgerApi.V4.Data.Address
Description
Synopsis
- newtype AccountId = AccountId Credential
- data Address
- pattern Address ∷ Credential → Maybe AccountId → Address
- matchAddress ∷ ∀ r. 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
matchAddress ∷ ∀ r. 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.