scalus.cardano.ledger
Members list
Type members
Classlikes
Attributes
- Supertypes
- Self type
-
AddrKeyHash.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
AddressBytes.type
Represents an anchor in the Cardano blockchain.
Represents an anchor in the Cardano blockchain.
An anchor contains a URL and a data hash that can be used to verify the data retrieved from the URL.
Value parameters
- dataHash
-
A 32-byte hash of the data
- url
-
The URL where the data can be retrieved
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- trait
- Supertypes
-
trait ArbitraryInstancestrait ArbitraryInstancestrait ArbitraryInstancesclass Objecttrait Matchableclass AnyShow all
- Self type
-
ArbitraryInstances.type
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
object ArbitraryInstances
Represents an asset name in Cardano's multi-asset framework
Represents an asset name in Cardano's multi-asset framework
Asset names can be between 0 and 32 bytes long.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents auxiliary data in a Cardano transaction
Represents auxiliary data in a Cardano transaction
Attributes
- Companion
- object
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- enum
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
AuxiliaryData.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
AuxiliaryDataHash.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Represents a complete block in the Cardano blockchain
Represents a complete block in the Cardano blockchain
Valid blocks must also satisfy the following constraints:
- The length of transaction_bodies and transaction_witness_sets must be the same 2. Every transaction_index must be strictly smaller than the length of transaction_bodies
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
- Self type
-
BlockHash.type
Represents a block header in Cardano
Represents a block header in Cardano
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents the body of a block header in Cardano
Represents the body of a block header in Cardano
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Represents a bootstrap witness in Cardano (for Byron-era addresses)
Represents a bootstrap witness in Cardano (for Byron-era addresses)
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
BootstrapWitness.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Builtins.type
Contains information about the Cardano network, including protocol parameters and slot configuration
Contains information about the Cardano network, including protocol parameters and slot configuration
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
CardanoInfo.type
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents a certificate for stake operations on the blockchain
Represents a certificate for stake operations on the blockchain
Attributes
- Companion
- object
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- enum
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Certificate.type
Represents an amount of Cardano's native currency (ADA)
Represents an amount of Cardano's native currency (ADA)
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents a constitution in the Cardano blockchain governance system.
Represents a constitution in the Cardano blockchain governance system.
A constitution consists of an anchor (pointing to the constitution text) and an optional script hash for the constitution script.
Value parameters
- anchor
-
The anchor pointing to the constitution text
- scriptHash
-
Optional script hash for the constitution script
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents cost models for script languages in the Cardano blockchain.
Represents cost models for script languages in the Cardano blockchain.
Cost models define the execution costs of operations in different script languages. The keys are language identifiers (0 for Plutus V1, 1 for Plutus V2, 2 for Plutus V3), and the values are lists of integers representing operation costs.
Value parameters
- models
-
Map from language identifiers to lists of operation costs
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
CostModels.type
Represents a credential in the Cardano blockchain. A credential can be either a key hash or a script hash.
Represents a credential in the Cardano blockchain. A credential can be either a key hash or a script hash.
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents a Delegated Representative (DRep) in the Cardano blockchain.
Represents a Delegated Representative (DRep) in the Cardano blockchain.
A DRep can be one of several types:
- KeyHash: A DRep identified by a key hash
- ScriptHash: A DRep identified by a script hash
- AlwaysAbstain: A special DRep that always abstains from voting
- AlwaysNoConfidence: A special DRep that always votes no confidence
Attributes
- Companion
- object
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents voting thresholds for DReps in the Cardano blockchain.
Represents voting thresholds for DReps in the Cardano blockchain.
Defines the thresholds required for different governance actions to pass when voted on by delegated representatives.
Value parameters
- committeeNoConfidence
-
Threshold for committee updates after no confidence
- committeeNormal
-
Threshold for normal committee updates
- hardForkInitiation
-
Threshold for hard fork initiations
- motionNoConfidence
-
Threshold for no confidence motions
- ppEconomicGroup
-
Threshold for economic protocol parameter changes
- ppGovGroup
-
Threshold for governance protocol parameter changes
- ppNetworkGroup
-
Threshold for network protocol parameter changes
- ppTechnicalGroup
-
Threshold for technical protocol parameter changes
- treasuryWithdrawal
-
Threshold for treasury withdrawals
- updateToConstitution
-
Threshold for constitution updates
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
DRepVotingThresholds.type
Attributes
- Supertypes
- Self type
-
DataHash.type
Represents a datum option in Cardano outputs
Represents a datum option in Cardano outputs
Attributes
- Companion
- object
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- enum
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
DatumOption.type
Delegation State
Delegation State
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Enumtrait Producttrait Equalsclass Enumerationtrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Enumtrait Producttrait Equalsclass Enum[EvaluatorMode]trait Serializabletrait Comparable[EvaluatorMode]trait Constableclass Objecttrait Matchableclass AnyShow all
Represents execution unit prices in the Cardano blockchain.
Represents execution unit prices in the Cardano blockchain.
ExUnitPrices define the cost of execution units in terms of the protocol's currency, with separate prices for memory usage and CPU steps.
Value parameters
- priceMemory
-
Price per memory unit
- priceSteps
-
Price per step unit
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents execution units for Plutus scripts in Cardano
Represents execution units for Plutus scripts in Cardano
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents a governance action in the Cardano blockchain.
Represents a governance action in the Cardano blockchain.
Governance actions are proposals submitted to the blockchain for voting. Different types of actions exist for different governance activities.
Attributes
- Companion
- object
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents a governance action identifier in the Cardano blockchain.
Represents a governance action identifier in the Cardano blockchain.
A governance action ID consists of a transaction ID and an index, which uniquely identifies a governance action.
Value parameters
- govActionIndex
-
The index of the action within the transaction (2 bytes)
- transactionId
-
The hash of the transaction containing the action
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
GovActionId.type
Attributes
- Supertypes
- Self type
-
Hash28.type
Attributes
- Supertypes
- Self type
-
Hash32.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object AddrKeyHashobject AuxiliaryDataHashobject BlockHashobject DataHashobject Hash28object Hash32object MetadataHashobject PoolKeyHashobject ScriptDataHashobject ScriptHashobject StakeKeyHashobject TransactionHashobject VrfKeyHashShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
HashPurpose.type
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents the supported scripting languages in Cardano
Advanced interoperability layer for scalus.cardano.ledger domain model.
Advanced interoperability layer for scalus.cardano.ledger domain model.
This object provides conversion functions and utilities for working with native Scalus types instead of external library dependencies. It handles:
- Data conversion between Plutus Data and Scalus Data
- Transaction information construction for all Plutus versions
- Script context building and script purpose resolution
- Cost model translation and machine parameter setup
- Address, credential, and certificate type conversions
- Multi-asset value handling and ordering
- Governance-related type conversions (Conway era)
All functions maintain compatibility with Cardano's CDDL specifications and preserve the deterministic ordering required for script validation.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Ordered[MajorProtocolVersion]trait Comparable[MajorProtocolVersion]class Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
MajorProtocolVersion.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MetadataHash.type
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
MultiAsset.type
Represents a non-negative interval in the Cardano blockchain.
Represents a non-negative interval in the Cardano blockchain.
A non-negative interval is represented as a fraction with a numerator and denominator, where both are non-negative and the denominator is positive.
Value parameters
- denominator
-
The denominator of the fraction (positive)
- numerator
-
The numerator of the fraction (non-negative)
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
NonNegativeInterval.type
Represents an operational certificate in Cardano
Represents an operational certificate in Cardano
An operational certificate authorizes a node to create blocks
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
PlutusScript.type
Attributes
- Supertypes
-
class RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Evaluates Plutus V1, V2 or V3 scripts using the provided transaction and UTxO set.
Evaluates Plutus V1, V2 or V3 scripts using the provided transaction and UTxO set.
Attributes
- Note
-
It's an experimental API and may change in future versions, even in patch releases.
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
PoolKeyHash.type
Represents metadata for a stake pool in the Cardano blockchain.
Represents metadata for a stake pool in the Cardano blockchain.
Pool metadata provides information about the pool such as name, description, ticker symbol, etc. It's stored off-chain, and only the URL and hash are included in the blockchain.
Value parameters
- metadataHash
-
Hash of the metadata for verification
- url
-
URL where the metadata can be found
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents voting thresholds for stake pools in the Cardano blockchain.
Represents voting thresholds for stake pools in the Cardano blockchain.
Defines the thresholds required for different governance actions to pass when voted on by stake pools.
Value parameters
- committeeNoConfidence
-
Threshold for committee updates after no confidence
- committeeNormal
-
Threshold for normal committee updates
- hardForkInitiation
-
Threshold for hard fork initiations
- motionNoConfidence
-
Threshold for no confidence motions
- ppSecurityGroup
-
Threshold for security protocol parameter changes
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
PoolVotingThresholds.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents a proposal procedure in the Cardano blockchain governance system.
Represents a proposal procedure in the Cardano blockchain governance system.
A proposal procedure consists of a deposit, reward account, governance action, and an anchor with additional metadata.
Value parameters
- anchor
-
The anchor with additional metadata
- deposit
-
The deposit amount for the proposal
- govAction
-
The governance action being proposed
- rewardAccount
-
The reward account for returning the deposit
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ProposalProcedure.type
Represents a protocol parameter update in the Cardano blockchain.
Represents a protocol parameter update in the Cardano blockchain.
Protocol parameter updates are proposals to change various parameters that govern the behavior of the Cardano blockchain.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ProtocolParamUpdate.type
Protocol parameters for the Cardano blockchain of Babbage era Field names are taken from the cardano-cli query protocol-parameters output
Protocol parameters for the Cardano blockchain of Babbage era Field names are taken from the cardano-cli query protocol-parameters output
Attributes
- Note
-
These names are different from CIP-55, don't ask me why.
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ProtocolParams.type
Represents a Cardano protocol version
Represents a Cardano protocol version
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Ordered[ProtocolVersion]trait Comparable[ProtocolVersion]class Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ProtocolVersion.type
Represents a single redeemer in Cardano transaction A redeemer contains the execution context for a script
Represents a single redeemer in Cardano transaction A redeemer contains the execution context for a script
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents the purpose of a redeemer in Cardano
Represents the purpose of a redeemer in Cardano
0: spend 1: mint 2: cert 3: reward 4: voting 5: proposing
Attributes
- Companion
- object
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- enum
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
RedeemerTag.type
Represents a relay for a stake pool in the Cardano blockchain.
Represents a relay for a stake pool in the Cardano blockchain.
A relay is a network endpoint for a stake pool that can be one of three types:
- SingleHostAddr: An IP address with optional port
- SingleHostName: A DNS name with optional port
- MultiHostName: A DNS name for SRV lookup
Attributes
- Companion
- object
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents a reward account in the Cardano blockchain.
Represents a reward account in the Cardano blockchain.
Reward accounts (also known as stake addresses) are used to receive staking rewards. They have a specific format with bits 7-5 set to 111 and bit 4 indicating whether the credential is a key hash or script hash.
Value parameters
- address
-
The address of the reward account
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
RewardAccount.type
Rewards calculation for an epoch
Rewards calculation for an epoch
Implements rewards computation according to the Cardano ledger specification. Based on the POOLREAP and REWARD rules.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RewardsCalculation.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ScriptDataHash.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Supertypes
- Self type
-
ScriptHash.type
Represents a reference to a script in Cardano
Represents a reference to a script in Cardano
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents a slot number in Cardano
Represents a slot number in Cardano
A slot is a fixed period of time in the Cardano blockchain. Slots are where blocks can be added to the chain.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
SlotConfig.type
Stake distribution computation for an epoch
Stake distribution computation for an epoch
Implements the SNAP rule from the Cardano ledger specification. Computes stake distribution from the current ledger state.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
StakeDistribution.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
StakeKeyHash.type
Attributes
- Supertypes
- Self type
-
TaggedOrderedSet.type
Attributes
- Supertypes
- Self type
Tags in sets
Tags in sets
Conway introduced optional 258 tags in certain items that are considered sets semantically but encoded as arrays in CBOR.
Semantics: Tag 258 can be applied to a CBOR array data item to indicate that it is a set. Sets should be handled similarly to CBOR maps: a set that has duplicate items may be well-formed, but it is not valid. Like CBOR map keys, data items in a set do not need to be of the same type.
https://github.com/input-output-hk/cbor-sets-spec/blob/master/CBOR_SETS.md
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object TaggedOrderedSetobject TaggedOrderedStrictSetobject TaggedSortedMapobject TaggedSortedSetobject TaggedSortedStrictMap
Attributes
- Supertypes
- Self type
-
TaggedSortedMap.type
Attributes
- Supertypes
- Self type
-
TaggedSortedSet.type
Attributes
- Supertypes
- Self type
Cardano Timelock script
Cardano Timelock script
Timelock scripts are used to enforce time-based constraints on transactions. Implemented according to "A Formal Specification of the Cardano Ledger with a Native Multi-Asset Implementation" specification.
Attributes
- See also
- Companion
- object
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents a complete transaction in Cardano
Represents a complete transaction in Cardano
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Transaction.type
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
TransactionBody.type
Attributes
- Companion
- object
- Supertypes
-
class RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class BadInputsUTxOExceptionclass DatumsExceptionclass EmptyInputsExceptionclass FeeTooSmallExceptionclass IllegalArgumentExceptionclass MetadataExceptionclass NativeScriptsExceptionclass WrongNetworkAddressclass WrongNetworkInTxBodyclass WrongNetworkWithdrawalShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
TransactionException.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
TransactionHash.type
Represents an input to a transaction
Represents an input to a transaction
A transaction input is a reference to an output from a previous transaction, identified by the transaction ID and the index of the output.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
TransactionInput.type
Represents a transaction output in Cardano. Both Shelley-era and Babbage-era output formats are supported.
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
TransactionOutput.type
Represents the witness set for a transaction in Cardano
Represents the witness set for a transaction in Cardano
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents a unit interval (a number between 0 and 1) in the Cardano blockchain.
Represents a unit interval (a number between 0 and 1) in the Cardano blockchain.
A unit interval is represented as a fraction with a numerator and denominator, where numerator <= denominator and denominator > 0.
Value parameters
- denominator
-
The denominator of the fraction
- numerator
-
The numerator of the fraction
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
UnitInterval.type
Unspent Transaction Output
Unspent Transaction Output
Attributes
Represents a verification key witness in Cardano
Represents a verification key witness in Cardano
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
VKeyWitness.type
ValidityInterval is a half-open interval: closed on bottom, open on top.
ValidityInterval is a half-open interval: closed on bottom, open on top.
None on bottom is negative infinity, None on top is positive infinity
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents a value in Cardano, which can be either pure ADA or ADA with multi-assets
Represents a value in Cardano, which can be either pure ADA or ADA with multi-assets
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents voting options in the Cardano blockchain governance system.
Represents voting options in the Cardano blockchain governance system.
A vote can be one of three values:
- No: Against the proposal
- Yes: In favor of the proposal
- Abstain: Neither for nor against the proposal
Attributes
- Companion
- object
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents a voter in the Cardano blockchain governance system.
Represents a voter in the Cardano blockchain governance system.
A voter can be one of several types:
- ConstitutionalCommitteeHotKey: A hot key of a constitutional committee member
- ConstitutionalCommitteeHotScript: A script for a constitutional committee
- DRepKey: A delegated representative key
- DRepScript: A delegated representative script
- StakingPoolKey: A staking pool key
Attributes
- Companion
- object
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents a voting procedure in the Cardano blockchain governance system.
Represents a voting procedure in the Cardano blockchain governance system.
A voting procedure consists of a vote and an optional anchor with additional metadata.
Value parameters
- anchor
-
Optional anchor with additional metadata
- vote
-
The vote (Yes, No, or Abstain)
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents voting procedures in the Cardano blockchain governance system.
Represents voting procedures in the Cardano blockchain governance system.
VotingProcedures is a map from voters to maps of governance action IDs to voting procedures. It's used to record votes on governance actions.
Value parameters
- procedures
-
Map from voters to maps of governance action IDs to voting procedures
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
VotingProcedures.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Represents a VRF certificate in Cardano, consisting of output and proof
Represents a VRF certificate in Cardano, consisting of output and proof
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
- Self type
-
VrfKeyHash.type
Represents withdrawals in a transaction.
Represents withdrawals in a transaction.
Withdrawals is a map from reward accounts to withdrawal amounts. It's used to withdraw staking rewards.
Value parameters
- withdrawals
-
Map from reward accounts to withdrawal amounts
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Withdrawals.type
A case class representing an unsigned 64-bit integer.
A case class representing an unsigned 64-bit integer.
This type uses a signed Long underneath but provides operations that interpret the bits as an unsigned 64-bit value, giving access to the full range 0 to 2^64-1.
The underlying Long storage means that values from 0 to Long.MAX_VALUE (9,223,372,036,854,775,807) are stored as positive longs, while values from Long.MAX_VALUE + 1 to 2^64 - 1 are stored as negative longs using two's complement representation.
Example usage:
val small = Word64(1000L)
val large = Word64.fromUnsignedString("18446744073709551615") // 2^64 - 1
println(small.toUnsignedString) // "1000"
println(large.toUnsignedString) // "18446744073709551615"
println(large.toLong) // -1 (signed interpretation)
// Arithmetic works correctly with unsigned semantics
val sum = small + large
println(sum.toUnsignedString) // "999"
// Comparison uses unsigned semantics
println(large.compareUnsigned(small) > 0) // true
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Types
Represents a key hash used in addresses in the Cardano blockchain.
Represents a key hash used in addresses in the Cardano blockchain.
An AddrKeyHash is a 28-byte hash value that identifies a public key and is used in constructing addresses.
Value parameters
- hash
-
The 28-byte hash value
Attributes
Represents a Cardano address bytes
Represents a Cardano address bytes
Attributes
Represents a 28-byte Blake2b_224 hash value used in Cardano
Represents a 28-byte Blake2b_224 hash value used in Cardano
Hash28 is commonly used for address key hashes and script hashes
Attributes
Metadata is a map from metadatum labels to metadatum values
Metadata is a map from metadatum labels to metadatum values
Attributes
Minting MultiAsset. Can't contain zeros, can't be empty
Minting MultiAsset. Can't contain zeros, can't be empty
Attributes
Represents a hash of the script data
Represents a hash of the script data
This hash includes the redeemers, datums, and language views from the transaction. It's used to ensure the script's execution environment is consistent with what was intended.
This is simply a type alias for Hash32 to provide better type safety and readability.
Attributes
Represents a script hash in Cardano
Represents a script hash in Cardano
To compute a script hash, a tag must be prepended to the script bytes before hashing. The tag is determined by the script language:
- "\x00" for multisig scripts
- "\x01" for Plutus V1 scripts
- "\x02" for Plutus V2 scripts
- "\x03" for Plutus V3 scripts
Attributes
Represents a tagged set, which is an indexed sequence of unique elements with a tag.
Represents a tagged set, which is an indexed sequence of unique elements with a tag.
It's a new requirement for the Cardano ledger to have a tagged set. It's a stupid idea and God knows why they came up with it, but now we have to implement it.
Under the hood it's an IndexedSeq because we need to preserve the order of elements and need a fast access by index. And technically, it can contain duplicates in CBOR.
Unfortunately, we cannot make it as
opaque type TaggedSet[+A] <: IndexedSeq[A] = IndexedSeq[A]
because then Encoder[TaggedSet[A]] conflicts with Encoder.forIndexedSeq
Important: This implementation allows duplicates in input (i.e. does not throw exception) and keeps order of data (does not sort) but eliminates duplicates.
Attributes
Represents a tagged ordered set, which is an indexed sequence of unique elements with a tag.
Represents a tagged ordered set, which is an indexed sequence of unique elements with a tag.
It's a new requirement for the Cardano ledger to have a tagged set. It's a stupid idea and God knows why they came up with it, but now we have to implement it.
Under the hood it's an IndexedSeq because we need to preserve the order of elements and need a fast access by index. And technically, it can contain duplicates in CBOR.
Unfortunately, we cannot make it as
opaque type TaggedOrderedSet[+A] <: IndexedSeq[A] = IndexedSeq[A]
because then Encoder[TaggedOrderedSet[A]] conflicts with Encoder.forIndexedSeq
Important: This implementation does not allow duplicates in input (i.e. throws exception) and keeps order of data (does not sort).
Attributes
Represents a tagged sorted map, which is a sorted set of keys and elements with a tag.
Represents a tagged sorted map, which is a sorted set of keys and elements with a tag.
Under the hood it's a SortedMap because we need to enforce the order of elements. Also, it allows make right CBOR serialization with tag 258.
Important: This implementation allows duplicate keys in input (i.e. does not throw exception) silently removes duplicates and does not keep order in data (sorts by keys).
Attributes
Represents a tagged sorted set, which is a sorted set of elements with a tag.
Represents a tagged sorted set, which is a sorted set of elements with a tag.
Under the hood it's a SortedSet because we need to enforce the order of elements. Also, it allows make right CBOR serialization with tag 258.
Important: This implementation allows duplicates in input (i.e. does not throw exception), silently removes duplicates and does not keep order in data (sorts elements by given ordering).
Attributes
Represents a tagged sorted map with strict duplicate checking.
Represents a tagged sorted map with strict duplicate checking.
This type enforces that no duplicate keys exist in the input during decoding. If duplicates are found, an exception is thrown. This matches the behavior of Haskell's decodeMapLikeEnforceNoDuplicates used for Plutus scripts.
Under the hood it's a SortedMap because we need to enforce the order of elements. Also, it allows make right CBOR serialization with tag 258.
Important: This implementation throws an exception if duplicate keys are found in input during Conway protocol version (PV9+). Pre-Conway, duplicates are silently handled (last value wins).
Attributes
Deprecated types
Attributes
- Deprecated
-
[Since version 0.12]Use Metadatum instead
Attributes
- Deprecated
-
[Since version 0.12]Use Word64 instead
Attributes
- Deprecated
-
[Since version 0.12.1]Use Utxos instead
Value members
Deprecated fields
Attributes
- Deprecated
-
[Since version 0.12]Use Metadatum instead
Attributes
- Deprecated
-
[Since version 0.12]Use Word64 instead