Initializes a new instance of the DRep class.
The kind of DRep.
Optional
credential: Cardano.CredentialThe DRep credential.
Private
#credentialPrivate
#kindPrivate
#originalGets the DRep kind.
The DRep kind.
Creates a Core DelegateRepresentative object from the current DRep object.
The Core DelegateRepresentative object.
Gets the verification key hash of the DRep if any, otherwise, returns undefined.
The verification key hash or undefined.
Gets the script hash of the DRep if any, otherwise, returns undefined.
The script hash or undefined.
Static
fromDeserializes the DRep from a CBOR byte array.
The new DRep instance.
The CBOR encoded DRep object.
Static
fromCreates a DRep object from the given Core DelegateRepresentative object.
core DelegateRepresentative object.
Static
newCreates an Always Abstain DRep.
The DRep instance.
Static
newCreates an Always No Confidence DRep.
The DRep instance.
Static
newCreates a new DRep from an Ed25519 verification key hash.
The DRep instance.
The hash of the Ed25519 verification key.
Static
newCreates a new DRep from a native or Plutus script hash.
The DRep instance.
The script hash.
Generated using TypeDoc
In Voltaire, existing stake credentials will be able to delegate their stake to DReps for voting purposes, in addition to the current delegation to stake pools for block production.
Just as the number of blocks that a pool mint depends on the total stake, the amount of decision-making power will depend on the number of coins delegated to a DRep.
Registered DReps are identified by a credential that can be either: