Skip to main content

PDrep

info

Introduced in V3 version

This type represents different kinds of decentralized representatives (DReps) within Cardano's governance model. This structure is part of the system that allows participants to express preferences on proposals, delegating their voting power to different types of DReps.

Definition:

import { pstruct } from "../../../PTypes/PStruct/pstruct";
import { PCredential } from "../../V1/Address/PCredential";

export const PDrep = pstruct({
DRep: { credentials: PCredential.type },
AlwaysAbstain: {},
AlwaysNoConfidence: {}
});

DRep

A representative with specific credentials.

credentials

This field identifies the DRep either by public key hash or a script hash.

type: 'PCredential.type'

AlwaysAbstain

A DRep that always abstains from voting.

AlwaysNoConfidence

A DRep that always votes with 'no confidence'