Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Address = Address {}
- pubKeyHashAddress :: PubKeyHash -> Address
- scriptHashAddress :: ScriptHash -> Address
- toPubKeyHash :: Address -> Maybe PubKeyHash
- toScriptHash :: Address -> Maybe ScriptHash
- stakingCredential :: Address -> Maybe StakingCredential
Documentation
Address with two kinds of credentials, normal and staking.
Instances
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)