Skip to main content

PCertificate

info

Modified from PDCert in V1 version

It represents any possible certificate that can be included in a transaction.

Definition:

export const PCertificate =  pstruct({
StakeRegistration: {
stakeKey: PCredential.type,
deposit: PMaybeInt.type
},
StakeDeRegistration: {
stakeKey: PCredential.type,
refound: PMaybeInt.type
},
Delegation: {
delegator: PCredential.type,
delegatee: PDelegatee.type
},
RegistrationAndDelegation: {
delegator: PCredential.type,
delegatee: PDelegatee.type,
lovelacesDeposit: int
},
DRepRegistration: {
drep: PCredential.type,
lovelacesDeposit: int
},
DRepUpdate: {
drep: PCredential.type
},
DRepDeRegistration: {
drep: PCredential.type,
refound: int
},
PoolRegistration: {
poolId: PPubKeyHash.type,
poolVFR: PPubKeyHash.type,
},
PoolRetire: {
poolId: PPubKeyHash.type,
epoch: int,
},
CommitteeHotAuthorization: {
cold: PCredential.type,
hot: PCredential.type
},
CommitteeResignation: {
cold: PCredential.type
}
});

StakeRegistration​

Stake credential registration certificate

stakeKey​

type: PCredential.type

deposit​

type: PMaybeInt.type ( TermInt )

StakeDeRegistration​

Stake credential de-registration certificate

stakeKey​

type: PCredential.type

refound​

type: PMaybeInt.type ( TermInt )

Delegation​

Delegation of the founds controlled by the specified PCredential to the specified poolId

delegator​

type: PCredential.type

delegatee​

type: PDelegatee.type

RegistrationAndDelegation​

Combined registration and delegation certificate.

delegator​

type: PCredential.type

delegatee​

type: PDelegatee.type

DRepRegistration​

Delegated representative (DRep) registration certificate.

drep​

type: PCredential.type

lovelacesDeposit​

type: TermInt

DRepUpdate​

Update certificate for an existing DRep.

drep​

type: PCredential.type

DRepDeregistration​

DRep de-registration certificate.

drep​

type: PCredential.type

refound​

type: TermInt

PoolRegistration​

Pool registration certificate

poolId​

type: PPubKeyHash.type

poolVFR​

type: PPubKeyHash.type

PoolRetire​

Pool de-registration certificate

poolId​

type: PPubKeyHash.type

epoch​

type: TermInt

CommitteeHotAuthorization​

Authorization certificate for committee hot keys

cold​

type: PCredential.type

hot​

type: PCredential.type

CommitteeResignation​

Resignation certificate for committee members.

cold​

type: PCredential.type