tx.txbuilder.addupdatedrep
Home > @blaze-cardano/tx > TxBuilder > addUpdateDRep
TxBuilder.addUpdateDRep() method
Updates a dRep (delegate representative).
Creates an UpdateDelegateRepresentative certificate to optionally set or replace the dRep anchor.
Signature:
addUpdateDRep(drep: Credential, anchor?: Anchor): TxBuilder;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
drep |
Credential |
The dRep credential to update. |
|
anchor |
Anchor |
(Optional) Optional new anchor. |
Returns:
{TxBuilder} The updated transaction builder.