Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Address = Address {}
- pubKeyHashAddress :: PubKeyHash -> Address
- toPubKeyHash :: Address -> Maybe PubKeyHash
- toScriptHash :: Address -> Maybe ScriptHash
- scriptHashAddress :: ScriptHash -> Address
- stakingCredential :: Address -> Maybe StakingCredential
Documentation
An address may contain two credentials,
the payment credential and optionally a StakingCredential
.
Address | |
|
Instances
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)